quote 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/quote.rb +1 -0
  2. metadata +3 -3
@@ -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