introspective_grape 0.0.3 → 0.0.4

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: 761abffe58bfde3182b6f5c645b6bc624b8a502a
4
- data.tar.gz: 65def46d2cef2344127a76aeb3948036f6a1f588
3
+ metadata.gz: aaba5f38023f5950dbb62b4b64211d28a95a829d
4
+ data.tar.gz: 50294b7009026abfb133ffd26da1a1ccff4f4487
5
5
  SHA512:
6
- metadata.gz: 8ca4f68396021cb1f41f9d29e34cee999063c45a4051f24ce20d8a35adcf41c2a3a54cc6f0fa1d48140aa8900b49ea3794688ff00c6a571ead3c17d616acbcc1
7
- data.tar.gz: 8ff42a11228aebac3c8d9f3835bef5cff2c5950cd9ab85f23919205b0295d1a3ebc75e6806c87aca14410a39f9294be70327f97b1eff1b3405959f362a4c883c
6
+ metadata.gz: 98e14dd55fcb67fa8bb16fc2aae68b78627e976fb74bac745917591de43d9fca85ac5f8aba289e731b21a0e8fcdea8a36a94ea164a3aa52cc90e92a38b872d75
7
+ data.tar.gz: ae6a260e0dd1f5e0e017a8dfad9ecdb60488e38164cac5bcd455ae920acae68786af92ce43a3b947607d98cbe702b6c54596cb23dcdfdd5111cd9c2f44583a3d
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.add_dependency 'grape'
27
27
  s.add_dependency 'grape-entity'
28
- s.add_dependency 'grape-swagger', '<= 0.10.2'
28
+ s.add_dependency 'grape-swagger', '~> 0.10.4'
29
29
  s.add_dependency 'pundit'
30
30
 
31
31
  if RUBY_PLATFORM == 'java'
@@ -50,7 +50,7 @@ module Grape
50
50
  doc = create_documentation_class_without_camelized
51
51
  doc.class_eval do
52
52
  class << self
53
- def parse_params_with_camelized(params, path, method)
53
+ def parse_params_with_camelized(params, path, method, options = {})
54
54
  parsed_params = parse_params_without_camelized(params, path, method)
55
55
  parsed_params.each_with_index do |param|
56
56
  param[:name] = param[:name]
@@ -1,3 +1,3 @@
1
1
  module IntrospectiveGrape
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -0,0 +1,14 @@
1
+ require 'rails_helper'
2
+ describe GrapeSwagger, type: :request do
3
+
4
+ context :swagger_doc do
5
+
6
+ it "should render swagger docs for the api" do
7
+ get '/api/v1/swagger_doc'
8
+ response.should be_success
9
+ json = JSON.parse( response.body )
10
+ json['apiVersion'].should == 'v1'
11
+ end
12
+ end
13
+
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: introspective_grape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Buermann
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: grape-swagger
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "<="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.10.2
75
+ version: 0.10.4
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: 0.10.2
82
+ version: 0.10.4
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pundit
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -386,6 +386,7 @@ files:
386
386
  - spec/requests/project_api_spec.rb
387
387
  - spec/requests/role_api_spec.rb
388
388
  - spec/requests/sessions_api_spec.rb
389
+ - spec/requests/swagger_spec.rb
389
390
  - spec/requests/user_api_spec.rb
390
391
  - spec/support/blueprints.rb
391
392
  - spec/support/location_helper.rb
@@ -555,6 +556,7 @@ test_files:
555
556
  - spec/requests/project_api_spec.rb
556
557
  - spec/requests/role_api_spec.rb
557
558
  - spec/requests/sessions_api_spec.rb
559
+ - spec/requests/swagger_spec.rb
558
560
  - spec/requests/user_api_spec.rb
559
561
  - spec/support/blueprints.rb
560
562
  - spec/support/location_helper.rb