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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c17f74282e0ee8a9f6c532dd98654cc9ae11f3fc
4
- data.tar.gz: 37fcb1c0ec278205f214d27d2d641a1ddbda404a
3
+ metadata.gz: c23eb6ec6f4ca661b58e1b16f80a001a2e2fe815
4
+ data.tar.gz: 5fd442f1412059303f1120ae1ce3eda743143ccd
5
5
  SHA512:
6
- metadata.gz: fd80a938ac74fb281cd01988aabe97da4d986cfd532ae19be1013caf5691a0676f18b3b93dbe015e8b10aaa3888d9612d5252b7237992946c3b2ae51a9961d2c
7
- data.tar.gz: e491ef0aaca3f8424f4a87cfadf44da1a8d85c89dc547abf49088fe0b0e4ad05120b5ada3734e23e5fed47e2533fd525ef8c4925cf72aff523fff94c71adeea7
6
+ metadata.gz: 5dd87b81d1680082e96af90f020750871d23b17353483598208db10c420b4856e29063f05332057dbe040502d5561c45c3a089b11c0974f432e1608d65419acc
7
+ data.tar.gz: c63d99b585d42550646208a7bb15ee7e0bf0cc89e4a4bee5754179bb6224b20f630785390a3b00d421eea8fd3887be1494234eb334e9ab185788763e08fcbfca
@@ -1,3 +1,3 @@
1
1
  module WhatIs
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
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
- default_exception_message
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: what_is
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Chavez