inquery 1.0.11 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop.yml +1 -1
- data/.github/workflows/ruby.yml +24 -8
- data/.gitignore +2 -2
- data/.rubocop.yml +4 -0
- data/Appraisals +24 -4
- data/CHANGELOG.md +55 -0
- data/Gemfile +17 -1
- data/Gemfile.lock +125 -0
- data/LICENSE +1 -1
- data/MIGRATION.md +260 -0
- data/README.md +19 -10
- data/RUBY_VERSION +1 -1
- data/Rakefile +4 -11
- data/VERSION +1 -1
- data/doc/Inquery/Exceptions/Base.html +4 -4
- data/doc/Inquery/Exceptions/InvalidRelation.html +4 -4
- data/doc/Inquery/Exceptions/UnknownCallSignature.html +4 -4
- data/doc/Inquery/Exceptions.html +4 -4
- data/doc/Inquery/MethodAccessibleHash.html +849 -0
- data/doc/Inquery/Mixins/RawSqlUtils.html +17 -4
- data/doc/Inquery/Mixins/RelationValidation/ClassMethods.html +8 -7
- data/doc/Inquery/Mixins/RelationValidation.html +9 -8
- data/doc/Inquery/Mixins/SchemaValidation/ClassMethods.html +4 -4
- data/doc/Inquery/Mixins/SchemaValidation.html +4 -4
- data/doc/Inquery/Mixins.html +4 -4
- data/doc/Inquery/Query/Chainable.html +207 -90
- data/doc/Inquery/Query.html +401 -73
- data/doc/Inquery.html +12 -9
- data/doc/_index.html +12 -5
- data/doc/class_list.html +6 -3
- data/doc/css/full_list.css +3 -3
- data/doc/css/style.css +6 -0
- data/doc/file.README.html +107 -18
- data/doc/file_list.html +5 -2
- data/doc/frames.html +10 -5
- data/doc/index.html +107 -18
- data/doc/js/app.js +294 -264
- data/doc/js/full_list.js +30 -4
- data/doc/method_list.html +95 -20
- data/doc/top-level-namespace.html +4 -4
- data/gemfiles/rails_5.2.gemfile +1 -0
- data/gemfiles/rails_6.0.gemfile +1 -0
- data/gemfiles/rails_6.1.gemfile +1 -0
- data/gemfiles/rails_7.0.gemfile +1 -0
- data/gemfiles/{rails_5.1.gemfile → rails_7.1.gemfile} +2 -1
- data/gemfiles/rails_7.2.gemfile +8 -0
- data/gemfiles/rails_8.0.gemfile +8 -0
- data/gemfiles/rails_8.1.gemfile +8 -0
- data/inquery.gemspec +11 -34
- data/lib/inquery/method_accessible_hash.rb +130 -0
- data/lib/inquery/mixins/raw_sql_utils.rb +32 -6
- data/lib/inquery/mixins/relation_validation.rb +1 -1
- data/lib/inquery/query/chainable.rb +69 -27
- data/lib/inquery/query.rb +67 -14
- data/lib/inquery.rb +2 -0
- data/test/inquery/error_handling_test.rb +117 -0
- data/test/inquery/method_accessible_hash_test.rb +213 -0
- data/test/inquery/mixins/raw_sql_utils_test.rb +67 -0
- data/test/inquery/query/chainable_test.rb +78 -0
- data/test/inquery/query_test.rb +86 -0
- data/test/test_helper.rb +11 -0
- metadata +30 -129
- data/.yardopts +0 -1
data/Rakefile
CHANGED
|
@@ -3,6 +3,7 @@ task :gemspec do
|
|
|
3
3
|
spec.name = 'inquery'
|
|
4
4
|
spec.version = File.read('VERSION').chomp
|
|
5
5
|
spec.authors = ['Sitrox']
|
|
6
|
+
spec.homepage = 'https://github.com/sitrox/inquery'
|
|
6
7
|
spec.summary = %(
|
|
7
8
|
A skeleton that allows extracting queries into atomic, reusable classes.
|
|
8
9
|
)
|
|
@@ -11,17 +12,9 @@ task :gemspec do
|
|
|
11
12
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
12
13
|
spec.require_paths = ['lib']
|
|
13
14
|
|
|
14
|
-
spec.
|
|
15
|
-
spec.
|
|
16
|
-
spec.
|
|
17
|
-
spec.add_development_dependency 'haml'
|
|
18
|
-
spec.add_development_dependency 'yard'
|
|
19
|
-
spec.add_development_dependency 'rubocop', '1.25'
|
|
20
|
-
spec.add_development_dependency 'redcarpet'
|
|
21
|
-
spec.add_dependency 'minitest'
|
|
22
|
-
spec.add_dependency 'activesupport'
|
|
23
|
-
spec.add_dependency 'activerecord'
|
|
24
|
-
spec.add_dependency 'schemacop', '~> 3.0.8'
|
|
15
|
+
spec.add_dependency 'activesupport', '>= 5.1'
|
|
16
|
+
spec.add_dependency 'activerecord', '>= 5.1'
|
|
17
|
+
spec.add_dependency 'schemacop', '>= 3.0.8', '< 4.0'
|
|
25
18
|
end
|
|
26
19
|
|
|
27
20
|
File.write('inquery.gemspec', gemspec.to_ruby.strip)
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.1.1
|
|
@@ -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.37
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
</div>
|
|
119
119
|
|
|
120
120
|
<div id="footer">
|
|
121
|
-
Generated on
|
|
122
|
-
<a href="
|
|
123
|
-
0.9.
|
|
121
|
+
Generated on Mon Jun 15 10:47:42 2026 by
|
|
122
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
123
|
+
0.9.37 (ruby-3.3.5).
|
|
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.37
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
</div>
|
|
123
123
|
|
|
124
124
|
<div id="footer">
|
|
125
|
-
Generated on
|
|
126
|
-
<a href="
|
|
127
|
-
0.9.
|
|
125
|
+
Generated on Mon Jun 15 10:47:42 2026 by
|
|
126
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
127
|
+
0.9.37 (ruby-3.3.5).
|
|
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.37
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
</div>
|
|
123
123
|
|
|
124
124
|
<div id="footer">
|
|
125
|
-
Generated on
|
|
126
|
-
<a href="
|
|
127
|
-
0.9.
|
|
125
|
+
Generated on Mon Jun 15 10:47:42 2026 by
|
|
126
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
127
|
+
0.9.37 (ruby-3.3.5).
|
|
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.37
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
</div>
|
|
106
106
|
|
|
107
107
|
<div id="footer">
|
|
108
|
-
Generated on
|
|
109
|
-
<a href="
|
|
110
|
-
0.9.
|
|
108
|
+
Generated on Mon Jun 15 10:47:42 2026 by
|
|
109
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
110
|
+
0.9.37 (ruby-3.3.5).
|
|
111
111
|
</div>
|
|
112
112
|
|
|
113
113
|
</div>
|