RubyGems
npm
Organizations
Log in
Sign up
RubyGems
quote
Versions diffs
0.1.6 → 0.1.7
quote 0.1.6 → 0.1.7
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/quote.rb
+1
-0
metadata
+3
-3
data/lib/quote.rb
CHANGED
@@ -41,6 +41,7 @@ module Quote
41
41
class << self
42
42
def say(criteria = {})
43
43
random_quote = load_quotes.where(criteria).random
44
+
return "No quote found" unless random_quote
44
45
ENV['QUOTE_COLORIZE'] == "true" ? random_quote.format_with_color : random_quote.format
45
46
end
46
47
metadata
CHANGED
@@ -1,13 +1,13 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: quote
3
3
version: !ruby/object:Gem::Version
4
-
hash:
23
4
+
hash:
21
5
5
prerelease: false
6
6
segments:
7
7
- 0
8
8
- 1
9
-
-
6
10
-
version: 0.1.
6
9
+
-
7
10
+
version: 0.1.
7
11
11
platform: ruby
12
12
authors:
13
13
- tjbladez