introspective_grape 0.5.7 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +22 -18
  3. data/README.md +2 -0
  4. data/introspective_grape.gemspec +5 -4
  5. data/lib/introspective_grape/api.rb +461 -459
  6. data/lib/introspective_grape/create_helpers.rb +25 -25
  7. data/lib/introspective_grape/traversal.rb +1 -1
  8. data/lib/introspective_grape/validators.rb +36 -36
  9. data/lib/introspective_grape/version.rb +5 -5
  10. data/spec/dummy/Gemfile +23 -22
  11. data/spec/dummy/app/api/api_helpers.rb +38 -37
  12. data/spec/dummy/app/api/dummy_api.rb +61 -61
  13. data/spec/dummy/app/api/permissions_helper.rb +7 -7
  14. data/spec/dummy/app/helpers/current.rb +3 -0
  15. data/spec/dummy/app/models/chat_message.rb +34 -34
  16. data/spec/dummy/app/models/chat_user.rb +16 -16
  17. data/spec/dummy/app/models/location.rb +26 -26
  18. data/spec/dummy/app/models/role.rb +30 -30
  19. data/spec/dummy/app/models/team.rb +14 -9
  20. data/spec/dummy/app/models/user/chatter.rb +79 -79
  21. data/spec/dummy/bin/bundle +3 -3
  22. data/spec/dummy/bin/rails +4 -4
  23. data/spec/dummy/bin/setup +36 -29
  24. data/spec/dummy/bin/update +31 -0
  25. data/spec/dummy/bin/yarn +11 -0
  26. data/spec/dummy/config/application.rb +30 -37
  27. data/spec/dummy/config/boot.rb +3 -6
  28. data/spec/dummy/config/environment.rb +5 -11
  29. data/spec/dummy/config/environments/development.rb +54 -42
  30. data/spec/dummy/config/environments/production.rb +81 -79
  31. data/spec/dummy/config/environments/test.rb +47 -44
  32. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  33. data/spec/dummy/config/initializers/assets.rb +14 -11
  34. data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
  35. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -3
  36. data/spec/dummy/config/initializers/inflections.rb +16 -16
  37. data/spec/dummy/config/initializers/new_framework_defaults_5_2.rb +38 -0
  38. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
  39. data/spec/dummy/config/locales/en.yml +33 -23
  40. data/spec/dummy/config/storage.yml +34 -0
  41. data/spec/models/image_spec.rb +10 -14
  42. data/spec/requests/project_api_spec.rb +185 -182
  43. data/spec/requests/user_api_spec.rb +221 -221
  44. data/spec/support/request_helpers.rb +22 -21
  45. metadata +20 -157
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d29e073d96e9a6f2569eeaec65ece289f344fd5f0b6ea88a0dfb345d36d51052
4
- data.tar.gz: dac77dd6bc6812de00ec06ee5299c5cea5ff0f3539a304e6a1d1335f72e69f36
3
+ metadata.gz: e2a07edad73a2ac601dfb2743775e01047ad725471d30694f3dec9579a0f0450
4
+ data.tar.gz: 6db4149759fe421ccc157124f2c4f5b5edc757b79646efff20ab6726f7f378f0
5
5
  SHA512:
