wordbot 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wordbot/cli/mutilator.rb +7 -1
- data/lib/wordbot/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: 506794cdbdd798e02f884919cab7222c02636317
|
4
|
+
data.tar.gz: 7e4a7464eb59b3cbbf3fd05f4bf52403d864d6ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab6a578dbc9cbd7fbb8eda1b5e15b0cb1b335f281774c7b8032831bf86cb54d2bd199ea9951f28cc3cc117323db4070c0bb0561e35bb38741463e4da1623ab38
|
7
|
+
data.tar.gz: 1b2be3d87a394f6e808bb91fe99e0d951fc053f6949545cd43b16e0868b2f977838926ca26d93082994aeb59b9b69beac50cb2a0d23fcccb8692744ffacafbd5
|
@@ -17,7 +17,13 @@ module Wordbot
|
|
17
17
|
|
18
18
|
desc 'tweet', 'Tweet the mutilated text'
|
19
19
|
def tweet *words
|
20
|
-
|
20
|
+
begin
|
21
|
+
yaml = YAML.load File.open "#{ENV['HOME']}/.wordbotrc"
|
22
|
+
rescue Errno::ENOENT
|
23
|
+
puts "Config file #{ENV['HOME']}/.wordbotrc not found"
|
24
|
+
exit 1
|
25
|
+
end
|
26
|
+
|
21
27
|
client = Twitter::REST::Client.new do |config|
|
22
28
|
config.consumer_key = yaml['twitter']['consumer']['key']
|
23
29
|
config.consumer_secret = yaml['twitter']['consumer']['secret']
|
data/lib/wordbot/version.rb
CHANGED