arel_toolkit 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,89 +1,76 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- arel_toolkit (0.4.8)
5
- activerecord (>= 5.0.0)
6
- pg (~> 1.1.4)
7
- pg_query (~> 2.1)
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.4.1)
13
- activesupport (= 6.1.4.1)
14
- activerecord (6.1.4.1)
15
- activemodel (= 6.1.4.1)
16
- activesupport (= 6.1.4.1)
17
- activesupport (6.1.4.1)
12
+ activemodel (6.1.6.1)
13
+ activesupport (= 6.1.6.1)
14
+ activerecord (6.1.6.1)
15
+ activemodel (= 6.1.6.1)
16
+ activesupport (= 6.1.6.1)
17
+ activesupport (6.1.6.1)
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.0)
24
- public_suffix (>= 2.0.2, < 5.0)
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.25)
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.1)
35
+ async (1.30.3)
35
36
  console (~> 1.10)
36
37
  nio4r (~> 2.3)
37
38
  timers (~> 4.1)
38
- async-http (0.56.5)
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.22.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.32.2)
50
+ async-io (1.34.1)
49
51
  async
50
- async-pool (0.3.8)
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.9)
56
- console (1.13.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.4.4)
62
+ diff-lcs (1.5.0)
61
63
  docile (1.4.0)
62
64
  dpl (1.10.16)
63
- faraday (1.8.0)
64
- faraday-em_http (~> 1.0)
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-em_http (1.0.0)
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-httpclient (1.0.1)
80
- faraday-net_http (1.0.1)
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 (0.3.0)
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.21.2-x86_64-darwin)
97
- guard (2.17.0)
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.9.12)
90
+ pry (>= 0.13.0)
104
91
  shellany (~> 0.0)
105
92
  thor (>= 0.18.1)
106
93
  guard-compat (1.2.1)
@@ -115,86 +102,83 @@ GEM
115
102
  guard (~> 2.0)
116
103
  rubocop (~> 0.20)
117
104
  hirb (0.7.3)
118
- i18n (1.8.10)
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.5.1)
123
- listen (3.7.0)
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.9.2)
129
- mini_portile2 (2.6.1)
130
- minitest (5.14.4)
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.12.4)
136
- mini_portile2 (~> 2.6.1)
137
- racc (~> 1.4)
138
- nokogiri (1.12.4-x86_64-darwin)
121
+ nokogiri (1.14.0)
122
+ mini_portile2 (~> 2.8.0)
139
123
  racc (~> 1.4)
140
124
  notiffany (0.1.3)
141
125
  nenv (~> 0.1)
142
126
  shellany (~> 0.0)
143
- octokit (4.21.0)
144
- faraday (>= 0.9)
145
- sawyer (~> 0.8.0, >= 0.5.3)
146
- parallel (1.21.0)
147
- parser (3.0.2.0)
127
+ octokit (4.25.1)
128
+ faraday (>= 1, < 3)
129
+ sawyer (~> 0.9)
130
+ parallel (1.22.1)
131
+ parser (3.2.0.0)
148
132
  ast (~> 2.4.1)
149
- pg (1.1.4)
150
- pg_query (2.1.3)
133
+ pg (1.4.5)
134
+ pg_query (2.2.0)
151
135
  google-protobuf (>= 3.19.2)
152
136
  protocol-hpack (1.4.2)
153
- protocol-http (0.22.5)
154
- protocol-http1 (0.14.2)
137
+ protocol-http (0.23.12)
138
+ protocol-http1 (0.14.6)
155
139
  protocol-http (~> 0.22)
156
140
  protocol-http2 (0.14.2)
157
141
  protocol-hpack (~> 1.4)
158
142
  protocol-http (~> 0.18)
159
- pry (0.12.2)
160
- coderay (~> 1.1.0)
161
- method_source (~> 0.9.0)
143
+ pry (0.14.2)
144
+ coderay (~> 1.1)
145
+ method_source (~> 1.0)
162
146
  pry-alias (0.0.1)