6
- metadata.gz: 118befdc8fca693dd91610d8c0ecff86ca2e297cdb1b3817384b1fa78958a5949f1d252cc70eadf2187bee87080fb9949382e656b6765f259f4d23bba7fd2c47
7
- data.tar.gz: 21f3339a6e874bca7d94fa3efcd92812afbbc0e9b74371cafc8eb3e1644334930671ee59841a13237998272acc06954916a5b09ccd9eb760df38c8b3a28557f9
6
+ metadata.gz: bebc8fc3eb3e95e6c26a4b751485c666cd79cf485d8604d011bdcbfcc210c8d7a9411a976d28be5a012504d1a34dce68a872c33149ec76066ac57eddcff00e39
7
+ data.tar.gz: 1ae975dfdcbb9992981809c2ada02a5d04ab1453be6c136bcd523711b9e362fbee7e3e1cad726f5e12a92c38e5e44e2d003f6db0706be127ad6c9c9ec6ba79f2
data/Gemfile CHANGED
@@ -1,18 +1,22 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- # Declare your gem's dependencies in introspective_grape.gemspec.
5
- # Bundler will treat runtime dependencies like base dependencies, and
6
- # development dependencies will be added by default to the :development group.
7
-
8
-
9
- # Declare any dependencies that are still in development here instead of in
10
- # your gemspec. These might include edge Rails or gems from your path or
11
- # Git. Remember to move these dependencies to your gemspec before releasing
12
- # your gem to rubygems.org.
13
-
14
- group :development, :test do
15
- gem 'byebug'
16
- gem 'rb-readline'
17
- gem 'coveralls_reborn', require: false
18
- end
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ gem 'devise'
5
+ gem 'grape-entity'
6
+ gem 'grape-swagger'
7
+
8
+ # Declare your gem's dependencies in introspective_grape.gemspec.
9
+ # Bundler will treat runtime dependencies like base dependencies, and
10
+ # development dependencies will be added by default to the :development group.
11
+
12
+
13
+ # Declare any dependencies that are still in development here instead of in
14
+ # your gemspec. These might include edge Rails or gems from your path or
15
+ # Git. Remember to move these dependencies to your gemspec before releasing
16
+ # your gem to rubygems.org.
17
+
18
+ group :development, :test do
19
+ gem 'byebug'
20
+ gem 'rb-readline'
21
+ gem 'coveralls_reborn', require: false
22
+ end
data/README.md CHANGED
@@ -179,6 +179,8 @@ You can also eager load nested associations, if necessary:
179
179
  default_includes NestedModel, <associations for eager loading>
180
180
  ```
181
181
 
182
+ My suggestion would be to ignore this feature and rely instead on [ArLazyPreload](https://github.com/DmitryTsepelev/ar_lazy_preload).
183
+
182
184
  ## Pagination
183
185
 
184
186
  The index action by default will not be paginated. Simply declaring `paginate` before the `restful` declaration will enable [Kaminari](https://github.com/amatsuda/kaminari) pagination on the index results using a default 25 results per page with an offset of 0. You can pass Kaminari's options to the paginate declaration, `per_page`, `max_per_page`, etc.
@@ -18,17 +18,17 @@ Gem::Specification.new do |s|
18
18
  and building nested routes for the same.
19
19
  DESC
20
20
  s.license = 'MIT'
21
+ s.metadata = { "rubygems_mfa_required" => "true" }
21
22
 
22
23
  s.files = `git ls-files`.split("\n").sort
23
- s.test_files = `git ls-files -- spec/*`.split("\n")
24
24
 
25
- s.required_ruby_version = '> 2.5'
25
+ s.required_ruby_version = '> 2.5' # rubocop:disable Gemspec/RequiredRubyVersion
26
26
 
27
- s.add_runtime_dependency 'rails', '~> 5.2'
27
+ s.add_runtime_dependency 'rails' # , '6.1' #, '> 5.2'
28
28
  s.add_runtime_dependency 'schema_validations'
29
29
  s.add_runtime_dependency 'rack'
30
30
 
31
- s.add_runtime_dependency 'grape', '1.6.0'
31
+ s.add_runtime_dependency 'grape' # , '1.6.0'
32
32
  s.add_runtime_dependency 'dry-types'
33
33
  s.add_runtime_dependency 'grape-entity'
34
34
  s.add_runtime_dependency 'grape-swagger'
@@ -60,4 +60,5 @@ Gem::Specification.new do |s|
60
60
  s.add_development_dependency 'kt-paperclip'
61
61
  s.add_development_dependency 'rufus-mnemo'
62
62
  s.add_development_dependency 'devise'
63
+ s.metadata['rubygems_mfa_required'] = 'true'
63
64
  end