relaton-bib 1.14.9 → 1.14.10

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: 1273f9228474261e4a5a9364d279c8fa3206f513fa20abf9c6dc25eaf141e00a
4
- data.tar.gz: ec2ba1a41d35c28b90a188ade205ce7b450fe391cea19648f4d09ebee5e5ca0c
3
+ metadata.gz: a629df727fd6d8fb5429936488b905865be53d089945aeb55f0f0fd51c266ab8
4
+ data.tar.gz: 1612798330ec595fe856bc465013d441aca9fbc8b894e6e6c41ee252152f7269
5
5
  SHA512:
6
- metadata.gz: 742952cf22934e1569bdc0adedd75edc306e45176709211b7fcdf82752c0e5143f625d1d035d4d21c003b73c4b2d2666682f739cab038fcb482dfff0131e015c
7
- data.tar.gz: 604ce84dc9d51c2496280ddd04710d3403e8e6d83c914b4a6955d3c2aa2fdba65530d7255a8ab964dc328fed21965714c0deeb9384b0564f487972e9a92d333a
6
+ metadata.gz: '0808918cd59dcdba35172ef1b8453dbabae6a0c60e56a0924d52ca103b1dd5d6885a6432c61c9c3b6dd4bf1e67ce1e79ba8c8effa5cbc7412f681632b336b5a7'
7
+ data.tar.gz: 407b46555e0af962a6bc61722da91af43856aa638b555146ec8e2ce18106cca47602ed8207fd18d5d230f2c9be1965f7a23fb3b74ced9e28115430d17c8cb1e4
@@ -3,7 +3,7 @@ require "weakref"
3
3
  module RelatonBib
4
4
  class Hit
5
5
  # @return [RelatonBib::HitCollection]
6
- attr_reader :hit_collection
6
+ attr_accessor :hit_collection
7
7
 
8
8
  # @return [Array<Hash>]
9
9
  attr_reader :hit
@@ -75,6 +75,7 @@ module RelatonBib
75
75
  array_dup = instance_variable_get(:@array).deep_dup
76
76
  me.instance_variable_set(:@array, array_dup)
77
77
  array_dup.select!(&block)
78
+ array_dup.each { |h| h.hit_collection = WeakRef.new me }
78
79
  me
79
80
  end
80
81
 
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.14.9".freeze
2
+ VERSION = "1.14.10".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.9
4
+ version: 1.14.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-04 00:00:00.000000000 Z
11
+ date: 2023-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug