active_hash 3.3.0 → 3.3.1

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: f255dca493bb6e5cb46acba485f7df5af6ebfef6a708abf30757a3e39db1bb62
4
- data.tar.gz: a5c7bcc8a8f85ab74395b7554c39cb33023a30dd592d68d9a9b5664d02d9e233
3
+ metadata.gz: 9f03cf8270c4fd278e024200679342d2063170eb886caacc29eec8b1577ff5d3
4
+ data.tar.gz: d1b0cf6ed32af1f82471e22a593d5929be18f47c729e514376485a9a34a8a74d
5
5
  SHA512:
6
- metadata.gz: bebafa5e913c561fbe97a1ba997df579072db9153be012773c2fcfdd33062cdd033b417b47ea5a6de5c234736b575b2c1d307185b2b7570c31ce825da107cd61
7
- data.tar.gz: 439923f589dc14098c4b278ccee6ee0f66de3c17e67f5f41c8d0f2f6ccf706d93311582d3daadcb296c0de9afe97044b22f2f6136be1dd3bba6c93f03fdecd7a
6
+ metadata.gz: 33f26034c33d2e1b5533007a10cd63672478e0c421c3e0e1819392bfae33c6815af58ec8605492790ec3bbbbdfe642839647b296902008c0c92f525bed311d06
7
+ data.tar.gz: fb495624034f265a1503f5f493fff74097653f3b00a703b1f9406d397a70eb744a6322e0758bfe9e4b6f7bd4a0ea86b2e5bcadb55adaf2fb1be87525330271dd
data/CHANGELOG.md CHANGED
@@ -1,12 +1,19 @@
1
1
  # active_hash Changelog
2
2
 
3
+ ## Version [3.3.1] - <sub><sup>2024-05-03</sup></sub>
4
+
5
+ ### Fixed
6
+
7
+ - Fix `hash_many :through` associations which specify a scope. [#306](https://github.com/active-hash/active_hash/pull/306) @sontixyou
8
+
9
+
3
10
  ## Version [3.3.0] - <sub><sup>2024-04-30</sup></sub>
4
11
 
5
12
  ### Added
6
13
 
7
14
  - Ruby 3.3 support [#298](https://github.com/active-hash/active_hash/pull/298) @m-nakamura145
8
15
  - Support `has_many :through` associations [#296](https://github.com/active-hash/active_hash/pull/296) @flavorjones
9
- - Rails 7.1 support [#291](https://github.com/active-hash/active_hash/pull/281) @y-yagi
16
+ - Rails 7.1 support [#291](https://github.com/active-hash/active_hash/pull/291) @y-yagi
10
17
 
11
18
  ### Fixed
12
19
 
@@ -1,5 +1,5 @@
1
1
  module ActiveHash
2
2
  module Gem
3
- VERSION = "3.3.0"
3
+ VERSION = "3.3.1"
4
4
  end
5
5
  end
@@ -6,7 +6,7 @@ module ActiveHash
6
6
  require_relative 'reflection_extensions'
7
7
  end
8
8
 
9
- def has_many(association_id, **options)
9
+ def has_many(association_id, scope = nil, **options, &extension)
10
10
  if options[:through]
11
11
  klass_name = association_id.to_s.classify
12
12
  klass =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Dean
@@ -29,7 +29,7 @@ authors:
29
29
  autorequire:
30
30
  bindir: bin
31
31
  cert_chain: []
32
- date: 2024-04-29 00:00:00.000000000 Z
32
+ date: 2024-05-04 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: activesupport