human_error 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/human_error/error.rb +5 -3
- data/lib/human_error/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a6785d88a05a06be44b03e87a0ca55447b3a275
|
4
|
+
data.tar.gz: 07c82c56b9497928d5bdbcb87d7d1af70902c8aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac0247e593cb8dee6d9bc3b5e3724818ad21c56e45351faab4534157ebedae77b952e7dd1f03e4a2b4a81bd660fe266967e62e793e1b5bcd718bbd1b78100ed4
|
7
|
+
data.tar.gz: 9c891eebecfa3248f3d3e857291a07c2b505b61af67a18717a28809268cdc8982cddf9747ebf72bab273f1c9bb96c2fe4643250e6e8f5fe7e4c4f95d1944602d
|
data/lib/human_error/error.rb
CHANGED
@@ -51,15 +51,17 @@ module Error
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def message
|
54
|
-
|
54
|
+
to_s
|
55
55
|
end
|
56
56
|
|
57
57
|
def to_s
|
58
|
-
message
|
58
|
+
@message || developer_message
|
59
|
+
rescue NoMethodError
|
60
|
+
super
|
59
61
|
end
|
60
62
|
|
61
63
|
def developer_message
|
62
|
-
raise
|
64
|
+
raise NoMethodError, 'This method must be implemented in a subclass'
|
63
65
|
end
|
64
66
|
|
65
67
|
def self.included(base)
|
data/lib/human_error/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: human_error
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfelchner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|