dry-core 0.4.0 → 0.4.1

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: 59a2526ad9fd5d5a7225da0f28423132f7497085
4
- data.tar.gz: 2f5b0fc541fbdc6ec2d79f57a80a36a0f900ba26
3
+ metadata.gz: 6d16ed519d450263269a0b138f5f687e02632137
4
+ data.tar.gz: 5908543ec0bedb6a3a10662d20745471094ce47b
5
5
  SHA512:
6
- metadata.gz: 9beae2da47f5c3189564c7222f6755c175c071f0fe0061ae87e7b89a937129503b557eb952216e2897c1ac5e77741d4b46abbd9d7ab489d9496edf02d4f5e0d4
7
- data.tar.gz: 98698a801fc0fef684980f66d58ddb30b242ff3053eb3953f3ad3bfdaffc78546f792d6cc1124031f593bd830d0ab2f729a3729d070275389aae5d152301decb
6
+ metadata.gz: ea7bcbce1621103c644229a644423c833b3ed09c281644eacece3de9623555bbfce89a2662c55c667d8be70889c9cb598456c7832879ae64b4af5d56360afc3d
7
+ data.tar.gz: 782d803b352387825005a0ebecddb1a3570b0ee2a40f1fbe63a7c63da10e8eafa2362256defadf1445a015b6197e3d02d0855365205207851a4b3e1d1c3af29b
@@ -1,3 +1,11 @@
1
+ # v0.4.1 2017-11-04
2
+
3
+ ### Changed
4
+
5
+ * Improved error message on invalid attribute value (GustavoCaso)
6
+
7
+ [Compare v0.4.0...v0.4.1](https://github.com/dry-rb/dry-core/compare/v0.4.0...v0.4.1)
8
+
1
9
  # v0.4.0 2017-11-02
2
10
 
3
11
  ### Added
@@ -62,7 +62,7 @@ module Dry
62
62
  nil
63
63
  end
64
64
  else
65
- raise InvalidClassAttributeValue unless type === value
65
+ raise InvalidClassAttributeValue.new(name, value) unless type === value
66
66
 
67
67
  instance_variable_set(ivar, value)
68
68
  end
@@ -1,5 +1,11 @@
1
1
  module Dry
2
2
  module Core
3
- InvalidClassAttributeValue = Class.new(StandardError)
3
+ class InvalidClassAttributeValue < StandardError
4
+ def initialize(name, value)
5
+ super(
6
+ "Value #{value.inspect} is invalid for class attribute #{name.inspect}"
7
+ )
8
+ end
9
+ end
4
10
  end
5
11
  end
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module Core
3
- VERSION = '0.4.0'.freeze
3
+ VERSION = '0.4.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikita Shilnikov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-02 00:00:00.000000000 Z
11
+ date: 2017-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby