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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3034e0ca4ea70e3b33f6971169aa59faae640f4d43272fa1152293abf693651b
4
- data.tar.gz: ea99ca40acf330e9a5136ef0789ab59737333b88fdaeec54027b4812aa9669f6
3
+ metadata.gz: d65a93a41cf1a7afd03d352bd9856daa53d2bcfc4f22fa6674ec7f19bb21251c
4
+ data.tar.gz: 907d5178a60e8dedbddc7f9854f8796ba337b4d6eb5c5d0ce99c699bb74535ed
5
5
  SHA512:
6
- metadata.gz: 946339968ec6dc500c349751582d2b7c0b280522c2942ed152d8a5f8828b576ed1ddb9b118d849a2e00bbcebb352512ac5fb7465b047552f6269a4e40be2794c
7
- data.tar.gz: 1f14f292c04fb776c12665adb84e46b81d75b26a7ba90cc0187f7b2f9b59a35f0265ead685ba612f5e5b1763a3ff992ddd372ef456db2447a678f0ae5afe1238
6
+ metadata.gz: 43e3835f5f5573a9c896e1189933a7ed7a2ac889fe644e13b6fefedd801fd601ec887e77881224ba9c86055184338521296149460b814970800100fa94400b98
7
+ data.tar.gz: 228f587da2205b9895235c1b5803d52e7b1dcb722a89d67ecde525a1253fa79dc1eef20bba4989155f8be8e35ae05899a74c9728f2ab42d337b6af3f6795fbfb
@@ -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.add_dependency 'grape', ['~> 1.2.0', '< 1.2.5']
28
- s.add_dependency 'grape-entity'
29
- s.add_dependency 'grape-swagger'
30
- s.add_dependency 'kaminari' #, '< 1.0' # version 1.0.0 breaks
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.add_dependency 'pundit' #, '<2.0'
34
- s.add_dependency 'camel_snake_keys', '>0.0.4'
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
@@ -1,3 +1,3 @@
1
1
  module IntrospectiveGrape
2
- VERSION = "0.4.1".freeze
2
+ VERSION = "0.4.2".freeze
3
3
  end
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.1
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: 2020-10-20 00:00:00.000000000 Z
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.