attr_json-associations 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +20 -7
- data/.gitignore +1 -0
- data/CHANGELOG.md +8 -0
- data/gemfiles/rails60.gemfile +1 -0
- data/gemfiles/rails70.gemfile +6 -0
- data/gemfiles/rails71.gemfile +6 -0
- data/lib/attr_json/associations/record.rb +6 -5
- data/lib/attr_json/associations/version.rb +1 -1
- data/lib/attr_json-associations.rb +2 -0
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e61f07de1ec25bef3ea2eace45308e04e8d69a020f47cb2fa109f6e644ea0152
|
4
|
+
data.tar.gz: 843e0103208a27818b7a5c66787a7957b92384744b914ab8dcfbc7adf83afa09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1282efc741996be66fc28616ec6da92035302238eee2dd4e6098d2355a4abaca47041aaa8471089d7b01646cacbe0bdea257bd2c8058e5cb7461c19e4619290
|
7
|
+
data.tar.gz: aa54d05cc2e46b52126e5d196738049d0879ed0b19e9b05264b25aa386ccee42e3a3b261c877e5ce8e7cf29de47f19065c482280cf4210ebd9043461420fd225
|
data/.github/workflows/ci.yml
CHANGED
@@ -4,10 +4,10 @@ on: [push, pull_request]
|
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
test:
|
7
|
-
runs-on: ubuntu-
|
7
|
+
runs-on: ubuntu-22.04
|
8
8
|
services:
|
9
9
|
postgres:
|
10
|
-
image: postgres:
|
10
|
+
image: postgres:15
|
11
11
|
env:
|
12
12
|
POSTGRES_USER: postgres
|
13
13
|
POSTGRES_PASSWORD: postgres
|
@@ -17,11 +17,24 @@ jobs:
|
|
17
17
|
strategy:
|
18
18
|
fail-fast: false
|
19
19
|
matrix:
|
20
|
-
ruby: [2.7, 3.0]
|
21
|
-
|
22
|
-
|
20
|
+
ruby: [2.7, '3.0', 3.1, 3.2, 3.3]
|
21
|
+
gemfile: ['rails60', 'rails61', 'rails70', 'rails71']
|
22
|
+
attr_json: [1.3, 1.4, 1.5, '2.0', 2.1, 2.2]
|
23
|
+
exclude:
|
24
|
+
- attr_json: 1.3
|
25
|
+
gemfile: rails70
|
26
|
+
- attr_json: 1.3
|
27
|
+
gemfile: rails71
|
28
|
+
- attr_json: 1.4
|
29
|
+
gemfile: rails71
|
30
|
+
- attr_json: 1.5
|
31
|
+
gemfile: rails71
|
32
|
+
- attr_json: 2.0
|
33
|
+
gemfile: rails71
|
34
|
+
- attr_json: 2.1
|
35
|
+
gemfile: rails71
|
23
36
|
|
24
|
-
name: ruby ${{ matrix.ruby }},
|
37
|
+
name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}, attr_json ${{ matrix.attr_json }}
|
25
38
|
|
26
39
|
env:
|
27
40
|
POSTGRES_USER: postgres
|
@@ -30,7 +43,7 @@ jobs:
|
|
30
43
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
31
44
|
|
32
45
|
steps:
|
33
|
-
- uses: actions/checkout@
|
46
|
+
- uses: actions/checkout@v4
|
34
47
|
- uses: ruby/setup-ruby@v1
|
35
48
|
with:
|
36
49
|
ruby-version: ${{ matrix.ruby }}
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/gemfiles/rails60.gemfile
CHANGED
@@ -4,13 +4,14 @@ module AttrJson::Associations
|
|
4
4
|
module Record
|
5
5
|
extend ActiveSupport::Concern
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
end
|
7
|
+
def reload(...)
|
8
|
+
@attr_json_associations_cache = {}
|
9
|
+
super
|
11
10
|
end
|
12
11
|
|
13
|
-
|
12
|
+
private
|
13
|
+
|
14
|
+
def init_internals
|
14
15
|
@attr_json_associations_cache = {}
|
15
16
|
super
|
16
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attr_json-associations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: attr_json
|
@@ -126,6 +126,8 @@ files:
|
|
126
126
|
- attr_json-associations.gemspec
|
127
127
|
- gemfiles/rails60.gemfile
|
128
128
|
- gemfiles/rails61.gemfile
|
129
|
+
- gemfiles/rails70.gemfile
|
130
|
+
- gemfiles/rails71.gemfile
|
129
131
|
- lib/attr_json-associations.rb
|
130
132
|
- lib/attr_json/associations.rb
|
131
133
|
- lib/attr_json/associations/association/base.rb
|
@@ -146,7 +148,7 @@ files:
|
|
146
148
|
homepage: https://github.com/kanety/attr_json-associations
|
147
149
|
licenses: []
|
148
150
|
metadata: {}
|
149
|
-
post_install_message:
|
151
|
+
post_install_message:
|
150
152
|
rdoc_options: []
|
151
153
|
require_paths:
|
152
154
|
- lib
|
@@ -161,8 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
163
|
- !ruby/object:Gem::Version
|
162
164
|
version: '0'
|
163
165
|
requirements: []
|
164
|
-
rubygems_version: 3.
|
165
|
-
signing_key:
|
166
|
+
rubygems_version: 3.3.3
|
167
|
+
signing_key:
|
166
168
|
specification_version: 4
|
167
169
|
summary: An association extension for attr_json
|
168
170
|
test_files: []
|