introspective_grape 0.5.5 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/Gemfile +22 -18
  4. data/README.md +2 -0
  5. data/introspective_grape.gemspec +5 -4
  6. data/lib/introspective_grape/api.rb +461 -454
  7. data/lib/introspective_grape/create_helpers.rb +25 -25
  8. data/lib/introspective_grape/traversal.rb +1 -1
  9. data/lib/introspective_grape/validators.rb +36 -34
  10. data/lib/introspective_grape/version.rb +5 -5
  11. data/spec/dummy/Gemfile +23 -22
  12. data/spec/dummy/app/api/api_helpers.rb +38 -37
  13. data/spec/dummy/app/api/dummy_api.rb +61 -61
  14. data/spec/dummy/app/api/permissions_helper.rb +7 -7
  15. data/spec/dummy/app/helpers/current.rb +3 -0
  16. data/spec/dummy/app/models/chat_message.rb +34 -34
  17. data/spec/dummy/app/models/chat_user.rb +16 -16
  18. data/spec/dummy/app/models/location.rb +26 -26
  19. data/spec/dummy/app/models/role.rb +30 -30
  20. data/spec/dummy/app/models/team.rb +14 -9
  21. data/spec/dummy/app/models/user/chatter.rb +79 -79
  22. data/spec/dummy/bin/bundle +3 -3
  23. data/spec/dummy/bin/rails +4 -4
  24. data/spec/dummy/bin/setup +36 -29
  25. data/spec/dummy/bin/update +31 -0
  26. data/spec/dummy/bin/yarn +11 -0
  27. data/spec/dummy/config/application.rb +30 -37
  28. data/spec/dummy/config/boot.rb +3 -6
  29. data/spec/dummy/config/environment.rb +5 -11
  30. data/spec/dummy/config/environments/development.rb +54 -42
  31. data/spec/dummy/config/environments/production.rb +81 -79
  32. data/spec/dummy/config/environments/test.rb +47 -44
  33. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  34. data/spec/dummy/config/initializers/assets.rb +14 -11
  35. data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
  36. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -3
  37. data/spec/dummy/config/initializers/inflections.rb +16 -16
  38. data/spec/dummy/config/initializers/new_framework_defaults_5_2.rb +38 -0
  39. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
  40. data/spec/dummy/config/locales/en.yml +33 -23
  41. data/spec/dummy/config/storage.yml +34 -0
  42. data/spec/models/image_spec.rb +10 -14
  43. data/spec/requests/project_api_spec.rb +185 -182
  44. data/spec/requests/user_api_spec.rb +221 -221
  45. data/spec/support/request_helpers.rb +22 -21
  46. metadata +21 -158
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e942af5ab00cc32f0611bfe27ec28ad6dbeb3d5b6f20d847dae3f1dd66cd5d2
4
- data.tar.gz: 489588ff1f420618c18566e111933dab186cdc6d16493ec8a3f17cfad8ece9d6
3
+ metadata.gz: e2a07edad73a2ac601dfb2743775e01047ad725471d30694f3dec9579a0f0450
4
+ data.tar.gz: 6db4149759fe421ccc157124f2c4f5b5edc757b79646efff20ab6726f7f378f0
5
5
  SHA512:
6
- metadata.gz: 783bdfd1b17ba6709e2d86146d27e427579051e71de65fb76bebfe4f77ca445093fd03176f6adacf6749accf918ceb9a0a0fbb205ef06329da18535962ad98bd
7
- data.tar.gz: 60bbbbf652648b841091fa37b6494b87a87fe6b72732b0d1f0540ad5b52ec258684b4ccd19bcee99f285b608a73a08f75975e0c6777900774b23d1b1d724e2d5
6
+ metadata.gz: bebc8fc3eb3e95e6c26a4b751485c666cd79cf485d8604d011bdcbfcc210c8d7a9411a976d28be5a012504d1a34dce68a872c33149ec76066ac57eddcff00e39
7
+ data.tar.gz: 1ae975dfdcbb9992981809c2ada02a5d04ab1453be6c136bcd523711b9e362fbee7e3e1cad726f5e12a92c38e5e44e2d003f6db0706be127ad6c9c9ec6ba79f2
data/CHANGELOG.md CHANGED
@@ -1,4 +1,14 @@
1
1
 
2
+ 0.5.7 03/10/2022
3
+ ================
4
+
5
+ Handle the switch from Grape::Validations::Base to Grape::Validations::Validators::Base.
6
+
7
+ 0.5.6 03/09/2022
8
+ ================
9
+
10
+ On the DELETE endpoint the primary key with its type was undeclared, creating conflicts with user-defined delete endpoints.
11
+
2
12
  0.5.5 02/24/2022
3
13
  ================
4
14
 
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