inquery 1.0.2 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fadeb3eebd8e58e36b96cddf25d32dc634de642a68cb967dd1cbaf010b889665
4
- data.tar.gz: b468fd644261a3dd7d78f630833677539ab157d96483cfbacc7d16de5d734df0
3
+ metadata.gz: 5c4ebd965ab27ba5e11502e0f6d90db2dadbeb8d6830c5f9e443cbd8f61a9597
4
+ data.tar.gz: f2e84fbacddd9c57697209a9bed74007aefef67107760eeffba734ff5a55ecf9
5
5
  SHA512:
6
- metadata.gz: 6c19663ecce2ce5f0818ea606b9d07bc6512aff13eb26cb7a979b25dd7ef5db6f077c6f1e6c246b7c85597eab6385beb2d633cecc4bea8381d0145098b992c27
7
- data.tar.gz: 28d534d48d02eb0f78e170fecd02b446244ea80ea1f1906001cc21a90681258a319cb85715099c94d402463aa17338ada5d835cb341e20200480f5f97368b44d
6
+ metadata.gz: e1d71dd15f4f0f7edcd259fa655add871903aa178c06005ac45d8ce472844040c8406f7fed2ec17fbcaf34668cba0308905a23748a47a1e686e3fe509c20d54b
7
+ data.tar.gz: d034afc517e730bb1cb6e03cf0d4138ae31321afc06aac83801cf2ec266bf91b07efb9ced15f921fcf22cd375d7a1c15b5d9d9e5264f2c1ef4d8e074cabddd02
@@ -1,5 +1,26 @@
1
1
  # Change log
2
2
 
3
+ ## 1.0.7 (2020-11-24)
4
+
5
+ - Improve support for schemacop 3.x
6
+
7
+ ## 1.0.6 (2020-11-24)
8
+
9
+ - Improve support for schemacop 3.x
10
+
11
+ ## 1.0.5 (2020-11-24)
12
+
13
+ - Improve support for schemacop 3.x and document it
14
+
15
+ ## 1.0.4 (2020-11-24)
16
+
17
+ - Add support for schemacop 3.x (but still using 2.x schema version)
18
+
19
+ ## 1.0.3 (2020-05-12)
20
+
21
+ - Overwrite parameter hash with the casted version if using
22
+ casting inside the schemacop `schema` block
23
+
3
24
  ## 1.0.2 (2019-10-09)
4
25
 
5
26
  - Add new mixin `RawSqlUtils`, which provides two methods for
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 Sitrox
3
+ Copyright (c) 2020 Sitrox
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -284,6 +284,9 @@ class SomeQueryClass < Inquery::Query
284
284
  end
