introspective_grape 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaba5f38023f5950dbb62b4b64211d28a95a829d
|
4
|
+
data.tar.gz: 50294b7009026abfb133ffd26da1a1ccff4f4487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98e14dd55fcb67fa8bb16fc2aae68b78627e976fb74bac745917591de43d9fca85ac5f8aba289e731b21a0e8fcdea8a36a94ea164a3aa52cc90e92a38b872d75
|
7
|
+
data.tar.gz: ae6a260e0dd1f5e0e017a8dfad9ecdb60488e38164cac5bcd455ae920acae68786af92ce43a3b947607d98cbe702b6c54596cb23dcdfdd5111cd9c2f44583a3d
|
data/introspective_grape.gemspec
CHANGED
@@ -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]
|
@@ -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.
|
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.
|
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.
|
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
|