twat 0.4.7 → 0.4.8
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/lib/twat.rb +1 -1
- data/lib/twat/actions.rb +3 -6
- data/lib/twat/argparse.rb +1 -1
- metadata +6 -6
data/lib/twat.rb
CHANGED
data/lib/twat/actions.rb
CHANGED
@@ -59,10 +59,8 @@ module Twat
|
|
59
59
|
|
60
60
|
def show
|
61
61
|
twitter_auth
|
62
|
-
Twitter.home_timeline.
|
62
|
+
Twitter.home_timeline(:count => opts[:count]).each do |tweet|
|
63
63
|
format(tweet)
|
64
|
-
|
65
|
-
break if idx == opts[:count]
|
66
64
|
end
|
67
65
|
end
|
68
66
|
|
@@ -109,9 +107,8 @@ module Twat
|
|
109
107
|
twitter_auth
|
110
108
|
|
111
109
|
begin
|
112
|
-
Twitter.user_timeline(opts[:user]).
|
113
|
-
|
114
|
-
break if idx == opts[:count]
|
110
|
+
Twitter.user_timeline(opts[:user], :count => opts[:count]).each do |tweet|
|
111
|
+
format(tweet)
|
115
112
|
end
|
116
113
|
rescue Twitter::NotFound
|
117
114
|
puts "#{opts[:user].bold.red} doesn't appear to be a valid user"
|
data/lib/twat/argparse.rb
CHANGED
@@ -36,7 +36,7 @@ module Twat
|
|
36
36
|
end #}}}
|
37
37
|
opts.on('-l', '--list [COUNT]', 'Display [count] tweets from your newsfeed') do |count| #{{{ --list ACCOUNT
|
38
38
|
options[:count] = count || 10
|
39
|
-
options[:action]
|
39
|
+
options[:action] ||= :show
|
40
40
|
end #}}}
|
41
41
|
opts.on('-f', '--follow', 'Display tweets from your newsfeed indefinitely') do #{{{ --follow
|
42
42
|
options[:action] = :follow
|
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.8
|
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-08 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: twitter
|
16
|
-
requirement: &
|
16
|
+
requirement: &14639040 !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: *14639040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: oauth
|
27
|
-
requirement: &
|
27
|
+
requirement: &14638480 !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: *14638480
|
36
36
|
description: Command line tool for tweeting and whatnot
|
37
37
|
email:
|
38
38
|
- richo@psych0tik.net
|