163
147
  binding_of_caller
164
148
  pry
165
- pry-doc (1.2.0)
149
+ pry-doc (1.4.0)
166
150
  pry (~> 0.11)
167
151
  yard (~> 0.9.11)
168
- pry-nav (0.3.0)
169
- pry (>= 0.9.10, < 0.13.0)
152
+ pry-nav (1.0.0)
153
+ pry (>= 0.9.10, < 0.15)
170
154
  pry-rescue (1.5.2)
171
155
  interception (>= 0.5)
172
156
  pry (>= 0.12.0)
173
- pry-stack_explorer (0.4.9.3)
174
- binding_of_caller (>= 0.7)
175
- pry (>= 0.9.11)
176
- public_suffix (4.0.6)
177
- racc (1.5.2)
178
- rainbow (3.0.0)
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)
179
163
  rake (13.0.6)
180
- rake-compiler (1.1.1)
164
+ rake-compiler (1.2.1)
181
165
  rake
182
- rb-fsevent (0.11.0)
166
+ rb-fsevent (0.11.2)
183
167
  rb-inotify (0.10.1)
184
168
  ffi (~> 1.0)
185
- rspec (3.10.0)
186
- rspec-core (~> 3.10.0)
187
- rspec-expectations (~> 3.10.0)
188
- rspec-mocks (~> 3.10.0)
189
- rspec-core (3.10.1)
190
- rspec-support (~> 3.10.0)
191
- rspec-expectations (3.10.1)
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)
192
176
  diff-lcs (>= 1.2.0, < 2.0)
193
- rspec-support (~> 3.10.0)
194
- rspec-mocks (3.10.2)
177
+ rspec-support (~> 3.12.0)
178
+ rspec-mocks (3.12.2)
195
179
  diff-lcs (>= 1.2.0, < 2.0)
196
- rspec-support (~> 3.10.0)
197
- rspec-support (3.10.2)
180
+ rspec-support (~> 3.12.0)
181
+ rspec-support (3.12.0)
198
182
  rubocop (0.71.0)
199
183
  jaro_winkler (~> 1.5.1)
200
184
  parallel (~> 1.10)
@@ -204,9 +188,9 @@ GEM
204
188
  unicode-display_width (>= 1.4.0, < 1.7)
205
189
  ruby-progressbar (1.11.0)
206
190
  ruby2_keywords (0.0.5)
207
- sawyer (0.8.2)
191
+ sawyer (0.9.2)
208
192
  addressable (>= 2.3.5)
209
- faraday (> 0.8, < 2.0)
193
+ faraday (>= 0.17.3, < 3)
210
194
  shellany (0.0.1)
211
195
  simplecov (0.16.1)
212
196
  docile (~> 1.1)
@@ -217,22 +201,23 @@ GEM
217
201
  hirb
218
202
  simplecov
219
203
  simplecov-html (0.10.2)
220
- stackprof (0.2.17)
221
- thor (1.1.0)
222
- timers (4.3.3)
223
- tzinfo (2.0.4)
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)
224
209
  concurrent-ruby (~> 1.0)
225
210
  unicode-display_width (1.6.1)
226
- yard (0.9.26)
227
- zeitwerk (2.4.2)
211
+ webrick (1.7.0)
212
+ yard (0.9.28)
213
+ webrick (~> 1.7.0)
214
+ zeitwerk (2.6.6)
228
215
 
229
216
  PLATFORMS
230
- aarch64-linux
231
- x86_64-darwin-20
232
- x86_64-darwin-21
217
+ ruby
233
218
 
234
219
  DEPENDENCIES
235
- activerecord (~> 6.1.0)
220
+ activerecord (= 6.1.6.1)
236
221
  appraisal (~> 2.4.1)
237
222
  approvals (~> 0.0.24)
238
223
  arel_toolkit!
