swagalicious 0.4.8 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36ac62aeb7dffb004e29a38b0141268f7b9b44f98537aee9fad8c022f09eb630
4
- data.tar.gz: e2b4e39271810b7a37ab365eb0614382fd799b5ba6cffc1f5d8b1c9507e7d648
3
+ metadata.gz: 9c78326c2bf5360baef928aef9a89f8aea2c92b16f5f6d0e7d30132d54459e09
4
+ data.tar.gz: 615446c0b948abff9fd62d8caadbd67c6fe7dbc43dc8a096cba8795f72007858
5
5
  SHA512:
6
- metadata.gz: 3955a4ec404da45f989448ec940ad831f56eea5ea2c5a59e6fccf0b04afdf56c8cfabcc27c0ee9bb613d012f62da87905fb52d57048f7ee78d921a0b7f138736
7
- data.tar.gz: 22e88cf6abaf4e78959bf4f43f93f3b2b5f48b6de6353f002cae46f27f381ccf461284a4a63ecc1aaa8d17ffff06a56f01076bcc94da3cf147986ff99d93e105
6
+ metadata.gz: 15bc38e19774ac274a10f07fae2beeaf8b14c895168208772f5584060f7a31091e3194eeafb363cb338db94cf41ab52a724ceac0a1e02ca92683a9c93f6e9d36
7
+ data.tar.gz: '09858d1b6c3464d5d160541a9e9c5c9917abf9eec55d73cc9bab41c9d78462707d186924ba088d70f578feddb8bb180f878e84bbd5aa1689fbc40aad91c3474f'
data/Gemfile.lock CHANGED
@@ -1,11 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swagalicious (0.4.7)
4
+ swagalicious (0.5.0)
5
5
  faraday (~> 2.0)
6
6
  faraday-rack
7
7
  json-schema
8
8
  oj (~> 3.11.0)
9
+ rack-test (~> 2.0.2)
9
10
  rspec (~> 3)
10
11
 
11
12
  GEM
@@ -17,18 +18,18 @@ GEM
17
18
  minitest (>= 5.1)
18
19
  tzinfo (~> 2.0)
19
20
  zeitwerk (~> 2.3)
20
- addressable (2.8.0)
21
- public_suffix (>= 2.0.2, < 5.0)
21
+ addressable (2.8.1)
22
+ public_suffix (>= 2.0.2, < 6.0)
22
23
  byebug (11.1.3)
23
24
  coderay (1.1.3)
24
25
  concurrent-ruby (1.1.10)
25
26
  diff-lcs (1.5.0)
26
27
  factory_bot (6.1.0)
27
28
  activesupport (>= 5.0.0)
28
- faraday (2.4.0)
29
- faraday-net_http (~> 2.0)
29
+ faraday (2.5.2)
30
+ faraday-net_http (>= 2.0, < 3.1)
30
31
  ruby2_keywords (>= 0.0.4)
31
- faraday-net_http (2.1.0)
32
+ faraday-net_http (3.0.0)
32
33
  faraday-rack (2.0.0)
33
34
  faraday (~> 2.0)
34
35
  i18n (1.10.0)
@@ -44,10 +45,10 @@ GEM
44
45
  pry-byebug (3.9.0)
45
46
  byebug (~> 11.0)
46
47
  pry (~> 0.13.0)
47
- public_suffix (4.0.7)
48
- rack (2.2.3.1)
49
- rack-test (1.1.0)
50
- rack (>= 1.0, < 3)
48
+ public_suffix (5.0.0)
49
+ rack (3.0.0)
50
+ rack-test (2.0.2)
51
+ rack (>= 1.3)
51
52
  rake (12.3.3)
52
53
  rspec (3.11.0)
53
54
  rspec-core (~> 3.11.0)
@@ -73,10 +74,9 @@ PLATFORMS
73
74
  DEPENDENCIES
74
75
  factory_bot (~> 6.1.0)
75
76
  pry-byebug (~> 3.9.0)
76
- rack-test (~> 1.1.0)
77
77
  rake (~> 12.0)
78
78
  rspec (~> 3.0)
79
79
  swagalicious!
80
80
 
81
81
  BUNDLED WITH
82
- 2.2.31
82
+ 2.3.20
@@ -39,8 +39,9 @@ class Swagalicious
39
39
  schemes = security_version(scheme_names, swagger_doc)
40
40
 
41
41
  schemes.map do |scheme|
42
- param = (scheme[:type] == :apiKey) ? scheme.slice(:name, :in) : { name: "Authorization", in: :header }
43
- param.merge(type: :string, required: requirements.one?)
42
+ param = (scheme[:type] == :apiKey) ? scheme.slice(:name, :in, :required) : { name: "Authorization", in: :header }
43
+ param.merge(required: requirements.one?) unless param.has_key?(:required)
44
+ param.merge(type: :string)
44
45
  end
45
46
  end
46
47
 
@@ -1,3 +1,3 @@
1
1
  class Swagalicious
2
- VERSION = "0.4.8"
2
+ VERSION = "0.5.1"
3
3
  end
data/swagalicious.gemspec CHANGED
@@ -27,10 +27,10 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "faraday", "~> 2.0"
28
28
  spec.add_dependency "faraday-rack"
29
29
  spec.add_dependency "json-schema"
30
- spec.add_dependency "oj", "~> 3.11.0"
30
+ spec.add_dependency "oj", "~> 3.11.0"
31
+ spec.add_dependency "rack-test", "~> 2.0.2"
31
32
  spec.add_dependency "rspec", "~> 3"
32
33
 
33
34
  spec.add_development_dependency "factory_bot", "~> 6.1.0"
34
35
  spec.add_development_dependency "pry-byebug", "~> 3.9.0"
35
- spec.add_development_dependency "rack-test", "~> 1.1.0"
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagalicious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Howe
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -67,61 +67,61 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: 3.11.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: rspec
70
+ name: rack-test
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3'
75
+ version: 2.0.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3'
82
+ version: 2.0.2
83
83
  - !ruby/object:Gem::Dependency
84
- name: factory_bot
84
+ name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 6.1.0
90
- type: :development
89
+ version: '3'
90
+ type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 6.1.0
96
+ version: '3'
97
97
  - !ruby/object:Gem::Dependency
98
- name: pry-byebug
98
+ name: factory_bot
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 3.9.0
103
+ version: 6.1.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 3.9.0
110
+ version: 6.1.0
111
111
  - !ruby/object:Gem::Dependency
112
- name: rack-test
112
+ name: pry-byebug
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.1.0
117
+ version: 3.9.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.1.0
124
+ version: 3.9.0
125
125
  description: This gem is almost a straight copy and paste of https://github.com/rswag/rswag/tree/master/rswag-specs
126
126
  with the Rails specific code stripped out so it can be used in Rack applications
127
127
  that don't use Rails.
@@ -160,7 +160,7 @@ metadata:
160
160
  allowed_push_host: https://rubygems.org
161
161
  homepage_uri: https://github.com/ehowe/swagalicious
162
162
  source_code_uri: https://github.com/ehowe/swagalicious
163
- post_install_message:
163
+ post_install_message:
164
164
  rdoc_options: []
165
165
  require_paths:
166
166
  - lib
@@ -175,8 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  - !ruby/object:Gem::Version
176
176
  version: '0'
177
177
  requirements: []
178
- rubygems_version: 3.3.7
179
- signing_key:
178
+ rubygems_version: 3.0.3.1
179
+ signing_key:
180
180
  specification_version: 4
181
181
  summary: RSwag without Rails
182
182
  test_files: []