weak_swagger_parameters 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.rubocop.yml +7 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +177 -0
- data/Rakefile +1 -0
- data/lib/weak_swagger_parameters.rb +1 -0
- data/lib/weak_swagger_parameters/controller.rb +1 -0
- data/lib/weak_swagger_parameters/definitions.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/api.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/body.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/collection_property.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/collection_ref.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/hash_property.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/hash_ref.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/leaf_definition.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/model.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/model_property.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/model_ref.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/param_container.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/parameter.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/params.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/path.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/property.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/property_container.rb +5 -1
- data/lib/weak_swagger_parameters/definitions/query.rb +1 -0
- data/lib/weak_swagger_parameters/definitions/response.rb +1 -0
- data/lib/weak_swagger_parameters/model.rb +1 -0
- data/lib/weak_swagger_parameters/services.rb +1 -0
- data/lib/weak_swagger_parameters/services/swagger_options_adapter.rb +1 -0
- data/lib/weak_swagger_parameters/services/weak_parameters_options_adapter.rb +1 -0
- data/lib/weak_swagger_parameters/version.rb +2 -1
- data/weak_swagger_parameters.gemspec +6 -6
- metadata +30 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89fe4575d3ba6573b31727b1f25d38f28426b0a5
|
4
|
+
data.tar.gz: 34b2c7919180378c4b3bdf11b6b3718c74660421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17544ad58329a9c40df04aa1e90a216b85e5d2fdf2dfd2c963aab8f324313ce3a08af07640dc4528076c096f9339ab7c42ecaec9dd0893cf0f61883c53b72e06
|
7
|
+
data.tar.gz: addf04f69810f9a0fd51aedcea5b246f2d4c0a56f93760af2607417755785d290c68ad6c425ae903fafb872b622ec25e4768b860c9be1a0af121d87f80b12f4e
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
weak_swagger_parameters (0.5.0)
|
5
|
+
rails (>= 4)
|
6
|
+
swagger-blocks (~> 1.3)
|
7
|
+
weak_parameters (~> 0.4)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actioncable (5.1.4)
|
13
|
+
actionpack (= 5.1.4)
|
14
|
+
nio4r (~> 2.0)
|
15
|
+
websocket-driver (~> 0.6.1)
|
16
|
+
actionmailer (5.1.4)
|
17
|
+
actionpack (= 5.1.4)
|
18
|
+
actionview (= 5.1.4)
|
19
|
+
activejob (= 5.1.4)
|
20
|
+
mail (~> 2.5, >= 2.5.4)
|
21
|
+
rails-dom-testing (~> 2.0)
|
22
|
+
actionpack (5.1.4)
|
23
|
+
actionview (= 5.1.4)
|
24
|
+
activesupport (= 5.1.4)
|
25
|
+
rack (~> 2.0)
|
26
|
+
rack-test (>= 0.6.3)
|
27
|
+
rails-dom-testing (~> 2.0)
|
28
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
29
|
+
actionview (5.1.4)
|
30
|
+
activesupport (= 5.1.4)
|
31
|
+
builder (~> 3.1)
|
32
|
+
erubi (~> 1.4)
|
33
|
+
rails-dom-testing (~> 2.0)
|
34
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
35
|
+
activejob (5.1.4)
|
36
|
+
activesupport (= 5.1.4)
|
37
|
+
globalid (>= 0.3.6)
|
38
|
+
activemodel (5.1.4)
|
39
|
+
activesupport (= 5.1.4)
|
40
|
+
activerecord (5.1.4)
|
41
|
+
activemodel (= 5.1.4)
|
42
|
+
activesupport (= 5.1.4)
|
43
|
+
arel (~> 8.0)
|
44
|
+
activesupport (5.1.4)
|
45
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
46
|
+
i18n (~> 0.7)
|
47
|
+
minitest (~> 5.1)
|
48
|
+
tzinfo (~> 1.1)
|
49
|
+
addressable (2.5.2)
|
50
|
+
public_suffix (>= 2.0.2, < 4.0)
|
51
|
+
arel (8.0.0)
|
52
|
+
ast (2.3.0)
|
53
|
+
builder (3.2.3)
|
54
|
+
concurrent-ruby (1.0.5)
|
55
|
+
crass (1.0.3)
|
56
|
+
diff-lcs (1.3)
|
57
|
+
erubi (1.7.0)
|
58
|
+
globalid (0.4.1)
|
59
|
+
activesupport (>= 4.2.0)
|
60
|
+
i18n (0.9.1)
|
61
|
+
concurrent-ruby (~> 1.0)
|
62
|
+
json-schema (2.8.0)
|
63
|
+
addressable (>= 2.4)
|
64
|
+
loofah (2.1.1)
|
65
|
+
crass (~> 1.0.2)
|
66
|
+
nokogiri (>= 1.5.9)
|
67
|
+
mail (2.7.0)
|
68
|
+
mini_mime (>= 0.1.1)
|
69
|
+
method_source (0.9.0)
|
70
|
+
mini_mime (1.0.0)
|
71
|
+
mini_portile2 (2.3.0)
|
72
|
+
minitest (5.10.3)
|
73
|
+
nio4r (2.1.0)
|
74
|
+
nokogiri (1.8.1)
|
75
|
+
mini_portile2 (~> 2.3.0)
|
76
|
+
parallel (1.12.0)
|
77
|
+
parser (2.4.0.2)
|
78
|
+
ast (~> 2.3)
|
79
|
+
powerpack (0.1.1)
|
80
|
+
public_suffix (3.0.1)
|
81
|
+
rack (2.0.3)
|
82
|
+
rack-test (0.8.2)
|
83
|
+
rack (>= 1.0, < 3)
|
84
|
+
rails (5.1.4)
|
85
|
+
actioncable (= 5.1.4)
|
86
|
+
actionmailer (= 5.1.4)
|
87
|
+
actionpack (= 5.1.4)
|
88
|
+
actionview (= 5.1.4)
|
89
|
+
activejob (= 5.1.4)
|
90
|
+
activemodel (= 5.1.4)
|
91
|
+
activerecord (= 5.1.4)
|
92
|
+
activesupport (= 5.1.4)
|
93
|
+
bundler (>= 1.3.0)
|
94
|
+
railties (= 5.1.4)
|
95
|
+
sprockets-rails (>= 2.0.0)
|
96
|
+
rails-dom-testing (2.0.3)
|
97
|
+
activesupport (>= 4.2.0)
|
98
|
+
nokogiri (>= 1.6)
|
99
|
+
rails-html-sanitizer (1.0.3)
|
100
|
+
loofah (~> 2.0)
|
101
|
+
railties (5.1.4)
|
102
|
+
actionpack (= 5.1.4)
|
103
|
+
activesupport (= 5.1.4)
|
104
|
+
method_source
|
105
|
+
rake (>= 0.8.7)
|
106
|
+
thor (>= 0.18.1, < 2.0)
|
107
|
+
rainbow (2.2.2)
|
108
|
+
rake
|
109
|
+
rake (10.5.0)
|
110
|
+
rspec (3.7.0)
|
111
|
+
rspec-core (~> 3.7.0)
|
112
|
+
rspec-expectations (~> 3.7.0)
|
113
|
+
rspec-mocks (~> 3.7.0)
|
114
|
+
rspec-core (3.7.0)
|
115
|
+
rspec-support (~> 3.7.0)
|
116
|
+
rspec-expectations (3.7.0)
|
117
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
118
|
+
rspec-support (~> 3.7.0)
|
119
|
+
rspec-its (1.2.0)
|
120
|
+
rspec-core (>= 3.0.0)
|
121
|
+
rspec-expectations (>= 3.0.0)
|
122
|
+
rspec-mocks (3.7.0)
|
123
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
124
|
+
rspec-support (~> 3.7.0)
|
125
|
+
rspec-rails (3.7.2)
|
126
|
+
actionpack (>= 3.0)
|
127
|
+
activesupport (>= 3.0)
|
128
|
+
railties (>= 3.0)
|
129
|
+
rspec-core (~> 3.7.0)
|
130
|
+
rspec-expectations (~> 3.7.0)
|
131
|
+
rspec-mocks (~> 3.7.0)
|
132
|
+
rspec-support (~> 3.7.0)
|
133
|
+
rspec-support (3.7.0)
|
134
|
+
rubocop (0.51.0)
|
135
|
+
parallel (~> 1.10)
|
136
|
+
parser (>= 2.3.3.1, < 3.0)
|
137
|
+
powerpack (~> 0.1)
|
138
|
+
rainbow (>= 2.2.2, < 3.0)
|
139
|
+
ruby-progressbar (~> 1.7)
|
140
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
141
|
+
ruby-progressbar (1.9.0)
|
142
|
+
sprockets (3.7.1)
|
143
|
+
concurrent-ruby (~> 1.0)
|
144
|
+
rack (> 1, < 3)
|
145
|
+
sprockets-rails (3.2.1)
|
146
|
+
actionpack (>= 4.0)
|
147
|
+
activesupport (>= 4.0)
|
148
|
+
sprockets (>= 3.0.0)
|
149
|
+
sqlite3 (1.3.13)
|
150
|
+
swagger-blocks (1.4.0)
|
151
|
+
thor (0.20.0)
|
152
|
+
thread_safe (0.3.6)
|
153
|
+
tzinfo (1.2.4)
|
154
|
+
thread_safe (~> 0.1)
|
155
|
+
unicode-display_width (1.3.0)
|
156
|
+
weak_parameters (0.4.3)
|
157
|
+
rails (>= 4.0.0)
|
158
|
+
websocket-driver (0.6.5)
|
159
|
+
websocket-extensions (>= 0.1.0)
|
160
|
+
websocket-extensions (0.1.3)
|
161
|
+
|
162
|
+
PLATFORMS
|
163
|
+
ruby
|
164
|
+
|
165
|
+
DEPENDENCIES
|
166
|
+
bundler (~> 1.12)
|
167
|
+
json-schema (~> 2.6)
|
168
|
+
rake (~> 10.0)
|
169
|
+
rspec (~> 3.0)
|
170
|
+
rspec-its (~> 1.2)
|
171
|
+
rspec-rails (~> 3.4)
|
172
|
+
rubocop (~> 0.51.0)
|
173
|
+
sqlite3 (~> 1.3)
|
174
|
+
weak_swagger_parameters!
|
175
|
+
|
176
|
+
BUNDLED WITH
|
177
|
+
1.16.0
|
data/Rakefile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
module WeakSwaggerParameters
|
3
4
|
module Definitions
|
4
5
|
module PropertyContainer
|
5
6
|
extend ActiveSupport::Concern
|
6
7
|
|
7
|
-
# rubocop:disable Metrics/BlockLength
|
8
8
|
included do
|
9
9
|
def string(name, description, options = {})
|
10
10
|
register_definition(name, options, WeakSwaggerParameters::Definitions::Property.new(:string, name, description, options))
|
@@ -18,6 +18,10 @@ module WeakSwaggerParameters
|
|
18
18
|
register_definition(name, options, WeakSwaggerParameters::Definitions::Property.new(:integer, name, description, options))
|
19
19
|
end
|
20
20
|
|
21
|
+
def float(name, description, options = {})
|
22
|
+
register_definition(name, options, WeakSwaggerParameters::Definitions::Property.new(:float, name, description, options))
|
23
|
+
end
|
24
|
+
|
21
25
|
def hash(name, description, options = {}, &block)
|
22
26
|
register_definition(name, options, WeakSwaggerParameters::Definitions::HashProperty.new(name, description, &block))
|
23
27
|
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
# frozen_string_literal: true
|
2
|
+
|
3
3
|
lib = File.expand_path('../lib', __FILE__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
require 'weak_swagger_parameters/version'
|
@@ -21,15 +21,15 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
23
|
spec.add_dependency 'rails', '>= 4'
|
24
|
-
spec.add_dependency 'weak_parameters', '~> 0.4'
|
25
24
|
spec.add_dependency 'swagger-blocks', '~> 1.3'
|
25
|
+
spec.add_dependency 'weak_parameters', '~> 0.4'
|
26
26
|
|
27
27
|
spec.add_development_dependency 'bundler', '~> 1.12'
|
28
|
+
spec.add_development_dependency 'json-schema', '~> 2.6'
|
28
29
|
spec.add_development_dependency 'rake', '~> 10.0'
|
29
30
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
30
|
-
spec.add_development_dependency 'sqlite3', '~> 1.3'
|
31
|
-
spec.add_development_dependency 'rspec-rails', '~> 3.4'
|
32
31
|
spec.add_development_dependency 'rspec-its', '~> 1.2'
|
33
|
-
spec.add_development_dependency '
|
34
|
-
spec.add_development_dependency '
|
32
|
+
spec.add_development_dependency 'rspec-rails', '~> 3.4'
|
33
|
+
spec.add_development_dependency 'rubocop', '~> 0.51.0'
|
34
|
+
spec.add_development_dependency 'sqlite3', '~> 1.3'
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weak_swagger_parameters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AgileFreaks
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -25,33 +25,33 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: swagger-blocks
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: weak_parameters
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0.4'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0.4'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,103 +67,103 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.12'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: json-schema
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.6'
|
76
76
|
type: :development
|
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: '
|
82
|
+
version: '2.6'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '10.0'
|
90
90
|
type: :development
|
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: '
|
96
|
+
version: '10.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '3.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: '
|
110
|
+
version: '3.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name: rspec-
|
112
|
+
name: rspec-its
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '1.2'
|
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: '
|
124
|
+
version: '1.2'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name: rspec-
|
126
|
+
name: rspec-rails
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '3.4'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '3.4'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rubocop
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 0.51.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 0.51.0
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: sqlite3
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
159
|
+
version: '1.3'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
166
|
+
version: '1.3'
|
167
167
|
description: Basic integration between swagger-blocks and weak_parameters
|
168
168
|
email:
|
169
169
|
- office@agilefreaks.com
|
@@ -178,6 +178,7 @@ files:
|
|
178
178
|
- ".travis.yml"
|
179
179
|
- CODE_OF_CONDUCT.md
|
180
180
|
- Gemfile
|
181
|
+
- Gemfile.lock
|
181
182
|
- LICENSE.txt
|
182
183
|
- README.md
|
183
184
|
- Rakefile
|
@@ -228,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
229
|
version: '0'
|
229
230
|
requirements: []
|
230
231
|
rubyforge_project:
|
231
|
-
rubygems_version: 2.
|
232
|
+
rubygems_version: 2.6.11
|
232
233
|
signing_key:
|
233
234
|
specification_version: 4
|
234
235
|
summary: Generate docs and Validate request parameters
|