285
285
  ```
286
286
 
287
+ Inquery supports both schemacop specification versions 2 and 3 using the methods
288
+ `schema` / `schema2` for version 2 and method `schema3` for version 3.
289
+
287
290
  ## Rails integration
288
291
 
289
292
  While it is optional, Inquery has been written from the ground up to be
@@ -322,4 +325,4 @@ in his [blog post](http://craftingruby.com/posts/2015/06/29/query-objects-throug
322
325
 
323
326
  ## Copyright
324
327
 
325
- Copyright (c) 2019 Sitrox. See `LICENSE` for further details.
328
+ Copyright (c) 2020 Sitrox. See `LICENSE` for further details.
@@ -1 +1 @@
1
- ruby-2.3.1-p112
1
+ ruby-2.6.2-p47
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', '~> 2.0'
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.2
1
+ 1.0.7
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Module: Inquery
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Inquery";
19
19
  relpath = '';
20
20
  </script>
@@ -109,9 +109,9 @@
109
109
  </div>
110
110
 
111
111
  <div id="footer">
112
- Generated on Wed Oct 9 16:20:53 2019 by
112
+ Generated on Wed Nov 25 14:05:20 2020 by
113
113
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
114
- 0.9.20 (ruby-2.6.2).
114
+ 0.9.25 (ruby-2.6.2).
115
115
  </div>
116
116
 
117
117
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Module: Inquery::Exceptions
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Inquery::Exceptions";
19
19
  relpath = '../';
20
20
  </script>
@@ -105,9 +105,9 @@
105
105
  </div>
106
106
 
107
107
  <div id="footer">
108
- Generated on Wed Oct 9 16:20:53 2019 by
108
+ Generated on Wed Nov 25 14:05:20 2020 by
109
109
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
- 0.9.20 (ruby-2.6.2).
110
+ 0.9.25 (ruby-2.6.2).
111
111
  </div>
112
112
 
113
113
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Exception: Inquery::Exceptions::Base
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Inquery::Exceptions::Base";
19
19
  relpath = '../../';
20
20
  </script>
@@ -118,9 +118,9 @@
118
118
  </div>
119
119
 
120
120
  <div id="footer">
121
- Generated on Wed Oct 9 16:20:53 2019 by
121
+ Generated on Wed Nov 25 14:05:20 2020 by
122
122
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
123
- 0.9.20 (ruby-2.6.2).
123
+ 0.9.25 (ruby-2.6.2).
124
124
  </div>
125
125
 
126
126
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Exception: Inquery::Exceptions::InvalidRelation
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Inquery::Exceptions::InvalidRelation";
19
19
  relpath = '../../';
20
20
  </script>
@@ -122,9 +122,9 @@
122
122
  </div>
123
123
 
124
124
  <div id="footer">
125
- Generated on Wed Oct 9 16:20:53 2019 by
125
+ Generated on Wed Nov 25 14:05:20 2020 by
126
126
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
127
- 0.9.20 (ruby-2.6.2).
127
+ 0.9.25 (ruby-2.6.2).
128
128
  </div>
129
129
 
130
130
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Exception: Inquery::Exceptions::UnknownCallSignature
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Inquery::Exceptions::UnknownCallSignature";
19
19
  relpath = '../../';
20
20
  </script>
@@ -122,9 +122,9 @@
122
122
  </div>
123
123
 
124
124
  <div id="footer">
125
- Generated on Wed Oct 9 16:20:53 2019 by
125
+ Generated on Wed Nov 25 14:05:20 2020 by
126
126
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
127
- 0.9.20 (ruby-2.6.2).
127
+ 0.9.25 (ruby-2.6.2).
128
128
  </div>
129
129
 
130
130
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Module: Inquery::Mixins
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Inquery::Mixins";
19
19
  relpath = '../';
20
20
  </script>
@@ -107,9 +107,9 @@
107
107
  </div>
108
108
 
109
109
  <div id="footer">
110
- Generated on Wed Oct 9 16:20:53 2019 by
110
+ Generated on Wed Nov 25 14:05:20 2020 by
111
111
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
- 0.9.20 (ruby-2.6.2).
112
+ 0.9.25 (ruby-2.6.2).
113
113
  </div>
114
114
 
115
115
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Module: Inquery::Mixins::RawSqlUtils
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Inquery::Mixins::RawSqlUtils";
19
19
  relpath = '../../';
20
20
  </script>
@@ -106,9 +106,9 @@
106
106
  </div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Wed Oct 9 16:20:53 2019 by
109
+ Generated on Wed Nov 25 14:05:20 2020 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
- 0.9.20 (ruby-2.6.2).
111
+ 0.9.25 (ruby-2.6.2).
112
112
  </div>
113
113
 
114
114
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Module: Inquery::Mixins::RelationValidation
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Inquery::Mixins::RelationValidation";
19
19
  relpath = '../../';
20
20
  </script>
@@ -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</pre>
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 54</span>
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,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 Wed Oct 9 16:20:53 2019 by
328
+ Generated on Wed Nov 25 14:05:20 2020 by
329
329
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
330
- 0.9.20 (ruby-2.6.2).
330
+ 0.9.25 (ruby-2.6.2).
331
331
  </div>
332
332
 
333
333
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Module: Inquery::Mixins::RelationValidation::ClassMethods
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Inquery::Mixins::RelationValidation::ClassMethods";
19
19
  relpath = '../../../';
20
20
  </script>
@@ -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
- 46
160
- 47
161
- 48
162
- 49</pre>
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 46</span>
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,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 Wed Oct 9 16:20:53 2019 by
181
+ Generated on Wed Nov 25 14:05:20 2020 by
182
182
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
183
- 0.9.20 (ruby-2.6.2).
183
+ 0.9.25 (ruby-2.6.2).
184
184
  </div>
185
185
 
186
186
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Module: Inquery::Mixins::SchemaValidation
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Inquery::Mixins::SchemaValidation";
19
19
  relpath = '../../';
20
20
  </script>
@@ -116,9 +116,9 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Wed Oct 9 16:20:53 2019 by
119
+ Generated on Wed Nov 25 14:05:20 2020 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
- 0.9.20 (ruby-2.6.2).
121
+ 0.9.25 (ruby-2.6.2).
122
122
  </div>
123
123
 
124
124
  </div>