activerecord-hashlike_access 0.1.1 → 0.2.0

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: 25fc3d615fa4c5dec3f58db1b116a2f1affc0d6ceb896b19a4c14c21fea7d485
4
- data.tar.gz: 78545089eba9bb3a807f6cadaebe8f4c39f7c80c3f887f1f79042db5383feca2
3
+ metadata.gz: 7c11af72973363a017a98b192a5a8f393538a62848b93b081d50f0750c7a6184
4
+ data.tar.gz: 2eb4ad4660a7a0f8cf39f4b987cce1617004ff916fa45143c7e2b08b4ef39cab
5
5
  SHA512:
6
- metadata.gz: 0e0f4b79e1bfd1f1ba58c153e5d7181ef399cf5866087d30b15283ff013f3f12a90897238eecab8f74fbdec7785ec5aef19f37f673315063a4b0f581ca821e20
7
- data.tar.gz: 3c8d30c4917cde11adcc4b81041c764ce3967f0a6a7b8f1e366a60e77b6808f4883b098a95deef89709b220be86910e88842af0fb5d751f0f90dcb5ffad31ae4
6
+ metadata.gz: 8096df46e1ebadcabf6f90ad4af9b3bd5d3baacecfa74e8df99ac4b3a0b0497c48608a07d579ccac72312e3359c98906fb41a93290cd34b4f9260fc6b637ad77
7
+ data.tar.gz: a35b39c1e48eb248a897592d02b0fe06784e5c40b9b88f0f1932e24a8c239c7f14ef828126b6a68c64a3b6d70dcea535ef7db0be26a4c5818679941aa6792876
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activerecord-hashlike_access (0.1.0)
4
+ activerecord-hashlike_access (0.1.1)
5
5
  activerecord (>= 6)
6
6
 
7
7
  GEM
@@ -145,7 +145,7 @@ DEPENDENCIES
145
145
  CHECKSUMS
146
146
  activemodel (8.1.3.1) sha256=99cc02ce2faec371d14440949d85787ebd23a907c9baef0a9d4bcd4d21888f88
147
147
  activerecord (8.1.3.1) sha256=0a2fb6c28f4938f6b013a3a549bec0a7e37d535f3dc8990e804bcc3258c0403b
148
- activerecord-hashlike_access (0.1.0)
148
+ activerecord-hashlike_access (0.1.1)
149
149
  activesupport (8.1.3.1) sha256=85458765f25ea48b9019c46b6bb3fa5683197bf4280d9f06710a6e8d7a831376
150
150
  ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
151
151
  base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
data/README.md CHANGED
@@ -46,9 +46,17 @@ Importantly, note that **this gem works on the model, not its relations**. Activ
46
46
  ## Installation
47
47
 
48
48
  - If your project uses [Bundler](https://github.com/bundler/bundler):
49
- - Add the following to your application's Gemfile:
49
+ - Add one of the following to your application's Gemfile:
50
50
  ```ruby
51
+ # For on-demand usage:
52
+
51
53
  gem 'activerecord-hashlike_access'
54
+
55
+
56
+ # To automatically `extend ActiveRecord::HashlikeAccess`
57
+ # into all your (`ActiveRecord::Base`-descended) models:
58
+
59
+ gem 'activerecord-hashlike_access', require: 'active_record/hashlike_access/auto_extend'
52
60
  ```
53
61
  - And then run a:
54
62
  ```shell