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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea059fd53cd84c3fe4ad9e0956aaa240a29ecd59
4
- data.tar.gz: 55caddd417dc4ba9cf01179cb3f8cce9e5fae3ff
3
+ metadata.gz: 9a6785d88a05a06be44b03e87a0ca55447b3a275
4
+ data.tar.gz: 07c82c56b9497928d5bdbcb87d7d1af70902c8aa
5
5
  SHA512:
6
- metadata.gz: 0aa1c83086a377e7fe2aaddbea370f269bcb784f5e4b430159d0c0a445bb302e95026249b2e5d5399237e7b1363dda8f270e49603c7d9507b656682f7f8f381e
7
- data.tar.gz: 1baf959b69b8d8a3f7dc72089227c306f27d0d0f405a0e7e6fb82f1ad933decc39ec4d4a792bdd43094697ecd198ad1485c4c432c6bc69478f02b60388914b5d
6
+ metadata.gz: ac0247e593cb8dee6d9bc3b5e3724818ad21c56e45351faab4534157ebedae77b952e7dd1f03e4a2b4a81bd660fe266967e62e793e1b5bcd718bbd1b78100ed4
7
+ data.tar.gz: 9c891eebecfa3248f3d3e857291a07c2b505b61af67a18717a28809268cdc8982cddf9747ebf72bab273f1c9bb96c2fe4643250e6e8f5fe7e4c4f95d1944602d
@@ -51,15 +51,17 @@ module Error
51
51
  end
52
52
 
53
53
  def message
54
- @message || developer_message
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 RuntimeError, 'This method must be implemented in a subclass'
64
+ raise NoMethodError, 'This method must be implemented in a subclass'
63
65
  end
64
66
 
65
67
  def self.included(base)
@@ -1,3 +1,3 @@
1
1
  class HumanError
2
- VERSION = '1.7.0'
2
+ VERSION = '1.7.1'
3
3
  end
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.0
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-22 00:00:00.000000000 Z
11
+ date: 2014-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec