inquery 1.1.0 → 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/CHANGELOG.md +17 -0
- data/Gemfile.lock +2 -2
- data/README.md +5 -2
- data/VERSION +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/Exceptions.html +1 -1
- data/doc/Inquery/MethodAccessibleHash.html +469 -51
- data/doc/Inquery/Mixins/RawSqlUtils.html +1 -1
- data/doc/Inquery/Mixins/RelationValidation/ClassMethods.html +1 -1
- data/doc/Inquery/Mixins/RelationValidation.html +1 -1
- data/doc/Inquery/Mixins/SchemaValidation/ClassMethods.html +1 -1
- data/doc/Inquery/Mixins/SchemaValidation.html +1 -1
- data/doc/Inquery/Mixins.html +1 -1
- data/doc/Inquery/Query/Chainable.html +1 -1
- data/doc/Inquery/Query.html +1 -1
- data/doc/Inquery.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +6 -3
- data/doc/index.html +6 -3
- data/doc/method_list.html +57 -9
- data/doc/top-level-namespace.html +1 -1
- data/inquery.gemspec +3 -3
- data/lib/inquery/method_accessible_hash.rb +100 -15
- data/test/inquery/method_accessible_hash_test.rb +133 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b98dc6fa8124e5d5febb058d644524f392d4ad94a140eebe361811aa92e74d17
|
|
4
|
+
data.tar.gz: 201d38b5fcaa35608c70ec2800685930272d6e9ca5a68f0c3b3d367e3db61382
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6941ca16491c5322fd81976842cda78a35418caf272a2c4e1027fa5d6d9a9713c509ea8d482384c60ba287efa269244530a5e28043517bdd0b02a1a9056d310
|
|
7
|
+
data.tar.gz: 87c4af61b494a8d2e668b81fe884a3ed195fabce4d0b48f8582dcb92889424f96d8154b3bbeb2c03860d33329f177db22d27fc3bf0aaef51774d50ad0094fc00
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Change log
|
|
2
2
|
|
|
3
|
+
## 1.1.1 (2026-06-15)
|
|
4
|
+
|
|
5
|
+
* Fix `osparams` returning wrong values for keys that collide with `Hash` /
|
|
6
|
+
`Enumerable` method names (e.g. `group_by`, `count`, `zip`, `select`). Since
|
|
7
|
+
1.1.0 `MethodAccessibleHash` subclassed `Hash`, so `osparams.group_by` invoked
|
|
8
|
+
`Enumerable#group_by` (returning an `Enumerator`) instead of the stored value.
|
|
9
|
+
`MethodAccessibleHash` no longer subclasses `Hash`; it wraps an internal hash
|
|
10
|
+
and exposes only `[]`, `[]=`, `to_h`, `merge`, `==` and method-based access.
|
|
11
|
+
|
|
12
|
+
Note: as a result, the `Hash` / `Enumerable` API that was briefly available
|
|
13
|
+
in 1.1.0 (e.g. `each`, `keys`, `values`, `dig`, `map`, `**` splat) is no
|
|
14
|
+
longer exposed -- call `to_h` first if you need it. `merge` now takes a
|
|
15
|
+
positional hash (or another `MethodAccessibleHash`) instead of keyword
|
|
16
|
+
arguments.
|
|
17
|
+
|
|
18
|
+
Internal reference: `#150355`.
|
|
19
|
+
|
|
3
20
|
## 1.1.0 (2026-01-05)
|
|
4
21
|
|
|
5
22
|
* **Drop support for Ruby 2.5.1 and Rails 5.1**: The minimum supported versions
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
inquery (1.1.
|
|
4
|
+
inquery (1.1.1)
|
|
5
5
|
activerecord (>= 5.1)
|
|
6
6
|
activesupport (>= 5.1)
|
|
7
7
|
schemacop (>= 3.0.8, < 4.0)
|
|
@@ -41,7 +41,7 @@ GEM
|
|
|
41
41
|
drb (2.2.3)
|
|
42
42
|
i18n (1.14.7)
|
|
43
43
|
concurrent-ruby (~> 1.0)
|
|
44
|
-
json (2.
|
|
44
|
+
json (2.17.1.2)
|
|
45
45
|
language_server-protocol (3.17.0.5)
|
|
46
46
|
lint_roller (1.1.0)
|
|
47
47
|
logger (1.7.0)
|
data/README.md
CHANGED
|
@@ -289,8 +289,11 @@ raised if the given params do not match the schema specified. See documentation
|
|
|
289
289
|
of the Schemacop Gem for more information on how to specify schemas.
|
|
290
290
|
|
|
291
291
|
Parameters can be accessed using either `params` or `osparams`. The method
|
|
292
|
-
`osparams`
|
|
293
|
-
|
|
292
|
+
`osparams` wraps `params` in a `MethodAccessibleHash`, allowing access to the
|
|
293
|
+
top-level parameters via dot notation (e.g. `osparams.search`) in addition to
|
|
294
|
+
the usual `[]` access. Unlike a plain `Hash`, a `MethodAccessibleHash` does not
|
|
295
|
+
expose the `Hash`/`Enumerable` API, so keys named like Hash methods (e.g.
|
|
296
|
+
`count`, `select`, `zip`) still return their stored value.
|
|
294
297
|
|
|
295
298
|
```ruby
|
|
296
299
|
class SomeQueryClass < Inquery::Query
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.1
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
</div>
|
|
119
119
|
|
|
120
120
|
<div id="footer">
|
|
121
|
-
Generated on Mon
|
|
121
|
+
Generated on Mon Jun 15 10:47:42 2026 by
|
|
122
122
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
123
123
|
0.9.37 (ruby-3.3.5).
|
|
124
124
|
</div>
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
</div>
|
|
123
123
|
|
|
124
124
|
<div id="footer">
|
|
125
|
-
Generated on Mon
|
|
125
|
+
Generated on Mon Jun 15 10:47:42 2026 by
|
|
126
126
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
127
127
|
0.9.37 (ruby-3.3.5).
|
|
128
128
|
</div>
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
</div>
|
|
123
123
|
|
|
124
124
|
<div id="footer">
|
|
125
|
-
Generated on Mon
|
|
125
|
+
Generated on Mon Jun 15 10:47:42 2026 by
|
|
126
126
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
127
127
|
0.9.37 (ruby-3.3.5).
|
|
128
128
|
</div>
|
data/doc/Inquery/Exceptions.html
CHANGED
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
</div>
|
|
106
106
|
|
|
107
107
|
<div id="footer">
|
|
108
|
-
Generated on Mon
|
|
108
|
+
Generated on Mon Jun 15 10:47:42 2026 by
|
|
109
109
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
110
110
|
0.9.37 (ruby-3.3.5).
|
|
111
111
|
</div>
|