twat 0.4.13 → 0.4.14
Sign up to get free protection for your applications and to get access to all the features.
- data/TODO +9 -0
- data/lib/twat.rb +1 -1
- data/lib/twat/actions.rb +1 -0
- data/lib/twat/argparse.rb +1 -2
- metadata +6 -6
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
|
data/lib/twat.rb
CHANGED
data/lib/twat/actions.rb
CHANGED
data/lib/twat/argparse.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2011-10-17 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: twitter
|
16
|
-
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: *
|
24
|
+
version_requirements: *20659360
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: oauth
|
27
|
-
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: *
|
35
|
+
version_requirements: *20658720
|
36
36
|
description: Command line tool for tweeting and whatnot
|
37
37
|
email:
|
38
38
|
- richo@psych0tik.net
|