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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec55d797b8ae1c3b339e09422501c905e9df0728
4
- data.tar.gz: 7152836f91cd025073370f106dfe0230b1add314
3
+ metadata.gz: cec2ee7deae38a5bd49ddd2e8eb4a85b33b4aa2c
4
+ data.tar.gz: c895c480707797762c001c54249237ad93c20dd3
5
5
  SHA512:
6
- metadata.gz: 0a8cd8ed6aeea533b7a5b1cd9fdc5c9515f32f9f3d012b69d106ff434bd155934b048fc19654dcccb473bcf15aa304cf9e639fcfd80ee07537a44daef0e5624d
7
- data.tar.gz: f741038d5e4e786ff6003d90e62559d632b4fadbd5885c3e2f7a2aadfa436c1072c5b268dae830ed1d5cc52e5b84162f75883f15deacf3a3735f36817d0533f5
6
+ metadata.gz: e8be32d257d7a38e485c00474200a6d3718485750fe182ada63840844b0c55d992216adebe07ca4ed0c2512d0b80e684ac7f613a8a6b658af628f8570da8a9ec
7
+ data.tar.gz: a57b6ed16ff881e799cae7dbf4473a0c143f58ddcbc37d957d30ea8395b4da807da213dbc97cca775b90d96cb11b51fdcf449a62b7e604ffc8622384d3de0e4c
data/Rakefile CHANGED
@@ -6,8 +6,8 @@ gem.define
6
6
 
7
7
  desc "Push gem to rubygems.org"
8
8
  task :push => :gem do
9
- sh "git tag v#{spec.version}"
10
- sh "git push --tags"
9
+ # sh "git tag v#{spec.version}"
10
+ # sh "git push --tags"
11
11
  sh "gem push pkg/attribs-#{spec.version}.gem"
12
12
  end
13
13
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "attribs"
5
- gem.version = "1.1.0"
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.2.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"
@@ -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::Missing)
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::Missing)
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 raise_error(Anima::Error::Unknown)
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 raise_error(Anima::Error::Unknown)
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.1.0
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: 2016-02-21 00:00:00.000000000 Z
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.2.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.2.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.4.5
108
+ rubygems_version: 2.5.1
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Easy and flexible Ruby value objects.