active_record-json_associations 0.11.0 → 0.12.0

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: 74ef04233cdf6b923c6be5762d8aa373428bf0ddd74a8fe48f46cbd9b3f16851
4
- data.tar.gz: b40d4491c6619ecd3d858864706e3e05e459a3d3f3b20f50eadf0eed416c05db
3
+ metadata.gz: d6216fb9d4e62c9c8cb923d201468dcf3cf6843b287e747a068fd646e9c49a3f
4
+ data.tar.gz: 31f562eb9e8e9f2d029a59539977bb2e10a21555532b1dc3031a971487335f69
5
5
  SHA512:
6
- metadata.gz: ea1b394dbe6ba8524b50228d9f226af19699171105cd8dda69b7f92f1b1fee6a9dfa06aa85301bfc2403fdb3831972799a38d01a6353c035235e1935fcc57bc2
7
- data.tar.gz: e37aec9fff5cfe740cda139ed46c1b7fada912a30a26ebed3945ac6e0a8c7e9356071360278323867f949a666654cf47c9d351b2431c5a2b75fc568273b5439d
6
+ metadata.gz: c3913f45325fbd16a2983f9ec5e9d38d9f4121984d585baacb782a40ad01b54c99de287eeca8151b2aa1556153aee3157d8776c9f0515688e5122ffd7f0b61a5
7
+ data.tar.gz: 7a280e3431ed93c53719ced45e48dc85f39c797ffd2e39483a8bb060a3f18d63c3f1c99ff3c33a5b55e1f1c74fe0721b5786fa2b28853aefb035dbf91e3e40dc
@@ -5,8 +5,8 @@ jobs:
5
5
  strategy:
6
6
  fail-fast: false
7
7
  matrix:
8
- gemfile: [ rails_5.1, rails_5.2, rails_6.0, rails_6.1, rails_7.0 ]
9
- ruby: [ 2.6, 2.7, '3.0' ]
8
+ gemfile: [ rails_6.1, rails_7.0, rails_7.1 ]
9
+ ruby: [ 2.6, 2.7, '3.0', 3.1, 3.2 ]
10
10
  exclude:
11
11
  - gemfile: rails_5.1
12
12
  ruby: 3.0
@@ -14,6 +14,8 @@ jobs:
14
14
  ruby: 3.0
15
15
  - gemfile: rails_7.0
16
16
  ruby: 2.6
17
+ - gemfile: rails_7.1
18
+ ruby: 2.6
17
19
 
18
20
  runs-on: ubuntu-latest
19
21
  env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
data/Appraisals CHANGED
@@ -1,15 +1,3 @@
1
- appraise "rails-5.1" do
2
- gem "rails", "~>5.1.0"
3
- end
4
-
5
- appraise "rails-5.2" do
6
- gem "rails", "~>5.2.0"
7
- end
8
-
9
- appraise "rails-6.0" do
10
- gem "rails", "~>6.0.0"
11
- end
12
-
13
1
  appraise "rails-6.1" do
14
2
  gem "rails", "~>6.1.0"
15
3
  end
@@ -18,3 +6,7 @@ appraise "rails-7.0" do
18
6
  gem "rails", "~>7.0.0"
19
7
  end
20
8
 
9
+ appraise "rails-7.1" do
10
+ gem "rails", "~>7.1.0"
11
+ end
12
+
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~>5.1.0"
5
+ gem "rails", "~>7.1.0"
6
6
 
7
7
  gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module JsonAssociations
3
- VERSION = "0.11.0"
3
+ VERSION = "0.12.0"
4
4
  end
5
5
  end
@@ -20,7 +20,12 @@ module ActiveRecord
20
20
 
21
21
  class_name ||= one.classify
22
22
 
23
- serialize one_ids, JSON
23
+
24
+ if ActiveRecord.version >= Gem::Version.new("7.1")
25
+ serialize one_ids, coder: JSON
26
+ else
27
+ serialize one_ids, JSON
28
+ end
24
29
 
25
30
  if touch
26
31
  after_commit do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record-json_associations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-25 00:00:00.000000000 Z
11
+ date: 2023-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -140,11 +140,9 @@ files:
140
140
  - Rakefile
141
141
  - active_record-json_associations.gemspec
142
142
  - bin/setup
143
- - gemfiles/rails_5.1.gemfile
144
- - gemfiles/rails_5.2.gemfile
145
- - gemfiles/rails_6.0.gemfile
146
143
  - gemfiles/rails_6.1.gemfile
147
144
  - gemfiles/rails_7.0.gemfile
145
+ - gemfiles/rails_7.1.gemfile
148
146
  - lib/active_record/json_associations.rb
149
147
  - lib/active_record/json_associations/version.rb
150
148
  - spec/json_associations_spec.rb
@@ -168,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
166
  - !ruby/object:Gem::Version
169
167
  version: '0'
170
168
  requirements: []
171
- rubygems_version: 3.1.6
169
+ rubygems_version: 3.2.32
172
170
  signing_key:
173
171
  specification_version: 4
174
172
  summary: Instead of a many-to-many join table, serialize the ids into a JSON array.
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~>5.2.0"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~>6.0.0"
6
-
7
- gemspec path: "../"