knife-twitter 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +7 -0
- data/lib/chef/knife/twitter.rb +6 -0
- data/lib/chef/knife/twitter_timeline.rb +9 -1
- data/lib/knife-twitter.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTdjZWZlMzM0MzI1MTZjMTdiNjcwNzRmMzNmZWE3NWJlODUwZDNjMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmU0NzcyZWU4MWRhNmUzY2IwZGVmNGRiZDZkNjhlNzk5OWE5M2I0Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmJhYzA4NzBjYmRhY2QxOWE4YzRjZTk3YmY1NWFiYjcwMmE4ZTViYzU0NTky
|
10
|
+
YWM5YjZkMWRmYmVmMzEwN2Q2NjE2NDA1YWY1M2JiNTRmNjRjNTVlMWJjNTVm
|
11
|
+
Y2JkMzNmYmYzNTZiY2MxMWRiNDFhYmRlNTQwZDkyYWM5NWEzODA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzA1NzNlYTc3YTIzZTM4ZGU0NGRjNTBkNGE2MWYzY2RkZjlhNzY0MWNlMWNm
|
14
|
+
MWMxMzE0ZmNmNTQzODM0ZWRiZjVmMThkYzdkNTkyMzFkMjFjNTU2YjFkMjQ1
|
15
|
+
MTQ4MmUwYmQ4YmY4YmUwOTI4MDExYWJmZGZkNDMwZTlhZjgzOWQ=
|
data/CHANGELOG.md
ADDED
data/lib/chef/knife/twitter.rb
CHANGED
@@ -35,6 +35,12 @@ class Chef
|
|
35
35
|
:description => "Your Twitter OAuth Token Secret",
|
36
36
|
:proc => Proc.new { |key| Chef::Config[:knife][:twitter_oauth_token_secret] = key }
|
37
37
|
|
38
|
+
option :twitter_user_name,
|
39
|
+
:short => "-u USER_NAME",
|
40
|
+
:long => "--twitter_user_name",
|
41
|
+
:description => "Your Twitter User Name",
|
42
|
+
:proc => Proc.new { |key| Chef::Config[:knife][:twitter_user] = key }
|
43
|
+
|
38
44
|
end
|
39
45
|
end
|
40
46
|
|
@@ -13,12 +13,20 @@ class Chef
|
|
13
13
|
:description => "enable mentions",
|
14
14
|
:default => false
|
15
15
|
|
16
|
+
option :twitter_favorite,
|
17
|
+
:short => "-f",
|
18
|
+
:long => "--twitter_favorite",
|
19
|
+
:description => "show favorite",
|
20
|
+
:default => false
|
21
|
+
|
16
22
|
banner "knife twitter tl (options)"
|
17
23
|
def run
|
18
24
|
t_configure
|
19
25
|
begin
|
20
26
|
if locate_config_value(:twitter_mentions)
|
21
27
|
timeline = Twitter.mentions_timeline
|
28
|
+
elsif locate_config_value(:twitter_favorite)
|
29
|
+
timeline = Twitter.favorites(Twitter.user[:name])
|
22
30
|
else
|
23
31
|
timeline = Twitter.home_timeline
|
24
32
|
end
|
@@ -31,7 +39,7 @@ class Chef
|
|
31
39
|
tl_list = []
|
32
40
|
timeline.map do |tl|
|
33
41
|
tl_list << ui.color(tl[:user][:screen_name], :cyan)
|
34
|
-
tl_list << ui.color(tl[:
|
42
|
+
tl_list << ui.color(tl[:id].to_s, :magenta)
|
35
43
|
tl_list << ui.color(tl[:text])
|
36
44
|
end
|
37
45
|
|
data/lib/knife-twitter.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-twitter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sawanoboly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|
@@ -75,6 +75,7 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- .chef/knife.rb.sample
|
77
77
|
- .gitignore
|
78
|
+
- CHANGELOG.md
|
78
79
|
- Gemfile
|
79
80
|
- LICENSE.txt
|
80
81
|
- README.md
|