Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

SJ-6923 | Update Ruby SDK #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion config_v1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"gemName": "jcapiv1",
"moduleName": "JCAPIv1",
"gemVersion": "3.0.0"
"gemVersion": "4.0.0"
}
2 changes: 1 addition & 1 deletion config_v2.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"gemName": "jcapiv2",
"moduleName": "JCAPIv2",
"gemVersion": "3.0.0"
"gemVersion": "4.0.0"
}
Binary file added jcapiv1/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion jcapiv1/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#
#

*.gem
*.rbc
Expand Down
154 changes: 154 additions & 0 deletions jcapiv1/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
# Automatically generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen)
AllCops:
TargetRubyVersion: 2.2
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
# to ignore them, so only the ones explicitly set in this file are enabled.
DisabledByDefault: true
Exclude:
- '**/templates/**/*'
- '**/vendor/**/*'
- 'actionpack/lib/action_dispatch/journey/parser.rb'

# Prefer &&/|| over and/or.
Style/AndOr:
Enabled: true

# Do not use braces for hash literals when they are the last argument of a
# method call.
Style/BracesAroundHashParameters:
Enabled: true
EnforcedStyle: context_dependent

# Align `when` with `case`.
Layout/CaseIndentation:
Enabled: true

# Align comments with method definitions.
Layout/CommentIndentation:
Enabled: true

Layout/ElseAlignment:
Enabled: true

Layout/EmptyLineAfterMagicComment:
Enabled: true

# In a regular class definition, no empty lines around the body.
Layout/EmptyLinesAroundClassBody:
Enabled: true

# In a regular method definition, no empty lines around the body.
Layout/EmptyLinesAroundMethodBody:
Enabled: true

# In a regular module definition, no empty lines around the body.
Layout/EmptyLinesAroundModuleBody:
Enabled: true

Layout/FirstParameterIndentation:
Enabled: true

# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
Style/HashSyntax:
Enabled: false

# Method definitions after `private` or `protected` isolated calls need one
# extra level of indentation.
Layout/IndentationConsistency:
Enabled: true
EnforcedStyle: rails

# Two spaces, no tabs (for indentation).
Layout/IndentationWidth:
Enabled: true

Layout/LeadingCommentSpace:
Enabled: true

Layout/SpaceAfterColon:
Enabled: true

Layout/SpaceAfterComma:
Enabled: true

Layout/SpaceAroundEqualsInParameterDefault:
Enabled: true

Layout/SpaceAroundKeyword:
Enabled: true

Layout/SpaceAroundOperators:
Enabled: true

Layout/SpaceBeforeComma:
Enabled: true

Layout/SpaceBeforeFirstArg:
Enabled: true

Style/DefWithParentheses:
Enabled: true

# Defining a method with parameters needs parentheses.
Style/MethodDefParentheses:
Enabled: true

Style/FrozenStringLiteralComment:
Enabled: false
EnforcedStyle: always

# Use `foo {}` not `foo{}`.
Layout/SpaceBeforeBlockBraces:
Enabled: true

# Use `foo { bar }` not `foo {bar}`.
Layout/SpaceInsideBlockBraces:
Enabled: true

# Use `{ a: 1 }` not `{a:1}`.
Layout/SpaceInsideHashLiteralBraces:
Enabled: true

Layout/SpaceInsideParens:
Enabled: true

# Check quotes usage according to lint rule below.
#Style/StringLiterals:
# Enabled: true
# EnforcedStyle: single_quotes

# Detect hard tabs, no hard tabs.
Layout/Tab:
Enabled: true

# Blank lines should not have any spaces.
Layout/TrailingBlankLines:
Enabled: true

# No trailing whitespace.
Layout/TrailingWhitespace:
Enabled: false

# Use quotes for string literals when they are enough.
Style/UnneededPercentQ:
Enabled: true

# Align `end` with the matching keyword or starting expression except for
# assignments, where it should be aligned with the LHS.
Lint/EndAlignment:
Enabled: true
EnforcedStyleAlignWith: variable
AutoCorrect: true

# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
Lint/RequireParentheses:
Enabled: true

Style/RedundantReturn:
Enabled: true
AllowMultipleReturnValues: true

Style/Semicolon:
Enabled: true
AllowAsExpressionSeparator: true
2 changes: 1 addition & 1 deletion jcapiv1/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.1
3.0.47
4 changes: 3 additions & 1 deletion jcapiv1/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ source 'https://rubygems.org'
gemspec