@@ -260,4 +245,4 @@ DEPENDENCIES
260
245
  stackprof (~> 0.2)
261
246
 
262
247
  BUNDLED WITH
263
- 2.3.6
248
+ 2.1.4
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 6.0.0"
5
+ gem "activerecord", "= 6.1.7"
6
6
 
7
7
  gemspec path: "../"
@@ -0,0 +1,246 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ arel_toolkit (0.4.9)
5
+ activerecord (~> 6.1)
6
+ pg (>= 1.1.4)
7
+ pg_query (~> 2.2)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
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
+ concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ i18n (>= 1.6, < 2)
20
+ minitest (>= 5.1)
21
+ tzinfo (~> 2.0)
22
+ zeitwerk (~> 2.3)
23
+ addressable (2.8.1)
24
+ public_suffix (>= 2.0.2, < 6.0)
25
+ ansi (1.5.0)
26
+ appraisal (2.4.1)
27
+ bundler
28
+ rake
29
+ thor (>= 0.14.0)
30
+ approvals (0.0.26)
31
+ json (~> 2.0)
32
+ nokogiri (~> 1.8)
33
+ thor (~> 1.0)
34
+ ast (2.4.2)
35
+ async (1.30.3)
36
+ console (~> 1.10)
37
+ nio4r (~> 2.3)
38
+ timers (~> 4.1)
39
+ async-http (0.59.4)
40
+ async (>= 1.25)
41
+ async-io (>= 1.28)
42
+ async-pool (>= 0.2)
43
+ protocol-http (~> 0.23.1)
44
+ protocol-http1 (~> 0.14.0)
45
+ protocol-http2 (~> 0.14.0)
46
+ traces (>= 0.8.0)
47
+ async-http-faraday (0.11.0)
48
+ async-http (~> 0.42)
49
+ faraday
50
+ async-io (1.34.1)
51
+ async
52
+ async-pool (0.3.12)
53
+ async (>= 1.25)
54
+ binding_of_caller (1.0.0)
55
+ debug_inspector (>= 0.0.1)
56
+ coderay (1.1.3)
57
+ concurrent-ruby (1.1.10)
58
+ console (1.16.2)
59
+ fiber-local
60
+ database_cleaner (1.7.0)
61
+ debug_inspector (1.1.0)
62
+ diff-lcs (1.5.0)
63
+ docile (1.4.0)
64
+ dpl (1.10.16)
65
+ faraday (2.7.2)
66
+ faraday-net_http (>= 2.0, < 3.1)
67
+ ruby2_keywords (>= 0.0.4)
68
+ faraday-http-cache (2.4.1)
69
+ faraday (>= 0.8)
70
+ faraday-net_http (3.0.2)
71
+ ffi (1.15.5)
72
+ fiber-local (1.0.0)
73
+ formatador (1.1.0)
74
+ github_changelog_generator (1.16.4)
75
+ activesupport
76
+ async (>= 1.25.0)
77
+ async-http-faraday
78
+ faraday-http-cache
79
+ multi_json
80
+ octokit (~> 4.6)
81
+ rainbow (>= 2.2.1)
82
+ rake (>= 10.0)
83
+ google-protobuf (3.21.12)
84
+ guard (2.18.0)
85
+ formatador (>= 0.2.4)
86
+ listen (>= 2.7, < 4.0)
87
+ lumberjack (>= 1.0.12, < 2.0)
88
+ nenv (~> 0.1)
89
+ notiffany (~> 0.0)
90
+ pry (>= 0.13.0)
91
+ shellany (~> 0.0)
92
+ thor (>= 0.18.1)
93
+ guard-compat (1.2.1)
94
+ guard-rake (1.0.0)
95
+ guard
96
+ rake
97
+ guard-rspec (4.7.3)
98
+ guard (~> 2.1)
99
+ guard-compat (~> 1.1)
100
+ rspec (>= 2.99.0, < 4.0)
101
+ guard-rubocop (1.3.0)
102
+ guard (~> 2.0)
103
+ rubocop (~> 0.20)
104
+ hirb (0.7.3)
105
+ i18n (1.12.0)
106
+ concurrent-ruby (~> 1.0)
107
+ interception (0.5)
108
+ jaro_winkler (1.5.4)
109
+ json (2.6.3)
110
+ listen (3.8.0)
111
+ rb-fsevent (~> 0.10, >= 0.10.3)
112
+ rb-inotify (~> 0.9, >= 0.9.10)
113
+ lumberjack (1.2.8)
114
+ memory_profiler (0.9.14)
115
+ method_source (1.0.0)
116
+ minitest (5.17.0)
117
+ multi_json (1.15.0)
118
+ nenv (0.3.0)
119
+ nio4r (2.5.8)
120
+ nokogiri (1.14.0-aarch64-linux)
121
+ racc (~> 1.4)
122
+ notiffany (0.1.3)
123
+ nenv (~> 0.1)
124
+ shellany (~> 0.0)
125
+ octokit (4.25.1)
126
+ faraday (>= 1, < 3)
127
+ sawyer (~> 0.9)
128
+ parallel (1.22.1)
129
+ parser (3.2.0.0)
130
+ ast (~> 2.4.1)
131
+ pg (1.4.5)
132
+ pg_query (2.2.0)
133
+ google-protobuf (>= 3.19.2)
134
+ protocol-hpack (1.4.2)
135
+ protocol-http (0.23.12)
136
+ protocol-http1 (0.14.6)
137
+ protocol-http (~> 0.22)
138
+ protocol-http2 (0.14.2)
139
+ protocol-hpack (~> 1.4)
140
+ protocol-http (~> 0.18)
141
+ pry (0.14.2)
142
+ coderay (~> 1.1)
143
+ method_source (~> 1.0)
144
+ pry-alias (0.0.1)
145
+ binding_of_caller
146
+ pry
147
+ pry-doc (1.4.0)
148
+ pry (~> 0.11)
149
+ yard (~> 0.9.11)
150
+ pry-nav (1.0.0)
151
+ pry (>= 0.9.10, < 0.15)
152
+ pry-rescue (1.5.2)
153
+ interception (>= 0.5)
154
+ pry (>= 0.12.0)
155
+ pry-stack_explorer (0.6.1)
156
+ binding_of_caller (~> 1.0)
157
+ pry (~> 0.13)
158
+ public_suffix (5.0.1)
159
+ racc (1.6.2)
160
+ rainbow (3.1.1)
161
+ rake (13.0.6)
162
+ rake-compiler (1.2.1)
163
+ rake
164
+ rb-fsevent (0.11.2)
165
+ rb-inotify (0.10.1)
166
+ ffi (~> 1.0)
167
+ rspec (3.12.0)
168
+ rspec-core (~> 3.12.0)
169
+ rspec-expectations (~> 3.12.0)
170
+ rspec-mocks (~> 3.12.0)
171
+ rspec-core (3.12.0)
172
+ rspec-support (~> 3.12.0)
173
+ rspec-expectations (3.12.2)
174
+ diff-lcs (>= 1.2.0, < 2.0)
175
+ rspec-support (~> 3.12.0)
176
+ rspec-mocks (3.12.2)
177
+ diff-lcs (>= 1.2.0, < 2.0)
178
+ rspec-support (~> 3.12.0)
179
+ rspec-support (3.12.0)
180
+ rubocop (0.71.0)
181
+ jaro_winkler (~> 1.5.1)
182
+ parallel (~> 1.10)
183
+ parser (>= 2.6)
184
+ rainbow (>= 2.2.2, < 4.0)
185
+ ruby-progressbar (~> 1.7)
186
+ unicode-display_width (>= 1.4.0, < 1.7)
187
+ ruby-progressbar (1.11.0)
188
+ ruby2_keywords (0.0.5)
189
+ sawyer (0.9.2)
190
+ addressable (>= 2.3.5)
191
+ faraday (>= 0.17.3, < 3)
192
+ shellany (0.0.1)
193
+ simplecov (0.16.1)
194
+ docile (~> 1.1)
195
+ json (>= 1.8, < 3)
196
+ simplecov-html (~> 0.10.0)
197
+ simplecov-console (0.4.2)
198
+ ansi
199
+ hirb
200
+ simplecov
201
+ simplecov-html (0.10.2)
202
+ stackprof (0.2.23)
203
+ thor (1.2.1)
204
+ timers (4.3.5)
205
+ traces (0.8.0)
206
+ tzinfo (2.0.5)
207
+ concurrent-ruby (~> 1.0)
208
+ unicode-display_width (1.6.1)
209
+ webrick (1.7.0)
210
+ yard (0.9.28)
211
+ webrick (~> 1.7.0)
212
+ zeitwerk (2.6.6)
213
+
214
+ PLATFORMS
215
+ ruby
216
+
217
+ DEPENDENCIES
218
+ activerecord (= 6.1.7)
219
+ appraisal (~> 2.4.1)
220
+ approvals (~> 0.0.24)
221
+ arel_toolkit!
222
+ bundler (~> 2.0)
223
+ database_cleaner (~> 1.7.0)
224
+ dpl (~> 1.10.11)
225
+ github_changelog_generator (~> 1.15)
226
+ guard (~> 2.15)
227
+ guard-rake (~> 1.0.0)
228
+ guard-rspec (~> 4.7)
229
+ guard-rubocop (~> 1.3.0)
230
+ memory_profiler (~> 0.9)
231
+ pry
232
+ pry-alias
233
+ pry-doc
234
+ pry-nav
235
+ pry-rescue
236
+ pry-stack_explorer
237
+ rake (~> 13.0)
238
+ rake-compiler (~> 1.0)
239
+ rspec (~> 3.8)
240
+ rubocop (= 0.71.0)
241
+ simplecov (~> 0.16.1)
242
+ simplecov-console (~> 0.4.2)
243
+ stackprof (~> 0.2)
244
+
245
+ BUNDLED WITH
246
+ 2.1.4
@@ -84,10 +84,10 @@ module Arel
84
84
  case PG.library_version.to_s[0, 2]
