active_model_serializers_pg 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee3c698a1508537d359551eb125a45c38bd0921dfd059ae49422dd7d114aa7f2
|
4
|
+
data.tar.gz: 677ac55b0c35a51ba03b042b34ed3fd560b57d223b6687ca020eaa3b131aabda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82f91e03d0b6440e6b6002909b51e346c5e21293659ca0fc80b976df30bcfc089a294b1c4f42a7ca20c01b20d612203ead218ec3c268d5bd5bb4832652df923d
|
7
|
+
data.tar.gz: d906a81cde8076d6150f6466263619f5283d3f5e1e9bbcedaef938f8f5633e2fdd2d1366ef3ca18343669773ef09809cc837df3cc99719ecaefbdae8a94ff2a7
|
data/README.md
CHANGED
@@ -119,7 +119,7 @@ To work on active\_model\_serializers\_pg locally, follow these steps:
|
|
119
119
|
4. Run `bundle exec rake db:create`, this will create the test database.
|
120
120
|
5. Run `bundle exec rake db:migrate`, this will set up the database tables required
|
121
121
|
by the test.
|
122
|
-
6. Run `bundle exec rake test:all` to run tests against all supported versions of Active Record (currently 5.0.x, 5.1.x, 5.2.x).
|
122
|
+
6. Run `bundle exec rake test:all` to run tests against all supported versions of Active Record (currently 5.0.x, 5.1.x, 5.2.x, 6.0.x).
|
123
123
|
You can also say `BUNDLE_GEMFILE=gemfiles/Gemfile.activerecord-5.2.x bundle exec rspec spec` to run against a specific version (and select specific tests).
|
124
124
|
|
125
125
|
Commands for building/releasing/installing:
|
data/Rakefile
CHANGED
@@ -151,7 +151,7 @@ namespace :test do
|
|
151
151
|
# Escape current bundler environment
|
152
152
|
Bundler.with_clean_env do
|
153
153
|
# Currently only supports Active Record v5.0-v5.2
|
154
|
-
%w(5.0.x 5.1.x 5.2.x).each do |version|
|
154
|
+
%w(5.0.x 5.1.x 5.2.x 6.0.x).each do |version|
|
155
155
|
sh "BUNDLE_GEMFILE='gemfiles/Gemfile.activerecord-#{version}' bundle install --quiet"
|
156
156
|
sh "BUNDLE_GEMFILE='gemfiles/Gemfile.activerecord-#{version}' bundle exec rspec spec"
|
157
157
|
end
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_runtime_dependency 'active_model_serializers', '~> 0.10.8'
|
22
|
-
spec.add_runtime_dependency 'activerecord', '
|
22
|
+
spec.add_runtime_dependency 'activerecord', '>= 5.0'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
25
25
|
spec.add_development_dependency 'actionpack', '> 4.0'
|
@@ -546,11 +546,8 @@ class JsonApiPgSql
|
|
546
546
|
# TODO: preserve the whole custom relation, not just ordering
|
547
547
|
p = refl.ar_class.new
|
548
548
|
ordering = nil
|
549
|
-
|
550
|
-
|
551
|
-
ordering = p.send(refl.name).orders
|
552
|
-
ordering = child_resource.ar_class.default_scoped.orders if ordering.empty?
|
553
|
-
end
|
549
|
+
ordering = p.send(refl.name).arel.orders
|
550
|
+
ordering = child_resource.ar_class.default_scoped.arel.orders if ordering.empty?
|
554
551
|
ordering = ordering.map{|o|
|
555
552
|
case o
|
556
553
|
# TODO: The gsub is pretty awful....
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_model_serializers_pg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul A. Jungwirth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '5.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '5.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -196,6 +196,7 @@ files:
|
|
196
196
|
- gemfiles/Gemfile.activerecord-5.0.x
|
197
197
|
- gemfiles/Gemfile.activerecord-5.1.x
|
198
198
|
- gemfiles/Gemfile.activerecord-5.2.x
|
199
|
+
- gemfiles/Gemfile.activerecord-6.0.x
|
199
200
|
- lib/active_model_serializers/adapter/json_api_pg.rb
|
200
201
|
- lib/active_model_serializers_pg.rb
|
201
202
|
- lib/active_model_serializers_pg/collection_serializer.rb
|
@@ -226,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
227
|
- !ruby/object:Gem::Version
|
227
228
|
version: '0'
|
228
229
|
requirements: []
|
229
|
-
rubygems_version: 3.0.
|
230
|
+
rubygems_version: 3.0.3
|
230
231
|
signing_key:
|
231
232
|
specification_version: 4
|
232
233
|
summary: Harness the power of PostgreSQL when crafting JSON reponses
|