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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f129a69132774c91c47e2a2bc9e1dcb64736f66b
4
- data.tar.gz: 596fc000f8ff1d25aef7d22386c1c08b23356652
3
+ metadata.gz: 506794cdbdd798e02f884919cab7222c02636317
4
+ data.tar.gz: 7e4a7464eb59b3cbbf3fd05f4bf52403d864d6ec
5
5
  SHA512:
6
- metadata.gz: 41b54151d9c222dec3f0f81c8f2a64577d8ee4da0fc48849eb186005c9f24ba0316fb6da2db85f6d05c2779b88f25f8e23b9590c745e8d841b311cd36a9f527b
7
- data.tar.gz: 51551a5f46fbcceb752cc7b98059b5d2ea0aa21bec01e44fc8c04cfc42083fbc29fe89dcec68ef6f814f2a585bfa016699790c9e102cff239e1d6acdbe677de8
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
- yaml = YAML.load File.open "#{ENV['HOME']}/.wordbotrc"
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']
@@ -1,3 +1,3 @@
1
1
  module Wordbot
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley