what_is 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/what_is/version.rb +1 -1
- data/lib/what_is.rb +1 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c23eb6ec6f4ca661b58e1b16f80a001a2e2fe815
|
4
|
+
data.tar.gz: 5fd442f1412059303f1120ae1ce3eda743143ccd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dd87b81d1680082e96af90f020750871d23b17353483598208db10c420b4856e29063f05332057dbe040502d5561c45c3a089b11c0974f432e1608d65419acc
|
7
|
+
data.tar.gz: c63d99b585d42550646208a7bb15ee7e0bf0cc89e4a4bee5754179bb6224b20f630785390a3b00d421eea8fd3887be1494234eb334e9ab185788763e08fcbfca
|
data/lib/what_is/version.rb
CHANGED
data/lib/what_is.rb
CHANGED
@@ -37,7 +37,7 @@ module WhatIs
|
|
37
37
|
rescue NoApiKeyException => e
|
38
38
|
no_api_key_exception_message
|
39
39
|
rescue Exception => e
|
40
|
-
|
40
|
+
e.message
|
41
41
|
end
|
42
42
|
|
43
43
|
def has_definition?
|
@@ -46,10 +46,6 @@ module WhatIs
|
|
46
46
|
|
47
47
|
private
|
48
48
|
|
49
|
-
def default_exception_message
|
50
|
-
"Oops! Something happened while defining this word."
|
51
|
-
end
|
52
|
-
|
53
49
|
def no_api_key_exception_message
|
54
50
|
"No api key provided."
|
55
51
|
end
|