jok 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/bin/jok +4 -1
- data/lib/jok/joke_factory.rb +2 -1
- data/lib/jok/version.rb +1 -1
- 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: 14f5aab7e070be756a1ed011042507b4c1484a37
|
4
|
+
data.tar.gz: 4d10e1be850ee77f6afb7003e0ed34aa40cbc5d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17fde72b45b618fcac4c49223e3b8c10d7e0e2a7dcd0ffa23d966af00b58d084f849df67e873318fb7761a6897892c8d3692797c2fb2dccde1afcc3642dc3c30
|
7
|
+
data.tar.gz: 6b4a213e41f3e90e9a957580248e350c33ce6eae94408663e6a259d2666f2fe0c9839a08860a8155feae8442d19478842b68d6a18b0df2e7c0345930cc9e805f
|
data/bin/jok
CHANGED
@@ -18,7 +18,10 @@ class JokAtWork < Thor
|
|
18
18
|
|
19
19
|
desc "topic [YOUR_TOPIC]", "Pick up a specified topic"
|
20
20
|
def topic(topic)
|
21
|
-
|
21
|
+
list = Jok.feed.method_list
|
22
|
+
topic = "#{topic}_jokes" if list.include? "#{topic}_jokes"
|
23
|
+
|
24
|
+
if list.include? topic
|
22
25
|
puts Jok.send(topic)
|
23
26
|
else
|
24
27
|
puts Jok.da
|
data/lib/jok/joke_factory.rb
CHANGED
data/lib/jok/version.rb
CHANGED