twat 0.4.13 → 0.4.14

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/TODO CHANGED
@@ -28,3 +28,12 @@ end
28
28
  (With handled exceptions contains the logic for yelling at the user for
29
29
  being stupid, etc)
30
30
 
31
+ Allow upload of media files with the tweet via some kind of --attach
32
+ (Has implications for other endpoints because we need that data from the user or to infer it somehow)
33
+
34
+ PENDING
35
+ =======
36
+
37
+ Add some commands to retweet/favourite etc
38
+
39
+ Consider allowing to -f multiple accounts at once
@@ -45,7 +45,7 @@ end
45
45
  module Twat
46
46
  VERSION_MAJOR = 0
47
47
  VERSION_MINOR = 4
48
- VERSION_PATCH = 13
48
+ VERSION_PATCH = 14
49
49
 
50
50
  VERSION = "#{VERSION_MAJOR}.#{VERSION_MINOR}.#{VERSION_PATCH}"
51
51
  class Twat
@@ -100,6 +100,7 @@ module Twat
100
100
  rescue Interrupt
101
101
  break
102
102
  rescue Errno::ECONNRESET
103
+ rescue Errno::ETIMEDOUT
103
104
  if failcount > 2
104
105
  puts "3 consecutive failures, giving up"
105
106
  else
@@ -14,7 +14,6 @@ module Twat
14
14
 
15
15
  def getopts
16
16
  options = Hash.new
17
- options[:action] = :tweet
18
17
  options[:count] = 1
19
18
  @optparser = OptionParser.new do |opts|
20
19
  opts.banner = "Usage: twat <tweet>"
@@ -56,8 +55,8 @@ module Twat
56
55
  options[:action] = :updateconfig
57
56
  end #}}}
58
57
  end
59
-
60
58
  @optparser.parse!
59
+ options[:action] ||= :tweet
61
60
  REQUIRED.each do |req|
62
61
  usage unless options[req]
63
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.13
4
+ version: 0.4.14
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: 2011-10-13 00:00:00.000000000Z
12
+ date: 2011-10-17 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: twitter
16
- requirement: &16359580 !ruby/object:Gem::Requirement
16
+ requirement: &20659360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *16359580
24
+ version_requirements: *20659360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: oauth
27
- requirement: &16359080 !ruby/object:Gem::Requirement
27
+ requirement: &20658720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *16359080
35
+ version_requirements: *20658720
36
36
  description: Command line tool for tweeting and whatnot
37
37
  email:
38
38
  - richo@psych0tik.net