swagger-docs 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +5 -0
- data/lib/swagger/docs/dsl.rb +1 -1
- data/lib/swagger/docs/version.rb +1 -1
- data/spec/lib/swagger/docs/generator_spec.rb +7 -0
- data/swagger-docs.gemspec +3 -3
- metadata +11 -11
- metadata.gz.sig +1 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf18b79ce15cb8436f59367c1ece509850b4f671
|
4
|
+
data.tar.gz: cd5ee26cc156d613d0e1446a9a7744b112d421ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a25491571a345ecdb99060f71b5ed468275901ce3b9099339eecd146a3ac300b883d96c465a7d64804ac687d58f1bf6843cbe353b1ff20f5fe6af53b71ec01b0
|
7
|
+
data.tar.gz: ff752bfbb69eec66ada69efdeebf46c6e648a17f67345a7d8a8689bf69fbe15d918a7155270bdfeddb2c2356bc0f75f6bba8bea5d7530631f2e49d266ac6444d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
data/lib/swagger/docs/dsl.rb
CHANGED
@@ -45,7 +45,7 @@ module Swagger
|
|
45
45
|
# helper method to generate enums
|
46
46
|
def param_list(param_type, name, type, required, description = nil, allowed_values = [], hash = {})
|
47
47
|
hash.merge!({allowable_values: {value_type: "LIST", values: allowed_values}})
|
48
|
-
param(param_type, name, type, required, description
|
48
|
+
param(param_type, name, type, required, description, hash)
|
49
49
|
end
|
50
50
|
|
51
51
|
def response_messages
|
data/lib/swagger/docs/version.rb
CHANGED
@@ -251,6 +251,13 @@ describe Swagger::Docs::Generator do
|
|
251
251
|
expect(params.first["required"]).to be_falsey
|
252
252
|
end
|
253
253
|
end
|
254
|
+
context "list parameter" do
|
255
|
+
let(:api) { get_api_operation(apis, "sample", :post) }
|
256
|
+
let(:params) {api["parameters"] }
|
257
|
+
it "writes description correctly" do
|
258
|
+
expect(params[3]["description"]).to eq "Role"
|
259
|
+
end
|
260
|
+
end
|
254
261
|
#"responseMessages":[{"code":401,"message":"Unauthorized"},{"code":406,"message":"Not Acceptable"},{"code":416,"message":"Requested Range Not Satisfiable"}]
|
255
262
|
context "response messages" do
|
256
263
|
let(:response_msgs) { operations.first["responseMessages"] }
|
data/swagger-docs.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
26
26
|
spec.add_development_dependency "rake", "~> 10"
|
27
|
-
spec.add_development_dependency "rspec", "
|
28
|
-
spec.add_development_dependency "
|
29
|
-
spec.add_development_dependency "appraisal", "
|
27
|
+
spec.add_development_dependency "rspec", "~> 3"
|
28
|
+
spec.add_development_dependency "active_support", "~> 3"
|
29
|
+
spec.add_development_dependency "appraisal", "~> 1"
|
30
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger-docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rich Hollis
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
RYcsqDfanYBx7QcftOnbeQq7/Ep7Zx+W9+Ph3TiJLMLdAr7bLkgN1SjvrjTL5mQR
|
31
31
|
FuQtYvE4LKiUQpG7vLTRB78dQBlSj9fnv2OM9w==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2014-
|
33
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: bundler
|
@@ -64,42 +64,42 @@ dependencies:
|
|
64
64
|
name: rspec
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 3
|
69
|
+
version: '3'
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 3
|
76
|
+
version: '3'
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
|
-
name:
|
78
|
+
name: active_support
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '3'
|
84
84
|
type: :development
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - "
|
88
|
+
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '3'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: appraisal
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - "
|
95
|
+
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '1'
|
98
98
|
type: :development
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - "
|
102
|
+
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '1'
|
105
105
|
description: Generates json files for rails apps to use with swagger-ui
|
metadata.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
�
|
2
|
-
齱������)5|�v�ng��v]Q�grx��yW�dx?��^�%r�E��Ͻ=�-����F%�
|
1
|
+
�_T���գE3�y%}�h���!���X�t��kuH"ݒh0gS&%�X-A���,���4.�e�;��:�tY�Hz�6�1L�_=N���`��#����%�dmL�Y���>�\)��SF_Er2~��khCB���֯~�R���
|