attribs 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/attribs.gemspec +2 -2
- data/spec/attribs_spec.rb +4 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cec2ee7deae38a5bd49ddd2e8eb4a85b33b4aa2c
|
4
|
+
data.tar.gz: c895c480707797762c001c54249237ad93c20dd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8be32d257d7a38e485c00474200a6d3718485750fe182ada63840844b0c55d992216adebe07ca4ed0c2512d0b80e684ac7f613a8a6b658af628f8570da8a9ec
|
7
|
+
data.tar.gz: a57b6ed16ff881e799cae7dbf4473a0c143f58ddcbc37d957d30ea8395b4da807da213dbc97cca775b90d96cb11b51fdcf449a62b7e604ffc8622384d3de0e4c
|
data/Rakefile
CHANGED
data/attribs.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "attribs"
|
5
|
-
gem.version = "1.
|
5
|
+
gem.version = "1.2.0"
|
6
6
|
gem.authors = ["Arne Brasseur"]
|
7
7
|
gem.email = ["arne@arnebrasseur.net"]
|
8
8
|
gem.summary = %q{Easy and flexible Ruby value objects.}
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.test_files = gem.files.grep(%r{^spec/})
|
17
17
|
gem.extra_rdoc_files = %w[README.md]
|
18
18
|
|
19
|
-
gem.add_runtime_dependency "anima", "~> 0.
|
19
|
+
gem.add_runtime_dependency "anima", "~> 0.3.0"
|
20
20
|
|
21
21
|
gem.add_development_dependency "rake"
|
22
22
|
gem.add_development_dependency "rspec", "~> 3.1"
|
data/spec/attribs_spec.rb
CHANGED
@@ -67,7 +67,7 @@ RSpec.describe Attribs do
|
|
67
67
|
end
|
68
68
|
|
69
69
|
it 'should expect all attributes' do
|
70
|
-
expect { subject.new(foo: 5) }.to raise_exception(Anima::Error
|
70
|
+
expect { subject.new(foo: 5) }.to raise_exception(Anima::Error, /missing: \[:bar\], unknown: \[\]/)
|
71
71
|
end
|
72
72
|
end
|
73
73
|
end
|
@@ -99,7 +99,7 @@ RSpec.describe Attribs do
|
|
99
99
|
end
|
100
100
|
|
101
101
|
it 'should expect all attributes' do
|
102
|
-
expect { subject.new(foo: 5, bar: 6) }.to raise_exception(Anima::Error
|
102
|
+
expect { subject.new(foo: 5, bar: 6) }.to raise_exception(Anima::Error, /missing: \[:bax\], unknown: \[\]/)
|
103
103
|
end
|
104
104
|
end
|
105
105
|
end
|
@@ -113,7 +113,7 @@ RSpec.describe Attribs do
|
|
113
113
|
end
|
114
114
|
|
115
115
|
it 'should no longer recognize the old attributes' do
|
116
|
-
expect { subject.new(foo: 3, bar: 3).bar }.to
|
116
|
+
expect { subject.new(foo: 3, bar: 3).bar }.to raise_exception(Anima::Error, /missing: \[\], unknown: \[:bar\]/)
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
@@ -125,7 +125,7 @@ RSpec.describe Attribs do
|
|
125
125
|
end
|
126
126
|
|
127
127
|
it 'should no longer recognize the old attributes' do
|
128
|
-
expect { subject.new(foo: 3).foo }.to
|
128
|
+
expect { subject.new(foo: 3).foo }.to raise_exception(Anima::Error, /missing: \[\], unknown: \[:foo\]/)
|
129
129
|
end
|
130
130
|
|
131
131
|
it 'should keep the defaults' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attribs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arne Brasseur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: anima
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.3.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.3.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.5.1
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Easy and flexible Ruby value objects.
|