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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45b9f4f89d241cb824f7de46f3b84049091ff579853165562df4341765c9e536
4
- data.tar.gz: '028f2cd61072b3ffbfd31b2b626380d056805670483fad333f22da17ebe8e5c1'
3
+ metadata.gz: b98dc6fa8124e5d5febb058d644524f392d4ad94a140eebe361811aa92e74d17
4
+ data.tar.gz: 201d38b5fcaa35608c70ec2800685930272d6e9ca5a68f0c3b3d367e3db61382
5
5
  SHA512:
6
- metadata.gz: c52b88733d60d5db5c071464bba3e80658c9bb2653e8624df96637c74dcfbde157cd59444e2a34fce8b971ba5267b9c70aaacc12e76c51d0ffabe5869f7c122b
7
- data.tar.gz: fee01595c30949c3dc6889d8b9d7c9e931f05ae45857476a7af3ec4bf88dbce19f3faeae666505d1ccb09eee04f6a615ce993f47b2373987f6fa18d3d6ee59b6
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.0)
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.16.0)
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` automatically wraps `params` in an `OpenStruct` for more convenient
293
- access.
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.0
1
+ 1.1.1
@@ -118,7 +118,7 @@
118
118
  </div>
119
119
 
120
120
  <div id="footer">
121
- Generated on Mon Jan 5 14:06:48 2026 by
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 Jan 5 14:06:48 2026 by
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 Jan 5 14:06:48 2026 by
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>
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
 
107
107
  <div id="footer">
108
- Generated on Mon Jan 5 14:06:48 2026 by
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>