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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79b8f96fd5d1dd858fd3a235edfdffb7428e6580
4
- data.tar.gz: 6e897b7424794ce10918a371d2cf7b7c92ac8586
3
+ metadata.gz: bf18b79ce15cb8436f59367c1ece509850b4f671
4
+ data.tar.gz: cd5ee26cc156d613d0e1446a9a7744b112d421ef
5
5
  SHA512:
6
- metadata.gz: 05e6f94b18aa17704e320384ebe444188ed248eb0a6d36f195e997ea51c915ac7335a11e8b8de4166fceca8866bcf8249152eeeebd950e4c9ca808426426ae4e
7
- data.tar.gz: 78e2d06232b9244590fa5a886d5f8530ed8564de293e8237a6b7781a2507ef81708fb3b3c99a9203d59f607b97ac488552d991d91c3dc50a372a61c3ebb4ca35
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
@@ -1,3 +1,8 @@
1
+ ## 0.1.8
2
+
3
+ - Fix issue with gem build open-ended dependency warnings in gemspec
4
+ - Fix issue where param_list doesn't output parameter description #57
5
+
1
6
  ## 0.1.7
2
7
 
3
8
  - Make camelizing of model properties configurable. #55
@@ -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 = nil, hash)
48
+ param(param_type, name, type, required, description, hash)
49
49
  end
50
50
 
51
51
  def response_messages
@@ -1,5 +1,5 @@
1
1
  module Swagger
2
2
  module Docs
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
@@ -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", "= 3.0.0beta2"
28
- spec.add_development_dependency "rails", ">= 3"
29
- spec.add_development_dependency "appraisal", ">= 1"
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.7
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-05-30 00:00:00.000000000 Z
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.0.0beta2
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.0.0beta2
76
+ version: '3'
77
77
  - !ruby/object:Gem::Dependency
78
- name: rails
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
- p.�>���PS?�z�~7x��?WeT$��b�����=�$�tI��P ����Z�՘rTi'dI����_�voaK'��/�Q��9�D
2
- 齱������ )5|�v�ng��v]Q�grx��yW�dx?��^�%r�E��Ͻ=�-����F%�
1
+ _T���գE3y%}h���!���X�t��kuH"ݒh0gS&%�X-A���,���4.�e�;��:�tY�Hz�6�1L�_=N���`��#����%�dmL�Y���>�\)��SF_Er2~��khCB���֯~�R���