introspective_grape 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/introspective_grape.gemspec +7 -6
- data/lib/introspective_grape/api.rb +0 -2
- data/lib/introspective_grape/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d65a93a41cf1a7afd03d352bd9856daa53d2bcfc4f22fa6674ec7f19bb21251c
|
4
|
+
data.tar.gz: 907d5178a60e8dedbddc7f9854f8796ba337b4d6eb5c5d0ce99c699bb74535ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43e3835f5f5573a9c896e1189933a7ed7a2ac889fe644e13b6fefedd801fd601ec887e77881224ba9c86055184338521296149460b814970800100fa94400b98
|
7
|
+
data.tar.gz: 228f587da2205b9895235c1b5803d52e7b1dcb722a89d67ecde525a1253fa79dc1eef20bba4989155f8be8e35ae05899a74c9728f2ab42d337b6af3f6795fbfb
|
data/introspective_grape.gemspec
CHANGED
@@ -21,17 +21,18 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.required_ruby_version = '>= 2.3'
|
22
22
|
|
23
23
|
s.add_dependency "rails", '> 5.0.0'
|
24
|
+
# grape < 1.3.0 is incompatible with rack 2.1.0
|
24
25
|
s.add_dependency "rack", '< 2.0.9'
|
25
26
|
|
26
27
|
# grape 1.0.0 breaks the pagination solution
|
27
|
-
s.
|
28
|
-
s.
|
29
|
-
s.
|
30
|
-
s.
|
28
|
+
s.add_runtime_dependency 'grape', ['~> 1.2.0', '< 1.2.5']
|
29
|
+
s.add_runtime_dependency 'grape-entity'
|
30
|
+
s.add_runtime_dependency 'grape-swagger'
|
31
|
+
s.add_runtime_dependency 'kaminari' #, '< 1.0' # version 1.0.0 breaks
|
31
32
|
#s.add_dependency 'grape-kaminari', :github => 'alexey-klimuk/grape-kaminari'
|
32
33
|
# Pundit 2.0 mysteriously made authorize a protected method...
|
33
|
-
s.
|
34
|
-
s.
|
34
|
+
s.add_runtime_dependency 'pundit' #, '<2.0'
|
35
|
+
s.add_runtime_dependency 'camel_snake_keys', '>0.0.4'
|
35
36
|
|
36
37
|
if RUBY_PLATFORM == 'java'
|
37
38
|
#s.add_development_dependency "jdbc-sqlite3"
|
@@ -248,8 +248,6 @@ module IntrospectiveGrape
|
|
248
248
|
|
249
249
|
@model.update_attributes!( safe_params(params).permit(klass.whitelist) )
|
250
250
|
|
251
|
-
default_includes = routes.first.klass.default_includes(routes.first.model)
|
252
|
-
|
253
251
|
if IntrospectiveGrape.config.skip_object_reload
|
254
252
|
present klass.find_leaf(routes, @model, params), with: "#{klass}::#{model}Entity".constantize
|
255
253
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: introspective_grape
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Buermann
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -419,7 +419,7 @@ homepage: https://github.com/buermann/introspective_grape
|
|
419
419
|
licenses:
|
420
420
|
- MIT
|
421
421
|
metadata: {}
|
422
|
-
post_install_message:
|
422
|
+
post_install_message:
|
423
423
|
rdoc_options: []
|
424
424
|
require_paths:
|
425
425
|
- lib
|
@@ -435,7 +435,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
435
435
|
version: '0'
|
436
436
|
requirements: []
|
437
437
|
rubygems_version: 3.1.2
|
438
|
-
signing_key:
|
438
|
+
signing_key:
|
439
439
|
specification_version: 4
|
440
440
|
summary: Introspectively configure deeply nested RESTful Grape APIs for ActiveRecord
|
441
441
|
models.
|