anima 0.1.0 → 0.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
  SHA1:
3
- metadata.gz: 8829390b1d9de51fddff518775263b3d349298bc
4
- data.tar.gz: b7cfafb8c2c03195da23c1cfe3a26be3d20c93fb
3
+ metadata.gz: fdedbf4864bb7044d72c9f6e4ad63c1b364419ab
4
+ data.tar.gz: 3a320c5eade913ddf3c3e2139f16f4e077a474d6
5
5
  SHA512:
6
- metadata.gz: 9ef1d565f8abe13a9914af0439b2bae68a3350819b240a1dbedf565d50a5c1639696282b676db17ede25d8d82a82aa2355fe7ad2584fbcdd502ee0cddc602769
7
- data.tar.gz: cef667e63a0f638bd8ed31474fce8dde15df03922b1f3d069a4829b328a795e5d906267e09ca1c999cc675084beb77deb556412d784c485d865820cb141e435a
6
+ metadata.gz: 8f30d533e039382d8eba7ba5b0386d86db400b9c61b4658e821c01fb5078c6f05df340f8077b5f74a2d872a39d5b104bfa87511ae9bdcefd3d680a74790dc8c2
7
+ data.tar.gz: da76f7fe9694cb76ee9c0d401e3a360cbcef3ffee4d1b043117e50888271ba23baad4b4f4f908519f14851432401dc85b1e8a0cff16f005936e187827e58c735
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'anima'
5
- s.version = '0.1.0'
5
+ s.version = '0.1.1'
6
6
 
7
7
  s.authors = ['Markus Schirp']
8
8
  s.email = 'mbj@schirp-dso.com'
@@ -1,4 +1,3 @@
1
- require 'backports'
2
1
  require 'adamantium'
3
2
  require 'equalizer'
4
3
  require 'abstract_type'
@@ -1,13 +1,10 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Anima do
4
-
5
4
  let(:object) { described_class.new(:foo) }
6
5
 
7
6
  describe '#attributes_hash' do
8
-
9
- let(:value) { double('Value') }
10
-
7
+ let(:value) { double('Value') }
11
8
  let(:instance) { double(foo: value) }
12
9
 
13
10
  subject { object.attributes_hash(instance) }
@@ -20,11 +17,13 @@ describe Anima do
20
17
 
21
18
  context 'with single attribute' do
22
19
  subject { object.remove(:bar) }
20
+
23
21
  it { should eql(described_class.new(:foo)) }
24
22
  end
25
23
 
26
24
  context 'with multiple attributes' do
27
25
  subject { object.remove(:foo, :bar) }
26
+
28
27
  it { should eql(described_class.new) }
29
28
  end
30
29
 
@@ -38,16 +37,19 @@ describe Anima do
38
37
  describe '#add' do
39
38
  context 'with single attribute' do
40
39
  subject { object.add(:bar) }
40
+
41
41
  it { should eql(described_class.new(:foo, :bar)) }
42
42
  end
43
43
 
44
44
  context 'with multiple attributes' do
45
45
  subject { object.add(:bar, :baz) }
46
+
46
47
  it { should eql(described_class.new(:foo, :bar, :baz)) }
47
48
  end
48
49
 
49
50
  context 'with duplicate attribute ' do
50
51
  subject { object.add(:foo) }
52
+
51
53
  it { should eql(object) }
52
54
  end
53
55
  end
@@ -67,10 +69,9 @@ describe Anima do
67
69
  end
68
70
  end
69
71
 
70
- let(:value) { double('Value') }
71
-
72
- let(:instance) { target.new(foo: value) }
73
- let(:instance_b) { target.new(foo: value) }
72
+ let(:value) { double('Value') }
73
+ let(:instance) { target.new(foo: value) }
74
+ let(:instance_b) { target.new(foo: value) }
74
75
  let(:instance_c) { target.new(foo: double('Bar')) }
75
76
 
76
77
  context 'on instance' do
@@ -94,9 +95,7 @@ describe Anima do
94
95
 
95
96
  describe '#initialize_instance' do
96
97
  let(:object) { Anima.new(:foo, :bar) }
97
-
98
98
  let(:target) { Object.new }
99
-
100
99
  let(:foo) { double('Foo') }
101
100
  let(:bar) { double('Bar') }
102
101
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anima
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-08 00:00:00.000000000 Z
11
+ date: 2013-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: adamantium