ar_serializer 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +4 -3
- data/.gitignore +2 -0
- data/Gemfile +1 -0
- data/ar_serializer.gemspec +1 -1
- data/bin/console +2 -2
- data/gemfiles/Gemfile-rails-6 +2 -1
- data/gemfiles/{Gemfile-rails-7 → Gemfile-rails-7-0} +1 -0
- data/gemfiles/Gemfile-rails-7-1 +9 -0
- data/lib/ar_serializer/graphql/types.rb +1 -1
- data/lib/ar_serializer/version.rb +1 -1
- metadata +5 -19
- data/Gemfile.lock +0 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee32f3c64753466283134306f9c8bcae7435cd8cfb337591455de2455de5fc15
|
4
|
+
data.tar.gz: eab2dc2c198ef804b6d0f1070057131480dae5fcae0f394d2a4aee065b647e0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d1aef11e66bca294d04217f7046d902063ba382e0ccbd4c11c0e843ad527929941f22b874753fefc24c550efbc28a3226939c61dc82fe81ed7e0352963f0e7e
|
7
|
+
data.tar.gz: 6f62a16b9bf8f971f9379c0860772e921844e8123506cbbb89e92f759d8f97f1b686ac803cfd1092bce8078be656d96ff2ceaa66377cc080685fdcf19b072a7d
|
data/.github/workflows/test.yml
CHANGED
@@ -5,13 +5,14 @@ jobs:
|
|
5
5
|
strategy:
|
6
6
|
fail-fast: false
|
7
7
|
matrix:
|
8
|
-
ruby: [ '
|
8
|
+
ruby: [ '3.1', '3.2', '3.3' ]
|
9
9
|
gemfiles:
|
10
10
|
- gemfiles/Gemfile-rails-6
|
11
|
-
- gemfiles/Gemfile-rails-7
|
11
|
+
- gemfiles/Gemfile-rails-7-0
|
12
|
+
- gemfiles/Gemfile-rails-7-1
|
12
13
|
runs-on: ubuntu-latest
|
13
14
|
steps:
|
14
|
-
- uses: actions/checkout@
|
15
|
+
- uses: actions/checkout@v4
|
15
16
|
- uses: ruby/setup-ruby@v1
|
16
17
|
with:
|
17
18
|
ruby-version: ${{ matrix.ruby }}
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/ar_serializer.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_dependency 'activerecord'
|
25
25
|
spec.add_dependency 'top_n_loader'
|
26
|
-
%w[rake
|
26
|
+
%w[rake sqlite3 minitest simplecov].each do |gem_name|
|
27
27
|
spec.add_development_dependency gem_name
|
28
28
|
end
|
29
29
|
end
|
data/bin/console
CHANGED
data/gemfiles/Gemfile-rails-6
CHANGED
@@ -164,7 +164,7 @@ module ArSerializer::GraphQL
|
|
164
164
|
if type.size == 1
|
165
165
|
ListTypeClass.new type.first, only, except
|
166
166
|
elsif type.size == 2 && type.last.nil?
|
167
|
-
OptionalTypeClass.new type
|
167
|
+
OptionalTypeClass.new type, only, except
|
168
168
|
else
|
169
169
|
OrTypeClass.new type, only, except
|
170
170
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ar_serializer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tompng
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: pry
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: sqlite3
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,7 +105,6 @@ files:
|
|
119
105
|
- ".gitignore"
|
120
106
|
- ".travis.yml"
|
121
107
|
- Gemfile
|
122
|
-
- Gemfile.lock
|
123
108
|
- LICENSE.txt
|
124
109
|
- README.md
|
125
110
|
- Rakefile
|
@@ -127,7 +112,8 @@ files:
|
|
127
112
|
- bin/console
|
128
113
|
- bin/setup
|
129
114
|
- gemfiles/Gemfile-rails-6
|
130
|
-
- gemfiles/Gemfile-rails-7
|
115
|
+
- gemfiles/Gemfile-rails-7-0
|
116
|
+
- gemfiles/Gemfile-rails-7-1
|
131
117
|
- lib/ar_serializer.rb
|
132
118
|
- lib/ar_serializer/error.rb
|
133
119
|
- lib/ar_serializer/field.rb
|
@@ -156,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
142
|
- !ruby/object:Gem::Version
|
157
143
|
version: '0'
|
158
144
|
requirements: []
|
159
|
-
rubygems_version: 3.
|
145
|
+
rubygems_version: 3.5.9
|
160
146
|
signing_key:
|
161
147
|
specification_version: 4
|
162
148
|
summary: ActiveRecord serializer, avoid N+1
|
data/Gemfile.lock
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
ar_serializer (1.2.0)
|
5
|
-
activerecord
|
6
|
-
top_n_loader
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
activemodel (7.0.2.3)
|
12
|
-
activesupport (= 7.0.2.3)
|
13
|
-
activerecord (7.0.2.3)
|
14
|
-
activemodel (= 7.0.2.3)
|
15
|
-
activesupport (= 7.0.2.3)
|
16
|
-
activesupport (7.0.2.3)
|
17
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
-
i18n (>= 1.6, < 2)
|
19
|
-
minitest (>= 5.1)
|
20
|
-
tzinfo (~> 2.0)
|
21
|
-
coderay (1.1.3)
|
22
|
-
concurrent-ruby (1.1.10)
|
23
|
-
docile (1.4.0)
|
24
|
-
i18n (1.10.0)
|
25
|
-
concurrent-ruby (~> 1.0)
|
26
|
-
method_source (1.0.0)
|
27
|
-
minitest (5.15.0)
|
28
|
-
pry (0.14.1)
|
29
|
-
coderay (~> 1.1)
|
30
|
-
method_source (~> 1.0)
|
31
|
-
rake (13.0.6)
|
32
|
-
simplecov (0.21.2)
|
33
|
-
docile (~> 1.1)
|
34
|
-
simplecov-html (~> 0.11)
|
35
|
-
simplecov_json_formatter (~> 0.1)
|
36
|
-
simplecov-html (0.12.3)
|
37
|
-
simplecov_json_formatter (0.1.4)
|
38
|
-
sqlite3 (1.4.2)
|
39
|
-
top_n_loader (1.0.2)
|
40
|
-
activerecord
|
41
|
-
tzinfo (2.0.4)
|
42
|
-
concurrent-ruby (~> 1.0)
|
43
|
-
|
44
|
-
PLATFORMS
|
45
|
-
ruby
|
46
|
-
|
47
|
-
DEPENDENCIES
|
48
|
-
ar_serializer!
|
49
|
-
minitest
|
50
|
-
pry
|
51
|
-
rake
|
52
|
-
simplecov
|
53
|
-
sqlite3
|
54
|
-
|
55
|
-
BUNDLED WITH
|
56
|
-
2.3.3
|