85
85
  when '09', '10'
86
86
  FRAMEOPTIONS_V10
87
- when '11', '12', '13', '14'
87
+ when '11', '12', '13', '14', '15'
88
88
  FRAMEOPTIONS_V11_AND_UP
89
89
  else
90
- boom "Version #{PG.library_version.to_s[0, 2]} not supported"
90
+ raise "Version #{PG.library_version.to_s[0, 2]} not supported"
91
91
  end
92
92
  end
93
93
 
@@ -13,7 +13,7 @@ module Arel
13
13
  each do |item|
14
14
  sql, binds = item.to_sql_and_binds(engine)
15
15
  sql_collection << sql
16
- binds_collection.concat(binds)
16
+ binds_collection.concat(binds) unless binds.nil?
17
17
  end
18
18
 
19
19
  [
@@ -1,3 +1,3 @@
1
1
  module ArelToolkit
2
- VERSION = '0.4.8'.freeze
2
+ VERSION = '0.4.9'.freeze
3
3
  end
data/lib/arel_toolkit.rb CHANGED
@@ -1,7 +1,4 @@
1
1
  # Make sure the gems are loaded before ArelToolkit
2
- require 'postgres_ext' if Gem.loaded_specs.key?('postgres_ext')
3
- require 'active_record_upsert' if Gem.loaded_specs.key?('active_record_upsert')
4
- require 'pg_search' if Gem.loaded_specs.key?('pg_search')
5
2
  require 'rails/railtie' if Gem.loaded_specs.key?('railties')
6
3
  require 'arel'
7
4
  require 'active_record'