inquery 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop.yml +17 -0
- data/.github/workflows/ruby.yml +53 -0
- data/.gitignore +2 -1
- data/.releaser_config +0 -1
- data/.rubocop.yml +4 -0
- data/Appraisals +19 -0
- data/CHANGELOG.md +4 -0
- data/LICENSE +1 -1
- data/README.md +5 -4
- data/RUBY_VERSION +1 -1
- data/Rakefile +4 -4
- data/VERSION +1 -1
- data/doc/Inquery/Exceptions/Base.html +3 -3
- data/doc/Inquery/Exceptions/InvalidRelation.html +3 -3
- data/doc/Inquery/Exceptions/UnknownCallSignature.html +3 -3
- data/doc/Inquery/Exceptions.html +3 -3
- data/doc/Inquery/Mixins/RawSqlUtils.html +3 -3
- data/doc/Inquery/Mixins/RelationValidation/ClassMethods.html +3 -3
- data/doc/Inquery/Mixins/RelationValidation.html +3 -3
- data/doc/Inquery/Mixins/SchemaValidation/ClassMethods.html +3 -3
- data/doc/Inquery/Mixins/SchemaValidation.html +3 -3
- data/doc/Inquery/Mixins.html +3 -3
- data/doc/Inquery/Query/Chainable.html +3 -3
- data/doc/Inquery/Query.html +3 -3
- data/doc/Inquery.html +3 -3
- data/doc/_index.html +8 -8
- data/doc/file.README.html +8 -7
- data/doc/frames.html +1 -1
- data/doc/index.html +8 -7
- data/doc/method_list.html +11 -11
- data/doc/top-level-namespace.html +3 -3
- data/gemfiles/rails_5.1.gemfile +7 -0
- data/gemfiles/rails_5.2.gemfile +7 -0
- data/gemfiles/rails_6.0.gemfile +7 -0
- data/gemfiles/rails_6.1.gemfile +7 -0
- data/gemfiles/rails_7.0.gemfile +7 -0
- data/inquery.gemspec +20 -32
- data/lib/inquery.rb +1 -0
- metadata +20 -13
- data/.travis.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a42f9f4e3765f6e9026a13c7e623c4a51787589171c40e128375382c44f2cde0
|
4
|
+
data.tar.gz: 4bd9b28a6bc8a837e4efdf8845a13de1bf651382e4f609a855ba85a63bd65ad4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ca5f8958bc74ebd0f2d67e7cc8a4dada0f981038ac486aa48da713988795390e99cf8ec49cb06df3aed5d18a7cec5c5923113c4a1e94da2184a4a027c5c4a20
|
7
|
+
data.tar.gz: dfcee1dcdb1eaf602d434b45977bf70da0cb0486377079ca0d4c72637abbc6319f9d90c97891f012a8cf67584ef8520ec350d1afbacdd998ad044b6fcb2b45c7
|
@@ -0,0 +1,17 @@
|
|
1
|
+
name: Rubocop check
|
2
|
+
on: push
|
3
|
+
|
4
|
+
jobs:
|
5
|
+
verify:
|
6
|
+
name: Test
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
steps:
|
10
|
+
- uses: actions/checkout@v1
|
11
|
+
- name: Set up Ruby
|
12
|
+
uses: ruby/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: 3.0.1
|
15
|
+
bundler-cache: true
|
16
|
+
- name: Run rubocop
|
17
|
+
run: bundle exec rubocop
|
@@ -0,0 +1,53 @@
|
|
1
|
+
name: Unit tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
fail-fast: false
|
14
|
+
matrix:
|
15
|
+
include:
|
16
|
+
- rails-version: '5.1'
|
17
|
+
ruby-version: '2.5.1'
|
18
|
+
- rails-version: '5.2'
|
19
|
+
ruby-version: '2.5.1'
|
20
|
+
- rails-version: '5.2'
|
21
|
+
ruby-version: '2.6.2'
|
22
|
+
- rails-version: '6.0'
|
23
|
+
ruby-version: '2.5.1'
|
24
|
+
- rails-version: '6.0'
|
25
|
+
ruby-version: '2.6.2'
|
26
|
+
- rails-version: '6.0'
|
27
|
+
ruby-version: '2.7.1'
|
28
|
+
- rails-version: '6.1'
|
29
|
+
ruby-version: '2.5.1'
|
30
|
+
- rails-version: '6.1'
|
31
|
+
ruby-version: '2.6.2'
|
32
|
+
- rails-version: '6.1'
|
33
|
+
ruby-version: '2.7.1'
|
34
|
+
- rails-version: '6.1'
|
35
|
+
ruby-version: '3.0.1'
|
36
|
+
- rails-version: '7.0'
|
37
|
+
ruby-version: '2.7.1'
|
38
|
+
- rails-version: '7.0'
|
39
|
+
ruby-version: '3.0.1'
|
40
|
+
- rails-version: '7.0'
|
41
|
+
ruby-version: '3.1.0'
|
42
|
+
name: Test against Ruby ${{ matrix.ruby-version }} / Rails ${{ matrix.rails-version }}
|
43
|
+
env:
|
44
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile
|
45
|
+
steps:
|
46
|
+
- uses: actions/checkout@v2
|
47
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
48
|
+
uses: ruby/setup-ruby@v1
|
49
|
+
with:
|
50
|
+
ruby-version: ${{ matrix.ruby-version }}
|
51
|
+
bundler-cache: true
|
52
|
+
- name: Run rake tests
|
53
|
+
run: bundle exec rake test
|
data/.gitignore
CHANGED
data/.releaser_config
CHANGED
data/.rubocop.yml
CHANGED
@@ -5,6 +5,7 @@ AllCops:
|
|
5
5
|
- 'vendor/**/*'
|
6
6
|
- 'tmp/**/*'
|
7
7
|
- 'inquery.gemspec'
|
8
|
+
SuggestExtensions: false
|
8
9
|
|
9
10
|
DisplayCopNames: true
|
10
11
|
|
@@ -101,3 +102,6 @@ Style/ConditionalAssignment:
|
|
101
102
|
|
102
103
|
Style/CaseLikeIf:
|
103
104
|
Enabled: false
|
105
|
+
|
106
|
+
Style/OpenStructUse:
|
107
|
+
Enabled: false
|
data/Appraisals
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
appraise 'rails-7.0' do
|
2
|
+
gem 'rails', '~> 7.0.1'
|
3
|
+
end
|
4
|
+
|
5
|
+
appraise 'rails-6.1' do
|
6
|
+
gem 'rails', '~> 6.1.4'
|
7
|
+
end
|
8
|
+
|
9
|
+
appraise 'rails-6.0' do
|
10
|
+
gem 'rails', '~> 6.0.4'
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise 'rails-5.2' do
|
14
|
+
gem 'rails', '~> 5.2.6'
|
15
|
+
end
|
16
|
+
|
17
|
+
appraise 'rails-5.1' do
|
18
|
+
gem 'rails', '~> 5.1.7'
|
19
|
+
end
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
[![
|
1
|
+
[![Unit tests](https://github.com/sitrox/inquery/actions/workflows/ruby.yml/badge.svg)](https://github.com/sitrox/inquery/actions/workflows/ruby.yml)
|
2
|
+
[![Rubocop check](https://github.com/sitrox/inquery/actions/workflows/rubocop.yml/badge.svg)](https://github.com/sitrox/inquery/actions/workflows/rubocop.yml)
|
2
3
|
[![Gem Version](https://badge.fury.io/rb/inquery.svg)](https://badge.fury.io/rb/inquery)
|
3
4
|
|
4
5
|
# Inquery
|
@@ -27,9 +28,9 @@ Inquery is tested with the following ruby versions:
|
|
27
28
|
* 2.5.1
|
28
29
|
* 2.6.2
|
29
30
|
* 2.7.1
|
30
|
-
* 3.0.
|
31
|
+
* 3.0.1
|
31
32
|
|
32
|
-
Other ruby versions might work but are not covered by our
|
33
|
+
Other ruby versions might work but are not covered by our automated tests.
|
33
34
|
|
34
35
|
## Basic usage
|
35
36
|
|
@@ -336,4 +337,4 @@ in his [blog post](http://craftingruby.com/posts/2015/06/29/query-objects-throug
|
|
336
337
|
|
337
338
|
## Copyright
|
338
339
|
|
339
|
-
Copyright © 2016 -
|
340
|
+
Copyright © 2016 - 2022 Sitrox. See `LICENSE` for further details.
|
data/RUBY_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-
|
1
|
+
ruby-3.0.1-p64
|
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
task :gemspec do
|
2
2
|
gemspec = Gem::Specification.new do |spec|
|
3
3
|
spec.name = 'inquery'
|
4
|
-
spec.version =
|
4
|
+
spec.version = File.read('VERSION').chomp
|
5
5
|
spec.authors = ['Sitrox']
|
6
6
|
spec.summary = %(
|
7
7
|
A skeleton that allows extracting queries into atomic, reusable classes.
|
@@ -11,12 +11,12 @@ task :gemspec do
|
|
11
11
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
12
12
|
spec.require_paths = ['lib']
|
13
13
|
|
14
|
-
spec.add_development_dependency '
|
14
|
+
spec.add_development_dependency 'appraisal'
|
15
15
|
spec.add_development_dependency 'rake'
|
16
16
|
spec.add_development_dependency 'sqlite3'
|
17
17
|
spec.add_development_dependency 'haml'
|
18
18
|
spec.add_development_dependency 'yard'
|
19
|
-
spec.add_development_dependency 'rubocop', '
|
19
|
+
spec.add_development_dependency 'rubocop', '1.25'
|
20
20
|
spec.add_development_dependency 'redcarpet'
|
21
21
|
spec.add_dependency 'minitest'
|
22
22
|
spec.add_dependency 'activesupport'
|
@@ -24,7 +24,7 @@ task :gemspec do
|
|
24
24
|
spec.add_dependency 'schemacop', '~> 3.0.8'
|
25
25
|
end
|
26
26
|
|
27
|
-
File.
|
27
|
+
File.write('inquery.gemspec', gemspec.to_ruby.strip)
|
28
28
|
end
|
29
29
|
|
30
30
|
require 'rake/testtask'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.10
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: Inquery::Exceptions::Base
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -118,9 +118,9 @@
|
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div id="footer">
|
121
|
-
Generated on
|
121
|
+
Generated on Thu May 19 10:36:15 2022 by
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
123
|
-
0.9.
|
123
|
+
0.9.27 (ruby-3.0.1).
|
124
124
|
</div>
|
125
125
|
|
126
126
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: Inquery::Exceptions::InvalidRelation
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -122,9 +122,9 @@
|
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div id="footer">
|
125
|
-
Generated on
|
125
|
+
Generated on Thu May 19 10:36:15 2022 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
|
-
0.9.
|
127
|
+
0.9.27 (ruby-3.0.1).
|
128
128
|
</div>
|
129
129
|
|
130
130
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: Inquery::Exceptions::UnknownCallSignature
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -122,9 +122,9 @@
|
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div id="footer">
|
125
|
-
Generated on
|
125
|
+
Generated on Thu May 19 10:36:15 2022 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
|
-
0.9.
|
127
|
+
0.9.27 (ruby-3.0.1).
|
128
128
|
</div>
|
129
129
|
|
130
130
|
</div>
|
data/doc/Inquery/Exceptions.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Exceptions
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -105,9 +105,9 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on
|
108
|
+
Generated on Thu May 19 10:36:15 2022 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
|
-
0.9.
|
110
|
+
0.9.27 (ruby-3.0.1).
|
111
111
|
</div>
|
112
112
|
|
113
113
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins::RawSqlUtils
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -106,9 +106,9 @@
|
|
106
106
|
</div>
|
107
107
|
|
108
108
|
<div id="footer">
|
109
|
-
Generated on
|
109
|
+
Generated on Thu May 19 10:36:15 2022 by
|
110
110
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
|
-
0.9.
|
111
|
+
0.9.27 (ruby-3.0.1).
|
112
112
|
</div>
|
113
113
|
|
114
114
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins::RelationValidation::ClassMethods
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -178,9 +178,9 @@ 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
|
181
|
+
Generated on Thu May 19 10:36:15 2022 by
|
182
182
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
183
|
-
0.9.
|
183
|
+
0.9.27 (ruby-3.0.1).
|
184
184
|
</div>
|
185
185
|
|
186
186
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins::RelationValidation
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -325,9 +325,9 @@ 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
|
328
|
+
Generated on Thu May 19 10:36:15 2022 by
|
329
329
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
330
|
-
0.9.
|
330
|
+
0.9.27 (ruby-3.0.1).
|
331
331
|
</div>
|
332
332
|
|
333
333
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins::SchemaValidation::ClassMethods
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -292,9 +292,9 @@
|
|
292
292
|
</div>
|
293
293
|
|
294
294
|
<div id="footer">
|
295
|
-
Generated on
|
295
|
+
Generated on Thu May 19 10:36:15 2022 by
|
296
296
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
297
|
-
0.9.
|
297
|
+
0.9.27 (ruby-3.0.1).
|
298
298
|
</div>
|
299
299
|
|
300
300
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins::SchemaValidation
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -116,9 +116,9 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Thu May 19 10:36:15 2022 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
|
-
0.9.
|
121
|
+
0.9.27 (ruby-3.0.1).
|
122
122
|
</div>
|
123
123
|
|
124
124
|
</div>
|
data/doc/Inquery/Mixins.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -107,9 +107,9 @@
|
|
107
107
|
</div>
|
108
108
|
|
109
109
|
<div id="footer">
|
110
|
-
Generated on
|
110
|
+
Generated on Thu May 19 10:36:15 2022 by
|
111
111
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
|
-
0.9.
|
112
|
+
0.9.27 (ruby-3.0.1).
|
113
113
|
</div>
|
114
114
|
|
115
115
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Inquery::Query::Chainable
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -529,9 +529,9 @@
|
|
529
529
|
</div>
|
530
530
|
|
531
531
|
<div id="footer">
|
532
|
-
Generated on
|
532
|
+
Generated on Thu May 19 10:36:15 2022 by
|
533
533
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
534
|
-
0.9.
|
534
|
+
0.9.27 (ruby-3.0.1).
|
535
535
|
</div>
|
536
536
|
|
537
537
|
</div>
|
data/doc/Inquery/Query.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Inquery::Query
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -779,9 +779,9 @@ easyer access.</p>
|
|
779
779
|
</div>
|
780
780
|
|
781
781
|
<div id="footer">
|
782
|
-
Generated on
|
782
|
+
Generated on Thu May 19 10:36:15 2022 by
|
783
783
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
784
|
-
0.9.
|
784
|
+
0.9.27 (ruby-3.0.1).
|
785
785
|
</div>
|
786
786
|
|
787
787
|
</div>
|
data/doc/Inquery.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -109,9 +109,9 @@
|
|
109
109
|
</div>
|
110
110
|
|
111
111
|
<div id="footer">
|
112
|
-
Generated on
|
112
|
+
Generated on Thu May 19 10:36:15 2022 by
|
113
113
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
114
|
-
0.9.
|
114
|
+
0.9.27 (ruby-3.0.1).
|
115
115
|
</div>
|
116
116
|
|
117
117
|
</div>
|
data/doc/_index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.9.
|
7
|
+
Documentation by YARD 0.9.27
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
<div class="clear"></div>
|
53
53
|
</div>
|
54
54
|
|
55
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.
|
55
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.27</h1>
|
56
56
|
<div id="listing">
|
57
57
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
58
58
|
|
@@ -103,16 +103,16 @@
|
|
103
103
|
</li>
|
104
104
|
|
105
105
|
<li>
|
106
|
-
<span class='object_link'><a href="Inquery/Mixins/
|
106
|
+
<span class='object_link'><a href="Inquery/Mixins/RelationValidation/ClassMethods.html" title="Inquery::Mixins::RelationValidation::ClassMethods (module)">ClassMethods</a></span>
|
107
107
|
|
108
|
-
<small>(Inquery::Mixins::
|
108
|
+
<small>(Inquery::Mixins::RelationValidation)</small>
|
109
109
|
|
110
110
|
</li>
|
111
111
|
|
112
112
|
<li>
|
113
|
-
<span class='object_link'><a href="Inquery/Mixins/
|
113
|
+
<span class='object_link'><a href="Inquery/Mixins/SchemaValidation/ClassMethods.html" title="Inquery::Mixins::SchemaValidation::ClassMethods (module)">ClassMethods</a></span>
|
114
114
|
|
115
|
-
<small>(Inquery::Mixins::
|
115
|
+
<small>(Inquery::Mixins::SchemaValidation)</small>
|
116
116
|
|
117
117
|
</li>
|
118
118
|
|
@@ -248,9 +248,9 @@
|
|
248
248
|
</div>
|
249
249
|
|
250
250
|
<div id="footer">
|
251
|
-
Generated on
|
251
|
+
Generated on Thu May 19 10:36:15 2022 by
|
252
252
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
253
|
-
0.9.
|
253
|
+
0.9.27 (ruby-3.0.1).
|
254
254
|
</div>
|
255
255
|
|
256
256
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -57,7 +57,8 @@
|
|
57
57
|
<div class="clear"></div>
|
58
58
|
</div>
|
59
59
|
|
60
|
-
<div id="content"><div id='filecontents'><p><a href="https://
|
60
|
+
<div id="content"><div id='filecontents'><p><a href="https://github.com/sitrox/inquery/actions/workflows/ruby.yml"><img src="https://github.com/sitrox/inquery/actions/workflows/ruby.yml/badge.svg" alt="Unit tests"></a>
|
61
|
+
<a href="https://github.com/sitrox/inquery/actions/workflows/rubocop.yml"><img src="https://github.com/sitrox/inquery/actions/workflows/rubocop.yml/badge.svg" alt="Rubocop check"></a>
|
61
62
|
<a href="https://badge.fury.io/rb/inquery"><img src="https://badge.fury.io/rb/inquery.svg" alt="Gem Version"></a></p>
|
62
63
|
|
63
64
|
<h1 id="inquery">Inquery</h1>
|
@@ -85,10 +86,10 @@ to your <code>Gemfile</code>:</p>
|
|
85
86
|
<li>2.5.1</li>
|
86
87
|
<li>2.6.2</li>
|
87
88
|
<li>2.7.1</li>
|
88
|
-
<li>3.0.
|
89
|
+
<li>3.0.1</li>
|
89
90
|
</ul>
|
90
91
|
|
91
|
-
<p>Other ruby versions might work but are not covered by our
|
92
|
+
<p>Other ruby versions might work but are not covered by our automated tests.</p>
|
92
93
|
|
93
94
|
<h2 id="basic-usage">Basic usage</h2>
|
94
95
|
|
@@ -386,13 +387,13 @@ in his <a href="http://craftingruby.com/posts/2015/06/29/query-objects-through-s
|
|
386
387
|
|
387
388
|
<h2 id="copyright">Copyright</h2>
|
388
389
|
|
389
|
-
<p>Copyright © 2016 -
|
390
|
+
<p>Copyright © 2016 - 2022 Sitrox. See <code>LICENSE</code> for further details.</p>
|
390
391
|
</div></div>
|
391
392
|
|
392
393
|
<div id="footer">
|
393
|
-
Generated on
|
394
|
+
Generated on Thu May 19 10:36:15 2022 by
|
394
395
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
395
|
-
0.9.
|
396
|
+
0.9.27 (ruby-3.0.1).
|
396
397
|
</div>
|
397
398
|
|
398
399
|
</div>
|
data/doc/frames.html
CHANGED
data/doc/index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -57,7 +57,8 @@
|
|
57
57
|
<div class="clear"></div>
|
58
58
|
</div>
|
59
59
|
|
60
|
-
<div id="content"><div id='filecontents'><p><a href="https://
|
60
|
+
<div id="content"><div id='filecontents'><p><a href="https://github.com/sitrox/inquery/actions/workflows/ruby.yml"><img src="https://github.com/sitrox/inquery/actions/workflows/ruby.yml/badge.svg" alt="Unit tests"></a>
|
61
|
+
<a href="https://github.com/sitrox/inquery/actions/workflows/rubocop.yml"><img src="https://github.com/sitrox/inquery/actions/workflows/rubocop.yml/badge.svg" alt="Rubocop check"></a>
|
61
62
|
<a href="https://badge.fury.io/rb/inquery"><img src="https://badge.fury.io/rb/inquery.svg" alt="Gem Version"></a></p>
|
62
63
|
|
63
64
|
<h1 id="inquery">Inquery</h1>
|
@@ -85,10 +86,10 @@ to your <code>Gemfile</code>:</p>
|
|
85
86
|
<li>2.5.1</li>
|
86
87
|
<li>2.6.2</li>
|
87
88
|
<li>2.7.1</li>
|
88
|
-
<li>3.0.
|
89
|
+
<li>3.0.1</li>
|
89
90
|
</ul>
|
90
91
|
|
91
|
-
<p>Other ruby versions might work but are not covered by our
|
92
|
+
<p>Other ruby versions might work but are not covered by our automated tests.</p>
|
92
93
|
|
93
94
|
<h2 id="basic-usage">Basic usage</h2>
|
94
95
|
|
@@ -386,13 +387,13 @@ in his <a href="http://craftingruby.com/posts/2015/06/29/query-objects-through-s
|
|
386
387
|
|
387
388
|
<h2 id="copyright">Copyright</h2>
|
388
389
|
|
389
|
-
<p>Copyright © 2016 -
|
390
|
+
<p>Copyright © 2016 - 2022 Sitrox. See <code>LICENSE</code> for further details.</p>
|
390
391
|
</div></div>
|
391
392
|
|
392
393
|
<div id="footer">
|
393
|
-
Generated on
|
394
|
+
Generated on Thu May 19 10:36:15 2022 by
|
394
395
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
395
|
-
0.9.
|
396
|
+
0.9.27 (ruby-3.0.1).
|
396
397
|
</div>
|
397
398
|
|
398
399
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -46,8 +46,8 @@
|
|
46
46
|
|
47
47
|
<li class="odd ">
|
48
48
|
<div class="item">
|
49
|
-
<span class='object_link'><a href="Inquery/Query.html#call-
|
50
|
-
<small>Inquery::Query</small>
|
49
|
+
<span class='object_link'><a href="Inquery/Query/Chainable.html#call-instance_method" title="Inquery::Query::Chainable#call (method)">#call</a></span>
|
50
|
+
<small>Inquery::Query::Chainable</small>
|
51
51
|
</div>
|
52
52
|
</li>
|
53
53
|
|
@@ -62,15 +62,15 @@
|
|
62
62
|
|
63
63
|
<li class="odd ">
|
64
64
|
<div class="item">
|
65
|
-
<span class='object_link'><a href="Inquery/Query
|
66
|
-
<small>Inquery::Query
|
65
|
+
<span class='object_link'><a href="Inquery/Query.html#call-class_method" title="Inquery::Query.call (method)">call</a></span>
|
66
|
+
<small>Inquery::Query</small>
|
67
67
|
</div>
|
68
68
|
</li>
|
69
69
|
|
70
70
|
|
71
71
|
<li class="even ">
|
72
72
|
<div class="item">
|
73
|
-
<span class='object_link'><a href="Inquery/Query/Chainable.html#call-
|
73
|
+
<span class='object_link'><a href="Inquery/Query/Chainable.html#call-class_method" title="Inquery::Query::Chainable.call (method)">call</a></span>
|
74
74
|
<small>Inquery::Query::Chainable</small>
|
75
75
|
</div>
|
76
76
|
</li>
|
@@ -94,16 +94,16 @@
|
|
94
94
|
|
95
95
|
<li class="odd ">
|
96
96
|
<div class="item">
|
97
|
-
<span class='object_link'><a href="Inquery/Query.html#initialize-instance_method" title="Inquery::Query#initialize (method)">#initialize</a></span>
|
98
|
-
<small>Inquery::Query</small>
|
97
|
+
<span class='object_link'><a href="Inquery/Query/Chainable.html#initialize-instance_method" title="Inquery::Query::Chainable#initialize (method)">#initialize</a></span>
|
98
|
+
<small>Inquery::Query::Chainable</small>
|
99
99
|
</div>
|
100
100
|
</li>
|
101
101
|
|
102
102
|
|
103
103
|
<li class="even ">
|
104
104
|
<div class="item">
|
105
|
-
<span class='object_link'><a href="Inquery/Query
|
106
|
-
<small>Inquery::Query
|
105
|
+
<span class='object_link'><a href="Inquery/Query.html#initialize-instance_method" title="Inquery::Query#initialize (method)">#initialize</a></span>
|
106
|
+
<small>Inquery::Query</small>
|
107
107
|
</div>
|
108
108
|
</li>
|
109
109
|
|
@@ -150,7 +150,7 @@
|
|
150
150
|
|
151
151
|
<li class="even ">
|
152
152
|
<div class="item">
|
153
|
-
<span class='object_link'><a href="Inquery/Query.html#run-
|
153
|
+
<span class='object_link'><a href="Inquery/Query.html#run-instance_method" title="Inquery::Query#run (method)">#run</a></span>
|
154
154
|
<small>Inquery::Query</small>
|
155
155
|
</div>
|
156
156
|
</li>
|
@@ -158,7 +158,7 @@
|
|
158
158
|
|
159
159
|
<li class="odd ">
|
160
160
|
<div class="item">
|
161
|
-
<span class='object_link'><a href="Inquery/Query.html#run-
|
161
|
+
<span class='object_link'><a href="Inquery/Query.html#run-class_method" title="Inquery::Query.run (method)">run</a></span>
|
162
162
|
<small>Inquery::Query</small>
|
163
163
|
</div>
|
164
164
|
</li>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Top Level Namespace
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.27
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -100,9 +100,9 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on
|
103
|
+
Generated on Thu May 19 10:36:15 2022 by
|
104
104
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
|
-
0.9.
|
105
|
+
0.9.27 (ruby-3.0.1).
|
106
106
|
</div>
|
107
107
|
|
108
108
|
</div>
|
data/inquery.gemspec
CHANGED
@@ -1,54 +1,42 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: inquery 1.0.
|
2
|
+
# stub: inquery 1.0.10 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.10"
|
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 = "
|
12
|
-
s.files = [".
|
13
|
-
s.rubygems_version = "3.
|
11
|
+
s.date = "2022-05-19"
|
12
|
+
s.files = [".github/workflows/rubocop.yml".freeze, ".github/workflows/ruby.yml".freeze, ".gitignore".freeze, ".releaser_config".freeze, ".rubocop.yml".freeze, ".yardopts".freeze, "Appraisals".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, "gemfiles/rails_5.1.gemfile".freeze, "gemfiles/rails_5.2.gemfile".freeze, "gemfiles/rails_6.0.gemfile".freeze, "gemfiles/rails_6.1.gemfile".freeze, "gemfiles/rails_7.0.gemfile".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
|
+
s.rubygems_version = "3.2.16".freeze
|
14
14
|
s.summary = "A skeleton that allows extracting queries into atomic, reusable classes.".freeze
|
15
15
|
s.test_files = ["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]
|
16
16
|
|
17
17
|
if s.respond_to? :specification_version then
|
18
18
|
s.specification_version = 4
|
19
|
+
end
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
else
|
33
|
-
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
34
|
-
s.add_dependency(%q<rake>.freeze, [">= 0"])
|
35
|
-
s.add_dependency(%q<sqlite3>.freeze, [">= 0"])
|
36
|
-
s.add_dependency(%q<haml>.freeze, [">= 0"])
|
37
|
-
s.add_dependency(%q<yard>.freeze, [">= 0"])
|
38
|
-
s.add_dependency(%q<rubocop>.freeze, ["= 0.92.0"])
|
39
|
-
s.add_dependency(%q<redcarpet>.freeze, [">= 0"])
|
40
|
-
s.add_dependency(%q<minitest>.freeze, [">= 0"])
|
41
|
-
s.add_dependency(%q<activesupport>.freeze, [">= 0"])
|
42
|
-
s.add_dependency(%q<activerecord>.freeze, [">= 0"])
|
43
|
-
s.add_dependency(%q<schemacop>.freeze, ["~> 3.0.8"])
|
44
|
-
end
|
21
|
+
if s.respond_to? :add_runtime_dependency then
|
22
|
+
s.add_development_dependency(%q<appraisal>.freeze, [">= 0"])
|
23
|
+
s.add_development_dependency(%q<rake>.freeze, [">= 0"])
|
24
|
+
s.add_development_dependency(%q<sqlite3>.freeze, [">= 0"])
|
25
|
+
s.add_development_dependency(%q<haml>.freeze, [">= 0"])
|
26
|
+
s.add_development_dependency(%q<yard>.freeze, [">= 0"])
|
27
|
+
s.add_development_dependency(%q<rubocop>.freeze, ["= 1.25"])
|
28
|
+
s.add_development_dependency(%q<redcarpet>.freeze, [">= 0"])
|
29
|
+
s.add_runtime_dependency(%q<minitest>.freeze, [">= 0"])
|
30
|
+
s.add_runtime_dependency(%q<activesupport>.freeze, [">= 0"])
|
31
|
+
s.add_runtime_dependency(%q<activerecord>.freeze, [">= 0"])
|
32
|
+
s.add_runtime_dependency(%q<schemacop>.freeze, ["~> 3.0.8"])
|
45
33
|
else
|
46
|
-
s.add_dependency(%q<
|
34
|
+
s.add_dependency(%q<appraisal>.freeze, [">= 0"])
|
47
35
|
s.add_dependency(%q<rake>.freeze, [">= 0"])
|
48
36
|
s.add_dependency(%q<sqlite3>.freeze, [">= 0"])
|
49
37
|
s.add_dependency(%q<haml>.freeze, [">= 0"])
|
50
38
|
s.add_dependency(%q<yard>.freeze, [">= 0"])
|
51
|
-
s.add_dependency(%q<rubocop>.freeze, ["=
|
39
|
+
s.add_dependency(%q<rubocop>.freeze, ["= 1.25"])
|
52
40
|
s.add_dependency(%q<redcarpet>.freeze, [">= 0"])
|
53
41
|
s.add_dependency(%q<minitest>.freeze, [">= 0"])
|
54
42
|
s.add_dependency(%q<activesupport>.freeze, [">= 0"])
|
data/lib/inquery.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sitrox
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: appraisal
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: '1.25'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: '1.25'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: redcarpet
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,17 +164,19 @@ dependencies:
|
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 3.0.8
|
167
|
-
description:
|
168
|
-
email:
|
167
|
+
description:
|
168
|
+
email:
|
169
169
|
executables: []
|
170
170
|
extensions: []
|
171
171
|
extra_rdoc_files: []
|
172
172
|
files:
|
173
|
+
- ".github/workflows/rubocop.yml"
|
174
|
+
- ".github/workflows/ruby.yml"
|
173
175
|
- ".gitignore"
|
174
176
|
- ".releaser_config"
|
175
177
|
- ".rubocop.yml"
|
176
|
-
- ".travis.yml"
|
177
178
|
- ".yardopts"
|
179
|
+
- Appraisals
|
178
180
|
- CHANGELOG.md
|
179
181
|
- Gemfile
|
180
182
|
- LICENSE
|
@@ -209,6 +211,11 @@ files:
|
|
209
211
|
- doc/js/jquery.js
|
210
212
|
- doc/method_list.html
|
211
213
|
- doc/top-level-namespace.html
|
214
|
+
- gemfiles/rails_5.1.gemfile
|
215
|
+
- gemfiles/rails_5.2.gemfile
|
216
|
+
- gemfiles/rails_6.0.gemfile
|
217
|
+
- gemfiles/rails_6.1.gemfile
|
218
|
+
- gemfiles/rails_7.0.gemfile
|
212
219
|
- inquery.gemspec
|
213
220
|
- lib/inquery.rb
|
214
221
|
- lib/inquery/exceptions.rb
|
@@ -229,10 +236,10 @@ files:
|
|
229
236
|
- test/queries/user/fetch_in_group.rb
|
230
237
|
- test/queries/user/fetch_in_group_rel.rb
|
231
238
|
- test/test_helper.rb
|
232
|
-
homepage:
|
239
|
+
homepage:
|
233
240
|
licenses: []
|
234
241
|
metadata: {}
|
235
|
-
post_install_message:
|
242
|
+
post_install_message:
|
236
243
|
rdoc_options: []
|
237
244
|
require_paths:
|
238
245
|
- lib
|
@@ -247,8 +254,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
254
|
- !ruby/object:Gem::Version
|
248
255
|
version: '0'
|
249
256
|
requirements: []
|
250
|
-
rubygems_version: 3.
|
251
|
-
signing_key:
|
257
|
+
rubygems_version: 3.3.11
|
258
|
+
signing_key:
|
252
259
|
specification_version: 4
|
253
260
|
summary: A skeleton that allows extracting queries into atomic, reusable classes.
|
254
261
|
test_files:
|