inquery 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/doc/Inquery.html +1 -1
- data/doc/Inquery/Exceptions.html +1 -1
- data/doc/Inquery/Exceptions/Base.html +1 -1
- data/doc/Inquery/Exceptions/InvalidRelation.html +1 -1
- data/doc/Inquery/Exceptions/UnknownCallSignature.html +1 -1
- data/doc/Inquery/Mixins.html +1 -1
- data/doc/Inquery/Mixins/RawSqlUtils.html +1 -1
- data/doc/Inquery/Mixins/RelationValidation.html +12 -12
- data/doc/Inquery/Mixins/RelationValidation/ClassMethods.html +6 -6
- data/doc/Inquery/Mixins/SchemaValidation.html +1 -1
- data/doc/Inquery/Mixins/SchemaValidation/ClassMethods.html +11 -3
- data/doc/Inquery/Query.html +1 -1
- data/doc/Inquery/Query/Chainable.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/inquery.gemspec +6 -6
- data/lib/inquery/mixins/relation_validation.rb +14 -5
- data/lib/inquery/mixins/schema_validation.rb +5 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 705cf4cd798bece378f6bb8f58f6fe8c4cc8e5175519bff8d292bcb1c718ffa9
|
4
|
+
data.tar.gz: 4aad1d32fc5725ad02d1361d351f225304115006fd974f98ea587f2e7e0dcfa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54ca20f922c48be73d09f88519323a9133837fb621721b3fc7ad4ba68e612df6f1aabcd2343322440d0a6102691bdd29de704b440007168ff068547f20021c5f
|
7
|
+
data.tar.gz: 46ddba74947a1c088216e3467a20c0ddf4716e471f4b6f3fab1a96e8b0d5e624bc935bfd4cfbbfc44ac6515dac0380aebfcfae80fff77ae2b7ec70fd83599611
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ task :gemspec do
|
|
21
21
|
spec.add_dependency 'minitest'
|
22
22
|
spec.add_dependency 'activesupport'
|
23
23
|
spec.add_dependency 'activerecord'
|
24
|
-
spec.add_dependency 'schemacop', '
|
24
|
+
spec.add_dependency 'schemacop', '>= 2.0'
|
25
25
|
end
|
26
26
|
|
27
27
|
File.open('inquery.gemspec', 'w') { |f| f.write(gemspec.to_ruby.strip) }
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/doc/Inquery.html
CHANGED
@@ -109,7 +109,7 @@
|
|
109
109
|
</div>
|
110
110
|
|
111
111
|
<div id="footer">
|
112
|
-
Generated on Tue
|
112
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
113
113
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
114
114
|
0.9.25 (ruby-2.6.2).
|
115
115
|
</div>
|
data/doc/Inquery/Exceptions.html
CHANGED
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on Tue
|
108
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.9.25 (ruby-2.6.2).
|
111
111
|
</div>
|
@@ -118,7 +118,7 @@
|
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div id="footer">
|
121
|
-
Generated on Tue
|
121
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
123
123
|
0.9.25 (ruby-2.6.2).
|
124
124
|
</div>
|
@@ -122,7 +122,7 @@
|
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div id="footer">
|
125
|
-
Generated on Tue
|
125
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
127
|
0.9.25 (ruby-2.6.2).
|
128
128
|
</div>
|
@@ -122,7 +122,7 @@
|
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div id="footer">
|
125
|
-
Generated on Tue
|
125
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
127
|
0.9.25 (ruby-2.6.2).
|
128
128
|
</div>
|
data/doc/Inquery/Mixins.html
CHANGED
@@ -107,7 +107,7 @@
|
|
107
107
|
</div>
|
108
108
|
|
109
109
|
<div id="footer">
|
110
|
-
Generated on Tue
|
110
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
111
111
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
112
|
0.9.25 (ruby-2.6.2).
|
113
113
|
</div>
|
@@ -106,7 +106,7 @@
|
|
106
106
|
</div>
|
107
107
|
|
108
108
|
<div id="footer">
|
109
|
-
Generated on Tue
|
109
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
110
110
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
111
|
0.9.25 (ruby-2.6.2).
|
112
112
|
</div>
|
@@ -227,15 +227,6 @@ options specified at class level using the <code>relation</code> method.</p>
|
|
227
227
|
<pre class="lines">
|
228
228
|
|
229
229
|
|
230
|
-
54
|
231
|
-
55
|
232
|
-
56
|
233
|
-
57
|
234
|
-
58
|
235
|
-
59
|
236
|
-
60
|
237
|
-
61
|
238
|
-
62
|
239
230
|
63
|
240
231
|
64
|
241
232
|
65
|
@@ -268,10 +259,19 @@ options specified at class level using the <code>relation</code> method.</p>
|
|
268
259
|
92
|
269
260
|
93
|
270
261
|
94
|
271
|
-
95
|
262
|
+
95
|
263
|
+
96
|
264
|
+
97
|
265
|
+
98
|
266
|
+
99
|
267
|
+
100
|
268
|
+
101
|
269
|
+
102
|
270
|
+
103
|
271
|
+
104</pre>
|
272
272
|
</td>
|
273
273
|
<td>
|
274
|
-
<pre class="code"><span class="info file"># File 'lib/inquery/mixins/relation_validation.rb', line
|
274
|
+
<pre class="code"><span class="info file"># File 'lib/inquery/mixins/relation_validation.rb', line 63</span>
|
275
275
|
|
276
276
|
<span class='kw'>def</span> <span class='id identifier rubyid_validate_relation!'>validate_relation!</span><span class='lparen'>(</span><span class='id identifier rubyid_relation'>relation</span><span class='rparen'>)</span>
|
277
277
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#DEFAULT_OPTIONS-constant" title="Inquery::Mixins::RelationValidation::DEFAULT_OPTIONS (constant)">DEFAULT_OPTIONS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
@@ -325,7 +325,7 @@ options specified at class level using the <code>relation</code> method.</p>
|
|
325
325
|
</div>
|
326
326
|
|
327
327
|
<div id="footer">
|
328
|
-
Generated on Tue
|
328
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
329
329
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
330
330
|
0.9.25 (ruby-2.6.2).
|
331
331
|
</div>
|
@@ -156,13 +156,13 @@ on. See <span class='object_link'><a href="../RelationValidation.html#OPTIONS_SC
|
|
156
156
|
<pre class="lines">
|
157
157
|
|
158
158
|
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
159
|
+
55
|
160
|
+
56
|
161
|
+
57
|
162
|
+
58</pre>
|
163
163
|
</td>
|
164
164
|
<td>
|
165
|
-
<pre class="code"><span class="info file"># File 'lib/inquery/mixins/relation_validation.rb', line
|
165
|
+
<pre class="code"><span class="info file"># File 'lib/inquery/mixins/relation_validation.rb', line 55</span>
|
166
166
|
|
167
167
|
<span class='kw'>def</span> <span class='id identifier rubyid_relation'>relation</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
168
168
|
<span class='const'><span class='object_link'><a href="../RelationValidation.html#OPTIONS_SCHEMA-constant" title="Inquery::Mixins::RelationValidation::OPTIONS_SCHEMA (constant)">OPTIONS_SCHEMA</a></span></span><span class='period'>.</span><span class='id identifier rubyid_validate!'>validate!</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
@@ -178,7 +178,7 @@ on. See <span class='object_link'><a href="../RelationValidation.html#OPTIONS_SC
|
|
178
178
|
</div>
|
179
179
|
|
180
180
|
<div id="footer">
|
181
|
-
Generated on Tue
|
181
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
182
182
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
183
183
|
0.9.25 (ruby-2.6.2).
|
184
184
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on Tue
|
119
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.9.25 (ruby-2.6.2).
|
122
122
|
</div>
|
@@ -148,13 +148,21 @@
|
|
148
148
|
13
|
149
149
|
14
|
150
150
|
15
|
151
|
-
16
|
151
|
+
16
|
152
|
+
17
|
153
|
+
18
|
154
|
+
19
|
155
|
+
20</pre>
|
152
156
|
</td>
|
153
157
|
<td>
|
154
158
|
<pre class="code"><span class="info file"># File 'lib/inquery/mixins/schema_validation.rb', line 12</span>
|
155
159
|
|
156
160
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema'>schema</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
157
|
-
<span class='
|
161
|
+
<span class='kw'>if</span> <span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>Schemacop</span><span class='op'>::</span><span class='const'>V2</span><span class='rparen'>)</span>
|
162
|
+
<span class='id identifier rubyid_schema'>schema</span> <span class='op'>=</span> <span class='const'>Schemacop</span><span class='op'>::</span><span class='const'>V2</span><span class='op'>::</span><span class='const'>Schema</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
163
|
+
<span class='kw'>else</span>
|
164
|
+
<span class='id identifier rubyid_schema'>schema</span> <span class='op'>=</span> <span class='const'>Schemacop</span><span class='op'>::</span><span class='const'>Schema</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
165
|
+
<span class='kw'>end</span>
|
158
166
|
|
159
167
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__schema'>_schema</span> <span class='op'>=</span> <span class='id identifier rubyid_schema'>schema</span>
|
160
168
|
<span class='kw'>end</span></pre>
|
@@ -168,7 +176,7 @@
|
|
168
176
|
</div>
|
169
177
|
|
170
178
|
<div id="footer">
|
171
|
-
Generated on Tue
|
179
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
172
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
173
181
|
0.9.25 (ruby-2.6.2).
|
174
182
|
</div>
|
data/doc/Inquery/Query.html
CHANGED
@@ -779,7 +779,7 @@ easyer access.</p>
|
|
779
779
|
</div>
|
780
780
|
|
781
781
|
<div id="footer">
|
782
|
-
Generated on Tue
|
782
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
783
783
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
784
784
|
0.9.25 (ruby-2.6.2).
|
785
785
|
</div>
|
@@ -529,7 +529,7 @@
|
|
529
529
|
</div>
|
530
530
|
|
531
531
|
<div id="footer">
|
532
|
-
Generated on Tue
|
532
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
533
533
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
534
534
|
0.9.25 (ruby-2.6.2).
|
535
535
|
</div>
|
data/doc/_index.html
CHANGED
@@ -248,7 +248,7 @@
|
|
248
248
|
</div>
|
249
249
|
|
250
250
|
<div id="footer">
|
251
|
-
Generated on Tue
|
251
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
252
252
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
253
253
|
0.9.25 (ruby-2.6.2).
|
254
254
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -374,7 +374,7 @@ in his <a href="http://craftingruby.com/posts/2015/06/29/query-objects-through-s
|
|
374
374
|
</div></div>
|
375
375
|
|
376
376
|
<div id="footer">
|
377
|
-
Generated on Tue
|
377
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
378
378
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
379
379
|
0.9.25 (ruby-2.6.2).
|
380
380
|
</div>
|
data/doc/index.html
CHANGED
@@ -374,7 +374,7 @@ in his <a href="http://craftingruby.com/posts/2015/06/29/query-objects-through-s
|
|
374
374
|
</div></div>
|
375
375
|
|
376
376
|
<div id="footer">
|
377
|
-
Generated on Tue
|
377
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
378
378
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
379
379
|
0.9.25 (ruby-2.6.2).
|
380
380
|
</div>
|
@@ -100,7 +100,7 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on Tue
|
103
|
+
Generated on Tue Nov 24 16:32:43 2020 by
|
104
104
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
105
|
0.9.25 (ruby-2.6.2).
|
106
106
|
</div>
|
data/inquery.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: inquery 1.0.
|
2
|
+
# stub: inquery 1.0.4 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "inquery".freeze
|
6
|
-
s.version = "1.0.
|
6
|
+
s.version = "1.0.4"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Sitrox".freeze]
|
11
|
-
s.date = "2020-
|
11
|
+
s.date = "2020-11-24"
|
12
12
|
s.files = [".gitignore".freeze, ".releaser_config".freeze, ".rubocop.yml".freeze, ".travis.yml".freeze, ".yardopts".freeze, "CHANGELOG.md".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "RUBY_VERSION".freeze, "Rakefile".freeze, "VERSION".freeze, "doc/Inquery.html".freeze, "doc/Inquery/Exceptions.html".freeze, "doc/Inquery/Exceptions/Base.html".freeze, "doc/Inquery/Exceptions/InvalidRelation.html".freeze, "doc/Inquery/Exceptions/UnknownCallSignature.html".freeze, "doc/Inquery/Mixins.html".freeze, "doc/Inquery/Mixins/RawSqlUtils.html".freeze, "doc/Inquery/Mixins/RelationValidation.html".freeze, "doc/Inquery/Mixins/RelationValidation/ClassMethods.html".freeze, "doc/Inquery/Mixins/SchemaValidation.html".freeze, "doc/Inquery/Mixins/SchemaValidation/ClassMethods.html".freeze, "doc/Inquery/Query.html".freeze, "doc/Inquery/Query/Chainable.html".freeze, "doc/_index.html".freeze, "doc/class_list.html".freeze, "doc/css/common.css".freeze, "doc/css/full_list.css".freeze, "doc/css/style.css".freeze, "doc/file.README.html".freeze, "doc/file_list.html".freeze, "doc/frames.html".freeze, "doc/index.html".freeze, "doc/js/app.js".freeze, "doc/js/full_list.js".freeze, "doc/js/jquery.js".freeze, "doc/method_list.html".freeze, "doc/top-level-namespace.html".freeze, "inquery.gemspec".freeze, "lib/inquery.rb".freeze, "lib/inquery/exceptions.rb".freeze, "lib/inquery/mixins/raw_sql_utils.rb".freeze, "lib/inquery/mixins/relation_validation.rb".freeze, "lib/inquery/mixins/schema_validation.rb".freeze, "lib/inquery/query.rb".freeze, "lib/inquery/query/chainable.rb".freeze, "test/db/models.rb".freeze, "test/db/schema.rb".freeze, "test/inquery/query/chainable_test.rb".freeze, "test/inquery/query_test.rb".freeze, "test/queries/group/fetch_as_json.rb".freeze, "test/queries/group/fetch_green.rb".freeze, "test/queries/group/fetch_red.rb".freeze, "test/queries/group/filter_with_color.rb".freeze, "test/queries/user/fetch_all.rb".freeze, "test/queries/user/fetch_in_group.rb".freeze, "test/queries/user/fetch_in_group_rel.rb".freeze, "test/test_helper.rb".freeze]
|
13
13
|
s.rubygems_version = "3.0.3".freeze
|
14
14
|
s.summary = "A skeleton that allows extracting queries into atomic, reusable classes.".freeze
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_runtime_dependency(%q<minitest>.freeze, [">= 0"])
|
29
29
|
s.add_runtime_dependency(%q<activesupport>.freeze, [">= 0"])
|
30
30
|
s.add_runtime_dependency(%q<activerecord>.freeze, [">= 0"])
|
31
|
-
s.add_runtime_dependency(%q<schemacop>.freeze, ["
|
31
|
+
s.add_runtime_dependency(%q<schemacop>.freeze, [">= 2.0"])
|
32
32
|
else
|
33
33
|
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
34
34
|
s.add_dependency(%q<rake>.freeze, [">= 0"])
|
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
|
|
40
40
|
s.add_dependency(%q<minitest>.freeze, [">= 0"])
|
41
41
|
s.add_dependency(%q<activesupport>.freeze, [">= 0"])
|
42
42
|
s.add_dependency(%q<activerecord>.freeze, [">= 0"])
|
43
|
-
s.add_dependency(%q<schemacop>.freeze, ["
|
43
|
+
s.add_dependency(%q<schemacop>.freeze, [">= 2.0"])
|
44
44
|
end
|
45
45
|
else
|
46
46
|
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
@@ -53,6 +53,6 @@ Gem::Specification.new do |s|
|
|
53
53
|
s.add_dependency(%q<minitest>.freeze, [">= 0"])
|
54
54
|
s.add_dependency(%q<activesupport>.freeze, [">= 0"])
|
55
55
|
s.add_dependency(%q<activerecord>.freeze, [">= 0"])
|
56
|
-
s.add_dependency(%q<schemacop>.freeze, ["
|
56
|
+
s.add_dependency(%q<schemacop>.freeze, [">= 2.0"])
|
57
57
|
end
|
58
58
|
end
|
@@ -3,11 +3,20 @@ module Inquery
|
|
3
3
|
module RelationValidation
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
if defined?(Schemacop::V2)
|
7
|
+
OPTIONS_SCHEMA = Schemacop::Node.create :object do
|
8
|
+
str? :class
|
9
|
+
int? :fields
|
10
|
+
sym? :default_select
|
11
|
+
rby? :default, [Proc, FalseClass]
|
12
|
+
end
|
13
|
+
else
|
14
|
+
OPTIONS_SCHEMA = Schemacop::Schema.new do
|
15
|
+
opt :class, :string
|
16
|
+
opt :fields, :integer
|
17
|
+
opt :default_select, :symbol
|
18
|
+
opt :default, :object, classes: [Proc, FalseClass]
|
19
|
+
end
|
11
20
|
end
|
12
21
|
|
13
22
|
DEFAULT_OPTIONS = {
|
@@ -10,7 +10,11 @@ module Inquery
|
|
10
10
|
|
11
11
|
module ClassMethods
|
12
12
|
def schema(*args, &block)
|
13
|
-
|
13
|
+
if defined?(Schemacop::V2)
|
14
|
+
schema = Schemacop::V2::Schema.new(*args, &block)
|
15
|
+
else
|
16
|
+
schema = Schemacop::Schema.new(*args, &block)
|
17
|
+
end
|
14
18
|
|
15
19
|
self._schema = schema
|
16
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sitrox
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -154,18 +154,18 @@ dependencies:
|
|
154
154
|
name: schemacop
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '2.0'
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '2.0'
|
167
|
-
description:
|
168
|
-
email:
|
167
|
+
description:
|
168
|
+
email:
|
169
169
|
executables: []
|
170
170
|
extensions: []
|
171
171
|
extra_rdoc_files: []
|
@@ -229,10 +229,10 @@ files:
|
|
229
229
|
- test/queries/user/fetch_in_group.rb
|
230
230
|
- test/queries/user/fetch_in_group_rel.rb
|
231
231
|
- test/test_helper.rb
|
232
|
-
homepage:
|
232
|
+
homepage:
|
233
233
|
licenses: []
|
234
234
|
metadata: {}
|
235
|
-
post_install_message:
|
235
|
+
post_install_message:
|
236
236
|
rdoc_options: []
|
237
237
|
require_paths:
|
238
238
|
- lib
|
@@ -247,8 +247,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
- !ruby/object:Gem::Version
|
248
248
|
version: '0'
|
249
249
|
requirements: []
|
250
|
-
rubygems_version: 3.1.
|
251
|
-
signing_key:
|
250
|
+
rubygems_version: 3.1.4
|
251
|
+
signing_key:
|
252
252
|
specification_version: 4
|
253
253
|
summary: A skeleton that allows extracting queries into atomic, reusable classes.
|
254
254
|
test_files:
|