grape-swagger 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source "http://rubygems.org"
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
 
6
- gem 'grape', '~> 0.2.0'
6
+ gem 'grape', '>= 0.2.0'
7
7
  gem 'kramdown'
8
8
 
9
9
  # Add dependencies to develop your gem here.
data/Gemfile.lock CHANGED
@@ -1,20 +1,27 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (3.2.6)
5
- i18n (~> 0.6)
4
+ activesupport (3.2.13)
5
+ i18n (= 0.6.1)
6
6
  multi_json (~> 1.0)
7
+ backports (2.6.7)
8
+ builder (3.2.0)
7
9
  coderay (1.0.7)
10
+ descendants_tracker (0.0.1)
8
11
  diff-lcs (1.1.3)
9
12
  git (1.2.5)
10
- grape (0.2.1)
11
- hashie (~> 1.2)
12
- multi_json
13
- multi_xml
14
- rack
13
+ grape (0.4.0)
14
+ activesupport
15
+ builder
16
+ hashie (>= 1.2.0)
17
+ multi_json (>= 1.3.2)
18
+ multi_xml (>= 0.5.2)
19
+ rack (>= 1.3.0)
20
+ rack-accept
15
21
  rack-mount
16
- hashie (1.2.0)
17
- i18n (0.6.0)
22
+ virtus
23
+ hashie (2.0.3)
24
+ i18n (0.6.1)
18
25
  jeweler (1.8.4)
19
26
  bundler (~> 1.0)
20
27
  git (>= 1.2.5)
@@ -23,13 +30,15 @@ GEM
23
30
  json (1.7.3)
24
31
  kramdown (0.13.7)
25
32
  method_source (0.8)
26
- multi_json (1.3.6)
27
- multi_xml (0.5.1)
33
+ multi_json (1.7.2)
34
+ multi_xml (0.5.3)
28
35
  pry (0.9.10)
29
36
  coderay (~> 1.0.5)
30
37
  method_source (~> 0.8)
31
38
  slop (~> 3.3.1)
32
- rack (1.4.1)
39
+ rack (1.5.2)
40
+ rack-accept (0.4.5)
41
+ rack (>= 0.4)
33
42
  rack-mount (0.8.3)
34
43
  rack (>= 1.0.0)
35
44
  rack-test (0.6.1)
@@ -52,13 +61,16 @@ GEM
52
61
  shoulda-matchers (1.2.0)
53
62
  activesupport (>= 3.0.0)
54
63
  slop (3.3.2)
64
+ virtus (0.5.4)
65
+ backports (~> 2.6.1)
66
+ descendants_tracker (~> 0.0.1)
55
67
 
56
68
  PLATFORMS
57
69
  ruby
58
70
 
59
71
  DEPENDENCIES
60
72
  bundler (> 1.0.0)
61
- grape (~> 0.2.0)
73
+ grape (>= 0.2.0)
62
74
  jeweler (~> 1.8.4)
63
75
  kramdown
64
76
  pry
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "grape-swagger"
8
- s.version = "0.4.0"
8
+ s.version = "0.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tim Vandecasteele"]
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
43
43
  s.specification_version = 3
44
44
 
45
45
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
- s.add_runtime_dependency(%q<grape>, ["~> 0.2.0"])
46
+ s.add_runtime_dependency(%q<grape>, [">= 0.2.0"])
47
47
  s.add_runtime_dependency(%q<kramdown>, [">= 0"])
48
48
  s.add_development_dependency(%q<shoulda>, [">= 0"])
49
49
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
@@ -53,7 +53,7 @@ Gem::Specification.new do |s|
53
53
  s.add_development_dependency(%q<rack-test>, [">= 0"])
54
54
  s.add_development_dependency(%q<rspec>, [">= 0"])
55
55
  else
56
- s.add_dependency(%q<grape>, ["~> 0.2.0"])
56
+ s.add_dependency(%q<grape>, [">= 0.2.0"])
57
57
  s.add_dependency(%q<kramdown>, [">= 0"])
58
58
  s.add_dependency(%q<shoulda>, [">= 0"])
59
59
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
@@ -64,7 +64,7 @@ Gem::Specification.new do |s|
64
64
  s.add_dependency(%q<rspec>, [">= 0"])
65
65
  end
66
66
  else
67
- s.add_dependency(%q<grape>, ["~> 0.2.0"])
67
+ s.add_dependency(%q<grape>, [">= 0.2.0"])
68
68
  s.add_dependency(%q<kramdown>, [">= 0"])
69
69
  s.add_dependency(%q<shoulda>, [">= 0"])
70
70
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
@@ -210,23 +210,23 @@ describe "options: " do
210
210
  {:bla => 'something'}
211
211
  end
212
212
  end
213
-
213
+
214
214
  class SimpleApiWithProtection < Grape::API
215
215
  mount ProtectedApi
216
216
  add_swagger_documentation
217
217
  end
218
218
  end
219
-
219
+
220
220
  def app; SimpleApiWithProtection; end
221
221
 
222
222
  it "should use https schema in mount point" do
223
223
  get '/swagger_doc', {}, 'rack.url_scheme' => 'https'
224
- last_response.body.should == "{:apiVersion=>\"0.1\", :swaggerVersion=>\"1.1\", :basePath=>\"https://example.org\", :operations=>[], :apis=>[{:path=>\"/swagger_doc/something.{format}\"}, {:path=>\"/swagger_doc/swagger_doc.{format}\"}]}"
224
+ last_response.body.should == "{:apiVersion=>\"0.1\", :swaggerVersion=>\"1.1\", :basePath=>\"https://example.org:80\", :operations=>[], :apis=>[{:path=>\"/swagger_doc/something.{format}\"}, {:path=>\"/swagger_doc/swagger_doc.{format}\"}]}"
225
225
  end
226
226
 
227
227
  it "should use https schema in endpoint doc" do
228
228
  get '/swagger_doc/something', {}, 'rack.url_scheme' => 'https'
229
- last_response.body.should == "{:apiVersion=>\"0.1\", :swaggerVersion=>\"1.1\", :basePath=>\"https://example.org\", :resourcePath=>\"\", :apis=>[{:path=>\"/something.{format}\", :operations=>[{:notes=>nil, :summary=>\"this gets something\", :nickname=>\"GET-something---format-\", :httpMethod=>\"GET\", :parameters=>[]}]}]}"
229
+ last_response.body.should == "{:apiVersion=>\"0.1\", :swaggerVersion=>\"1.1\", :basePath=>\"https://example.org:80\", :resourcePath=>\"\", :apis=>[{:path=>\"/something.{format}\", :operations=>[{:notes=>nil, :summary=>\"this gets something\", :nickname=>\"GET-something---format-\", :httpMethod=>\"GET\", :parameters=>[]}]}]}"
230
230
  end
231
231
  end
232
232
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-swagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 0.2.0
22
22
  type: :runtime
@@ -24,7 +24,7 @@ dependencies:
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ~>
27
+ - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 0.2.0
30
30
  - !ruby/object:Gem::Dependency
@@ -194,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  segments:
196
196
  - 0
197
- hash: -2543404597308803068
197
+ hash: 470443031386995496
198
198
  required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  none: false
200
200
  requirements: