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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile +22 -18
- data/README.md +2 -0
- data/introspective_grape.gemspec +5 -4
- data/lib/introspective_grape/api.rb +461 -454
- data/lib/introspective_grape/create_helpers.rb +25 -25
- data/lib/introspective_grape/traversal.rb +1 -1
- data/lib/introspective_grape/validators.rb +36 -34
- data/lib/introspective_grape/version.rb +5 -5
- data/spec/dummy/Gemfile +23 -22
- data/spec/dummy/app/api/api_helpers.rb +38 -37
- data/spec/dummy/app/api/dummy_api.rb +61 -61
- data/spec/dummy/app/api/permissions_helper.rb +7 -7
- data/spec/dummy/app/helpers/current.rb +3 -0
- data/spec/dummy/app/models/chat_message.rb +34 -34
- data/spec/dummy/app/models/chat_user.rb +16 -16
- data/spec/dummy/app/models/location.rb +26 -26
- data/spec/dummy/app/models/role.rb +30 -30
- data/spec/dummy/app/models/team.rb +14 -9
- data/spec/dummy/app/models/user/chatter.rb +79 -79
- data/spec/dummy/bin/bundle +3 -3
- data/spec/dummy/bin/rails +4 -4
- data/spec/dummy/bin/setup +36 -29
- data/spec/dummy/bin/update +31 -0
- data/spec/dummy/bin/yarn +11 -0
- data/spec/dummy/config/application.rb +30 -37
- data/spec/dummy/config/boot.rb +3 -6
- data/spec/dummy/config/environment.rb +5 -11
- data/spec/dummy/config/environments/development.rb +54 -42
- data/spec/dummy/config/environments/production.rb +81 -79
- data/spec/dummy/config/environments/test.rb +47 -44
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +14 -11
- data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -3
- data/spec/dummy/config/initializers/inflections.rb +16 -16
- data/spec/dummy/config/initializers/new_framework_defaults_5_2.rb +38 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
- data/spec/dummy/config/locales/en.yml +33 -23
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/models/image_spec.rb +10 -14
- data/spec/requests/project_api_spec.rb +185 -182
- data/spec/requests/user_api_spec.rb +221 -221
- data/spec/support/request_helpers.rb +22 -21
- metadata +21 -158
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2a07edad73a2ac601dfb2743775e01047ad725471d30694f3dec9579a0f0450
|
4
|
+
data.tar.gz: 6db4149759fe421ccc157124f2c4f5b5edc757b79646efff20ab6726f7f378f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
#
|
10
|
-
#
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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.
|
data/introspective_grape.gemspec
CHANGED
@@ -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 = '
|
25
|
+
s.required_ruby_version = '> 2.5' # rubocop:disable Gemspec/RequiredRubyVersion
|
26
26
|
|
27
|
-
s.add_runtime_dependency 'rails', '
|
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
|