group :development, :test do
gem 'rake', '~> 12.0.0'
gem 'rake', '~> 13.0.1'
gem 'pry-byebug'
gem 'rubocop', '~> 0.66.0'
end
1,466 changes: 1,423 additions & 43 deletions jcapiv1/README.md

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions jcapiv1/docs/Application.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_id** | **String** | | [optional]
**active** | **BOOLEAN** | | [optional]
**beta** | **BOOLEAN** | | [optional]
**config** | [**ApplicationConfig**](ApplicationConfig.md) | | [optional]
**color** | **String** | | [optional]
**config** | [**ApplicationConfig**](ApplicationConfig.md) | |
**created** | **String** | | [optional]
**database_attributes** | **Array<Object>** | | [optional]
**description** | **String** | | [optional]
**display_label** | **String** | | [optional]
**display_name** | **String** | | [optional]
**learn_more** | **String** | | [optional]
**name** | **String** | | [optional]
**logo** | [**ApplicationLogo**](ApplicationLogo.md) | | [optional]
**name** | **String** | |
**organization** | **String** | | [optional]
**sso_url** | **String** | | [optional]

**sso** | [**Sso**](Sso.md) | | [optional]
**sso_url** | **String** | |

3 changes: 2 additions & 1 deletion jcapiv1/docs/ApplicationConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Name | Type | Description | Notes
**idp_certificate** | [**ApplicationConfigAcsUrl**](ApplicationConfigAcsUrl.md) | | [optional]
**idp_entity_id** | [**ApplicationConfigAcsUrl**](ApplicationConfigAcsUrl.md) | | [optional]
**idp_private_key** | [**ApplicationConfigAcsUrl**](ApplicationConfigAcsUrl.md) | | [optional]
**sign_assertion** | [**ApplicationConfigSignAssertion**](ApplicationConfigSignAssertion.md) | | [optional]
**sign_response** | [**ApplicationConfigSignAssertion**](ApplicationConfigSignAssertion.md) | | [optional]
**sp_entity_id** | [**ApplicationConfigAcsUrl**](ApplicationConfigAcsUrl.md) | | [optional]


3 changes: 2 additions & 1 deletion jcapiv1/docs/ApplicationConfigAcsUrl.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**label** | **String** | | [optional]
**options** | **String** | | [optional]
**position** | **Integer** | | [optional]
**read_only** | **BOOLEAN** | | [optional]
**required** | **BOOLEAN** | | [optional]
**toggle** | **String** | | [optional]
**tooltip** | [**ApplicationConfigAcsUrlTooltip**](ApplicationConfigAcsUrlTooltip.md) | | [optional]
**type** | **String** | | [optional]
**value** | **String** | | [optional]
**visible** | **BOOLEAN** | | [optional]


1 change: 0 additions & 1 deletion jcapiv1/docs/ApplicationConfigAcsUrlTooltip.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ Name | Type | Description | Notes
**template** | **String** | | [optional]
**variables** | [**ApplicationConfigAcsUrlTooltipVariables**](ApplicationConfigAcsUrlTooltipVariables.md) | | [optional]


1 change: 0 additions & 1 deletion jcapiv1/docs/ApplicationConfigAcsUrlTooltipVariables.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ Name | Type | Description | Notes
**icon** | **String** | | [optional]
**message** | **String** | | [optional]


1 change: 0 additions & 1 deletion jcapiv1/docs/ApplicationConfigConstantAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ Name | Type | Description | Notes
**value** | [**Array<ApplicationConfigConstantAttributesValue>**](ApplicationConfigConstantAttributesValue.md) | | [optional]
**visible** | **BOOLEAN** | | [optional]


1 change: 0 additions & 1 deletion jcapiv1/docs/ApplicationConfigConstantAttributesValue.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ Name | Type | Description | Notes
**value** | **String** | | [optional]
**visible** | **BOOLEAN** | | [optional]


1 change: 0 additions & 1 deletion jcapiv1/docs/ApplicationConfigDatabaseAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**position** | **Integer** | | [optional]


14 changes: 14 additions & 0 deletions jcapiv1/docs/ApplicationConfigSignAssertion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# JCAPIv1::ApplicationConfigSignAssertion

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**label** | **String** | | [optional]
**position** | **Integer** | | [optional]
**read_only** | **BOOLEAN** | | [optional]
**required** | **BOOLEAN** | | [optional]
**tooltip** | [**ApplicationConfigAcsUrlTooltip**](ApplicationConfigAcsUrlTooltip.md) | | [optional]
**type** | **String** | | [optional]
**value** | **BOOLEAN** | | [optional]
**visible** | **BOOLEAN** | | [optional]

8 changes: 8 additions & 0 deletions jcapiv1/docs/ApplicationLogo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# JCAPIv1::ApplicationLogo

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**color** | **String** | | [optional]
**url** | **String** | | [optional]

Loading