sub_diff 1.0.5 → 1.0.6

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
  SHA1:
3
- metadata.gz: 0e0a1c384ad9a38a3da768751496368956897495
4
- data.tar.gz: bbf19547c4e3ffa7e418466b655f5f4f393133e4
3
+ metadata.gz: a9bf511596ffa127d50dbb11ca5c23455c22e2e9
4
+ data.tar.gz: 1ddf085a4b05b5053d42f7934211ff40af9f7d24
5
5
  SHA512:
6
- metadata.gz: 3335512ec9a6d1da59b76932415a0a5558332e871f28df968bbd4f319bc4e11aa77ed6843029c2d16efb9600c4d1ed8c0722a48581de94eb6bd8361c7ab4a7fb
7
- data.tar.gz: 08afe03cecebf41f2ec96c65e7c02841bee5e80a34edda84d9b00a4625e5650c776bcd06aed4ab1dbd74ec86c2ff711a693bf8cb7decb5689f00f793c25861b3
6
+ metadata.gz: 156e609d5da9583939778c4b1b38b97f044ee168b3f2f668ffcc646f0a7960e5c57d887744f8be7d945c2c0849755a7c456769ebc22232dbeb7aecc7c2a4b266
7
+ data.tar.gz: 6468333a0d3e6ec9be8479c2ecbe261b856abf7494073729b7f71202c65cab11c7b9ebd65440c4db5de19a12fb184a007c93281b117d25bcd0f0c947e6a86e6b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sub_diff (1.0.5)
4
+ sub_diff (1.0.6)
5
5
 
6
6
  GEM
7
7
  remote: https://www.rubygems.org/
@@ -21,6 +21,7 @@ module SubDiff
21
21
  def clear
22
22
  diffs.clear
23
23
  __setobj__('')
24
+ self
24
25
  end
25
26
 
26
27
  def push(diff)
@@ -1,3 +1,3 @@
1
1
  module SubDiff
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
@@ -35,6 +35,10 @@ RSpec.describe SubDiff::Collection do
35
35
  expect(block).to change(subject, :to_s)
36
36
  expect(subject.to_s).to eq('')
37
37
  end
38
+
39
+ it 'should return the instance itself' do
40
+ expect(block.call.object_id).to eq(subject.object_id)
41
+ end
38
42
  end
39
43
 
40
44
  describe '#each' do
@@ -79,7 +83,7 @@ RSpec.describe SubDiff::Collection do
79
83
  end
80
84
 
81
85
  it 'should return the instance itself' do
82
- expect(block.call).to eq(subject)
86
+ expect(block.call.object_id).to eq(subject.object_id)
83
87
  end
84
88
  end
85
89
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sub_diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Huber