arel_toolkit 0.4.7 → 0.4.9
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 +5 -3
- data/.ruby-version +1 -1
- data/.tool-versions +1 -1
- data/Appraisals +4 -14
- data/CHANGELOG.md +18 -1
- data/Dockerfile +11 -0
- data/Gemfile.lock +86 -97
- data/arel_toolkit.gemspec +3 -3
- data/docker-compose.yml +9 -1
- data/gemfiles/{active_record_6_1.gemfile → active_record_6_1_6_1.gemfile} +1 -1
- data/gemfiles/{active_record_6_1.gemfile.lock → active_record_6_1_6_1.gemfile.lock} +88 -103
- data/gemfiles/{active_record_6.gemfile → active_record_6_1_7.gemfile} +1 -1
- data/gemfiles/active_record_6_1_7.gemfile.lock +246 -0
- data/lib/arel/extensions/type_cast.rb +1 -1
- data/lib/arel/sql_to_arel/pg_query_visitor/frame_options.rb +2 -2
- data/lib/arel/sql_to_arel/result.rb +1 -1
- data/lib/arel_toolkit/version.rb +1 -1
- data/lib/arel_toolkit.rb +0 -3
- metadata +19 -23
- data/gemfiles/.bundle/config +0 -2
- data/gemfiles/active_record_6.gemfile.lock +0 -212
- data/gemfiles/arel_gems.gemfile +0 -10
- data/gemfiles/arel_gems.gemfile.lock +0 -286
- data/gemfiles/default.gemfile +0 -5
- data/gemfiles/default.gemfile.lock +0 -210
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97828b86c1027bf95fee279ff30c35214f1a47ab8c639eb526b6b0579a0a9dc2
|
4
|
+
data.tar.gz: e6601ebbdea1f1955c331dfa2710fb2a51015d8916087d7e9a16a9d47b28273d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f212f8517c90f77468d7174941bd07e95f3aaf7bde94c49b989f3b7eae4bc219e0cdb055a671f372e117fbc81777afa689b0d4b475534eee8ce1419dc3a55915
|
7
|
+
data.tar.gz: 36c14eacf1590325ddebdc298235c1964bd74553a9e80ef69b227baa077b4b5617293da5cb59d696526377f3d30baa81f41770b00f284ec2046949f601b5fed8
|
data/.github/workflows/test.yml
CHANGED
@@ -8,7 +8,7 @@ on:
|
|
8
8
|
jobs:
|
9
9
|
rspec:
|
10
10
|
name: RSpec
|
11
|
-
runs-on: ubuntu-
|
11
|
+
runs-on: ubuntu-20.04
|
12
12
|
services:
|
13
13
|
postgres:
|
14
14
|
options: >-
|
@@ -16,12 +16,13 @@ jobs:
|
|
16
16
|
--health-interval 10s
|
17
17
|
--health-timeout 5s
|
18
18
|
--health-retries 5
|
19
|
-
image: postgres:
|
19
|
+
image: postgres:13.4
|
20
20
|
ports:
|
21
21
|
- 5432:5432
|
22
22
|
env:
|
23
23
|
POSTGRES_DB: arel_toolkit_test
|
24
24
|
POSTGRES_USER: postgres
|
25
|
+
POSTGRES_HOST_AUTH_METHOD: trust
|
25
26
|
steps:
|
26
27
|
- uses: actions/checkout@v2
|
27
28
|
|
@@ -46,6 +47,7 @@ jobs:
|
|
46
47
|
- uses: ruby/setup-ruby@v1
|
47
48
|
with:
|
48
49
|
bundler-cache: true
|
50
|
+
bundler: default
|
49
51
|
- run: bundle exec appraisal install
|
50
52
|
- name: Compile extension
|
51
53
|
run: |
|
@@ -65,4 +67,4 @@ jobs:
|
|
65
67
|
- uses: actions/upload-artifact@v2
|
66
68
|
with:
|
67
69
|
name: rspec-coverage
|
68
|
-
path: ./coverage
|
70
|
+
path: ./coverage
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.7
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 2.7.
|
1
|
+
ruby 2.7.7
|
data/Appraisals
CHANGED
@@ -1,17 +1,7 @@
|
|
1
|
-
appraise '
|
2
|
-
gem '
|
3
|
-
gem 'active_record_upsert', github: 'Hacker0x01/active_record_upsert', branch: 'master'
|
4
|
-
gem 'pg_search', github: 'Hacker0x01/pg_search', branch: 'update-ranking'
|
5
|
-
gem 'rspec-rails', '~> 3.8.0'
|
1
|
+
appraise 'active_record_6_1_6_1' do
|
2
|
+
gem 'activerecord', '= 6.1.6.1'
|
6
3
|
end
|
7
4
|
|
8
|
-
appraise '
|
9
|
-
|
10
|
-
|
11
|
-
appraise 'active_record_6' do
|
12
|
-
gem 'activerecord', '~> 6.0.0'
|
13
|
-
end
|
14
|
-
|
15
|
-
appraise 'active_record_6_1' do
|
16
|
-
gem 'activerecord', '~> 6.1.0'
|
5
|
+
appraise 'active_record_6_1_7' do
|
6
|
+
gem 'activerecord', '= 6.1.7'
|
17
7
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.4.9](https://github.com/mvgijssel/arel_toolkit/tree/v0.4.9) (2023-01-16)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/mvgijssel/arel_toolkit/compare/v0.4.8...v0.4.9)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Update depenencies [\#202](https://github.com/mvgijssel/arel_toolkit/pull/202) ([Willianvdv](https://github.com/Willianvdv))
|
10
|
+
- Bump google-protobuf from 3.21.2 to 3.21.7 [\#199](https://github.com/mvgijssel/arel_toolkit/pull/199) ([dependabot[bot]](https://github.com/apps/dependabot))
|
11
|
+
|
12
|
+
## [v0.4.8](https://github.com/mvgijssel/arel_toolkit/tree/v0.4.8) (2022-07-20)
|
13
|
+
|
14
|
+
[Full Changelog](https://github.com/mvgijssel/arel_toolkit/compare/v0.4.7...v0.4.8)
|
15
|
+
|
16
|
+
**Fixed bugs:**
|
17
|
+
|
18
|
+
- Comparing a type case node against any other type of node [\#196](https://github.com/mvgijssel/arel_toolkit/pull/196) ([Willianvdv](https://github.com/Willianvdv))
|
19
|
+
|
3
20
|
## [v0.4.7](https://github.com/mvgijssel/arel_toolkit/tree/v0.4.7) (2022-02-01)
|
4
21
|
|
5
22
|
[Full Changelog](https://github.com/mvgijssel/arel_toolkit/compare/v0.4.6...v0.4.7)
|
@@ -179,4 +196,4 @@
|
|
179
196
|
|
180
197
|
|
181
198
|
|
182
|
-
\* *This Changelog was automatically generated
|
199
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/Dockerfile
ADDED
data/Gemfile.lock
CHANGED
@@ -1,89 +1,76 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
arel_toolkit (0.4.
|
5
|
-
activerecord (
|
6
|
-
pg (
|
7
|
-
pg_query (~> 2.
|
4
|
+
arel_toolkit (0.4.9)
|
5
|
+
activerecord (~> 6.1)
|
6
|
+
pg (>= 1.1.4)
|
7
|
+
pg_query (~> 2.2)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activemodel (6.1.
|
13
|
-
activesupport (= 6.1.
|
14
|
-
activerecord (6.1.
|
15
|
-
activemodel (= 6.1.
|
16
|
-
activesupport (= 6.1.
|
17
|
-
activesupport (6.1.
|
12
|
+
activemodel (6.1.7)
|
13
|
+
activesupport (= 6.1.7)
|
14
|
+
activerecord (6.1.7)
|
15
|
+
activemodel (= 6.1.7)
|
16
|
+
activesupport (= 6.1.7)
|
17
|
+
activesupport (6.1.7)
|
18
18
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
19
|
i18n (>= 1.6, < 2)
|
20
20
|
minitest (>= 5.1)
|
21
21
|
tzinfo (~> 2.0)
|
22
22
|
zeitwerk (~> 2.3)
|
23
|
-
addressable (2.8.
|
24
|
-
public_suffix (>= 2.0.2, <
|
23
|
+
addressable (2.8.1)
|
24
|
+
public_suffix (>= 2.0.2, < 6.0)
|
25
25
|
ansi (1.5.0)
|
26
26
|
appraisal (2.4.1)
|
27
27
|
bundler
|
28
28
|
rake
|
29
29
|
thor (>= 0.14.0)
|
30
|
-
approvals (0.0.
|
30
|
+
approvals (0.0.26)
|
31
|
+
json (~> 2.0)
|
31
32
|
nokogiri (~> 1.8)
|
32
33
|
thor (~> 1.0)
|
33
34
|
ast (2.4.2)
|
34
|
-
async (1.30.
|
35
|
+
async (1.30.3)
|
35
36
|
console (~> 1.10)
|
36
37
|
nio4r (~> 2.3)
|
37
38
|
timers (~> 4.1)
|
38
|
-
async-http (0.
|
39
|
+
async-http (0.59.4)
|
39
40
|
async (>= 1.25)
|
40
41
|
async-io (>= 1.28)
|
41
42
|
async-pool (>= 0.2)
|
42
|
-
protocol-http (~> 0.
|
43
|
+
protocol-http (~> 0.23.1)
|
43
44
|
protocol-http1 (~> 0.14.0)
|
44
45
|
protocol-http2 (~> 0.14.0)
|
46
|
+
traces (>= 0.8.0)
|
45
47
|
async-http-faraday (0.11.0)
|
46
48
|
async-http (~> 0.42)
|
47
49
|
faraday
|
48
|
-
async-io (1.
|
50
|
+
async-io (1.34.1)
|
49
51
|
async
|
50
|
-
async-pool (0.3.
|
52
|
+
async-pool (0.3.12)
|
51
53
|
async (>= 1.25)
|
52
54
|
binding_of_caller (1.0.0)
|
53
55
|
debug_inspector (>= 0.0.1)
|
54
56
|
coderay (1.1.3)
|
55
|
-
concurrent-ruby (1.1.
|
56
|
-
console (1.
|
57
|
+
concurrent-ruby (1.1.10)
|
58
|
+
console (1.16.2)
|
57
59
|
fiber-local
|
58
60
|
database_cleaner (1.7.0)
|
59
61
|
debug_inspector (1.1.0)
|
60
|
-
diff-lcs (1.
|
62
|
+
diff-lcs (1.5.0)
|
61
63
|
docile (1.4.0)
|
62
64
|
dpl (1.10.16)
|
63
|
-
faraday (
|
64
|
-
faraday-
|
65
|
-
faraday-em_synchrony (~> 1.0)
|
66
|
-
faraday-excon (~> 1.1)
|
67
|
-
faraday-httpclient (~> 1.0.1)
|
68
|
-
faraday-net_http (~> 1.0)
|
69
|
-
faraday-net_http_persistent (~> 1.1)
|
70
|
-
faraday-patron (~> 1.0)
|
71
|
-
faraday-rack (~> 1.0)
|
72
|
-
multipart-post (>= 1.2, < 3)
|
65
|
+
faraday (2.7.2)
|
66
|
+
faraday-net_http (>= 2.0, < 3.1)
|
73
67
|
ruby2_keywords (>= 0.0.4)
|
74
|
-
faraday-
|
75
|
-
faraday-em_synchrony (1.0.0)
|
76
|
-
faraday-excon (1.1.0)
|
77
|
-
faraday-http-cache (2.2.0)
|
68
|
+
faraday-http-cache (2.4.1)
|
78
69
|
faraday (>= 0.8)
|
79
|
-
faraday-
|
80
|
-
|
81
|
-
faraday-net_http_persistent (1.2.0)
|
82
|
-
faraday-patron (1.0.0)
|
83
|
-
faraday-rack (1.0.0)
|
84
|
-
ffi (1.15.4)
|
70
|
+
faraday-net_http (3.0.2)
|
71
|
+
ffi (1.15.5)
|
85
72
|
fiber-local (1.0.0)
|
86
|
-
formatador (
|
73
|
+
formatador (1.1.0)
|
87
74
|
github_changelog_generator (1.16.4)
|
88
75
|
activesupport
|
89
76
|
async (>= 1.25.0)
|
@@ -93,14 +80,14 @@ GEM
|
|
93
80
|
octokit (~> 4.6)
|
94
81
|
rainbow (>= 2.2.1)
|
95
82
|
rake (>= 10.0)
|
96
|
-
google-protobuf (3.
|
97
|
-
guard (2.
|
83
|
+
google-protobuf (3.21.12)
|
84
|
+
guard (2.18.0)
|
98
85
|
formatador (>= 0.2.4)
|
99
86
|
listen (>= 2.7, < 4.0)
|
100
87
|
lumberjack (>= 1.0.12, < 2.0)
|
101
88
|
nenv (~> 0.1)
|
102
89
|
notiffany (~> 0.0)
|
103
|
-
pry (>= 0.
|
90
|
+
pry (>= 0.13.0)
|
104
91
|
shellany (~> 0.0)
|
105
92
|
thor (>= 0.18.1)
|
106
93
|
guard-compat (1.2.1)
|
@@ -115,84 +102,83 @@ GEM
|
|
115
102
|
guard (~> 2.0)
|
116
103
|
rubocop (~> 0.20)
|
117
104
|
hirb (0.7.3)
|
118
|
-
i18n (1.
|
105
|
+
i18n (1.12.0)
|
119
106
|
concurrent-ruby (~> 1.0)
|
120
107
|
interception (0.5)
|
121
108
|
jaro_winkler (1.5.4)
|
122
|
-
json (2.
|
123
|
-
listen (3.
|
109
|
+
json (2.6.3)
|
110
|
+
listen (3.8.0)
|
124
111
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
125
112
|
rb-inotify (~> 0.9, >= 0.9.10)
|
126
113
|
lumberjack (1.2.8)
|
127
114
|
memory_profiler (0.9.14)
|
128
|
-
method_source (0.
|
129
|
-
mini_portile2 (2.
|
130
|
-
minitest (5.
|
115
|
+
method_source (1.0.0)
|
116
|
+
mini_portile2 (2.8.1)
|
117
|
+
minitest (5.17.0)
|
131
118
|
multi_json (1.15.0)
|
132
|
-
multipart-post (2.1.1)
|
133
119
|
nenv (0.3.0)
|
134
120
|
nio4r (2.5.8)
|
135
|
-
nokogiri (1.
|
136
|
-
mini_portile2 (~> 2.
|
121
|
+
nokogiri (1.13.10)
|
122
|
+
mini_portile2 (~> 2.8.0)
|
137
123
|
racc (~> 1.4)
|
138
124
|
notiffany (0.1.3)
|
139
125
|
nenv (~> 0.1)
|
140
126
|
shellany (~> 0.0)
|
141
|
-
octokit (4.
|
142
|
-
faraday (>=
|
143
|
-
sawyer (~> 0.
|
144
|
-
parallel (1.
|
145
|
-
parser (3.
|
127
|
+
octokit (4.25.1)
|
128
|
+
faraday (>= 1, < 3)
|
129
|
+
sawyer (~> 0.9)
|
130
|
+
parallel (1.22.1)
|
131
|
+
parser (3.2.0.0)
|
146
132
|
ast (~> 2.4.1)
|
147
|
-
pg (1.
|
148
|
-
pg_query (2.
|
133
|
+
pg (1.4.5)
|
134
|
+
pg_query (2.2.0)
|
149
135
|
google-protobuf (>= 3.19.2)
|
150
136
|
protocol-hpack (1.4.2)
|
151
|
-
protocol-http (0.
|
152
|
-
protocol-http1 (0.14.
|
137
|
+
protocol-http (0.23.12)
|
138
|
+
protocol-http1 (0.14.6)
|
153
139
|
protocol-http (~> 0.22)
|
154
140
|
protocol-http2 (0.14.2)
|
155
141
|
protocol-hpack (~> 1.4)
|
156
142
|
protocol-http (~> 0.18)
|
157
|
-
pry (0.
|
158
|
-
coderay (~> 1.1
|
159
|
-
method_source (~>
|
143
|
+
pry (0.14.2)
|
144
|
+
coderay (~> 1.1)
|
145
|
+
method_source (~> 1.0)
|
160
146
|
pry-alias (0.0.1)
|
161
147
|
binding_of_caller
|
162
148
|
pry
|
163
|
-
pry-doc (1.
|
149
|
+
pry-doc (1.4.0)
|
164
150
|
pry (~> 0.11)
|
165
151
|
yard (~> 0.9.11)
|
166
|
-
pry-nav (0.
|
167
|
-
pry (>= 0.9.10, < 0.
|
152
|
+
pry-nav (1.0.0)
|
153
|
+
pry (>= 0.9.10, < 0.15)
|
168
154
|
pry-rescue (1.5.2)
|
169
155
|
interception (>= 0.5)
|
170
156
|
pry (>= 0.12.0)
|
171
|
-
pry-stack_explorer (0.
|
172
|
-
binding_of_caller (
|
173
|
-
pry (
|
174
|
-
public_suffix (
|
175
|
-
racc (1.
|
176
|
-
rainbow (3.
|
157
|
+
pry-stack_explorer (0.6.1)
|
158
|
+
binding_of_caller (~> 1.0)
|
159
|
+
pry (~> 0.13)
|
160
|
+
public_suffix (5.0.1)
|
161
|
+
racc (1.6.2)
|
162
|
+
rainbow (3.1.1)
|
177
163
|
rake (13.0.6)
|
178
|
-
rake-compiler (1.
|
164
|
+
rake-compiler (1.2.1)
|
179
165
|
rake
|
180
|
-
rb-fsevent (0.11.
|
166
|
+
rb-fsevent (0.11.2)
|
181
167
|
rb-inotify (0.10.1)
|
182
168
|
ffi (~> 1.0)
|
183
|
-
rspec (3.
|
184
|
-
rspec-core (~> 3.
|
185
|
-
rspec-expectations (~> 3.
|
186
|
-
rspec-mocks (~> 3.
|
187
|
-
rspec-core (3.
|
188
|
-
rspec-support (~> 3.
|
189
|
-
rspec-expectations (3.
|
169
|
+
rspec (3.12.0)
|
170
|
+
rspec-core (~> 3.12.0)
|
171
|
+
rspec-expectations (~> 3.12.0)
|
172
|
+
rspec-mocks (~> 3.12.0)
|
173
|
+
rspec-core (3.12.0)
|
174
|
+
rspec-support (~> 3.12.0)
|
175
|
+
rspec-expectations (3.12.2)
|
190
176
|
diff-lcs (>= 1.2.0, < 2.0)
|
191
|
-
rspec-support (~> 3.
|
192
|
-
rspec-mocks (3.
|
177
|
+
rspec-support (~> 3.12.0)
|
178
|
+
rspec-mocks (3.12.2)
|
193
179
|
diff-lcs (>= 1.2.0, < 2.0)
|
194
|
-
rspec-support (~> 3.
|
195
|
-
rspec-support (3.
|
180
|
+
rspec-support (~> 3.12.0)
|
181
|
+
rspec-support (3.12.0)
|
196
182
|
rubocop (0.71.0)
|
197
183
|
jaro_winkler (~> 1.5.1)
|
198
184
|
parallel (~> 1.10)
|
@@ -202,9 +188,9 @@ GEM
|
|
202
188
|
unicode-display_width (>= 1.4.0, < 1.7)
|
203
189
|
ruby-progressbar (1.11.0)
|
204
190
|
ruby2_keywords (0.0.5)
|
205
|
-
sawyer (0.
|
191
|
+
sawyer (0.9.2)
|
206
192
|
addressable (>= 2.3.5)
|
207
|
-
faraday (
|
193
|
+
faraday (>= 0.17.3, < 3)
|
208
194
|
shellany (0.0.1)
|
209
195
|
simplecov (0.16.1)
|
210
196
|
docile (~> 1.1)
|
@@ -215,14 +201,17 @@ GEM
|
|
215
201
|
hirb
|
216
202
|
simplecov
|
217
203
|
simplecov-html (0.10.2)
|
218
|
-
stackprof (0.2.
|
219
|
-
thor (1.1
|
220
|
-
timers (4.3.
|
221
|
-
|
204
|
+
stackprof (0.2.23)
|
205
|
+
thor (1.2.1)
|
206
|
+
timers (4.3.5)
|
207
|
+
traces (0.8.0)
|
208
|
+
tzinfo (2.0.5)
|
222
209
|
concurrent-ruby (~> 1.0)
|
223
210
|
unicode-display_width (1.6.1)
|
224
|
-
|
225
|
-
|
211
|
+
webrick (1.7.0)
|
212
|
+
yard (0.9.28)
|
213
|
+
webrick (~> 1.7.0)
|
214
|
+
zeitwerk (2.6.6)
|
226
215
|
|
227
216
|
PLATFORMS
|
228
217
|
ruby
|
@@ -255,4 +244,4 @@ DEPENDENCIES
|
|
255
244
|
stackprof (~> 0.2)
|
256
245
|
|
257
246
|
BUNDLED WITH
|
258
|
-
2.
|
247
|
+
2.1.4
|
data/arel_toolkit.gemspec
CHANGED
@@ -25,9 +25,9 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.require_paths = ['lib']
|
26
26
|
spec.extensions = ['ext/pg_result_init/extconf.rb']
|
27
27
|
|
28
|
-
spec.add_dependency 'activerecord', '
|
29
|
-
spec.add_dependency 'pg', '
|
30
|
-
spec.add_dependency 'pg_query', '~> 2.
|
28
|
+
spec.add_dependency 'activerecord', '~> 6.1'
|
29
|
+
spec.add_dependency 'pg', '>= 1.1.4'
|
30
|
+
spec.add_dependency 'pg_query', '~> 2.2'
|
31
31
|
|
32
32
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
33
33
|
spec.add_development_dependency 'dpl', '~> 1.10.11'
|
data/docker-compose.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
version: '3.8'
|
2
2
|
services:
|
3
3
|
database:
|
4
|
-
image: postgres:
|
4
|
+
image: postgres:13.4
|
5
5
|
container_name: arel_toolkit_database
|
6
6
|
environment:
|
7
7
|
POSTGRES_PASSWORD: postgres
|
@@ -9,3 +9,11 @@ services:
|
|
9
9
|
POSTGRES_DB: arel_toolkit_test
|
10
10
|
ports:
|
11
11
|
- 5432:5432
|
12
|
+
arel_toolkit:
|
13
|
+
profiles:
|
14
|
+
- tests
|
15
|
+
build: .
|
16
|
+
environment:
|
17
|
+
- POSTGRES_HOST=database
|
18
|
+
volumes:
|
19
|
+
- ./:/app
|