cinch-quotes 0.0.1 → 0.0.2
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.
- data/cinch-quotes.gemspec +1 -1
- data/lib/cinch/plugins/quotes.rb +2 -2
- metadata +4 -4
data/cinch-quotes.gemspec
CHANGED
data/lib/cinch/plugins/quotes.rb
CHANGED
|
@@ -38,8 +38,8 @@ module Cinch
|
|
|
38
38
|
if search.nil? # we are pulling random
|
|
39
39
|
quote = quotes.sample
|
|
40
40
|
m.reply "#{m.user.nick}: ##{quote["id"]} - #{quote["quote"]}"
|
|
41
|
-
elsif search.to_i != 0 # then we are searching
|
|
42
|
-
quote = quotes[
|
|
41
|
+
elsif search.to_i != 0 # then we are searching by id
|
|
42
|
+
quote = quotes.find{|q| q["id"] == search.to_i }
|
|
43
43
|
if quote.nil?
|
|
44
44
|
m.reply "#{m.user.nick}: No quotes found."
|
|
45
45
|
else
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cinch-quotes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-07-13 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: cinch
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70136098819360 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ~>
|
|
@@ -21,7 +21,7 @@ dependencies:
|
|
|
21
21
|
version: '2.0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70136098819360
|
|
25
25
|
description: Gives Cinch IRC bots ability to manage quotes
|
|
26
26
|
email:
|
|
27
27
|
- caitlin@caitlinwoodward.me
|