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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzVlM2RlNjcwOWI3OTBhNzNiNjc3ZTBkNWU3ZDRmOGU5ZTA3NzA0ZQ==
4
+ YTdjZWZlMzM0MzI1MTZjMTdiNjcwNzRmMzNmZWE3NWJlODUwZDNjMg==
5
5
  data.tar.gz: !binary |-
6
- ODU0YWE2ZTE0ZGEyYzk2OTEyNTJlMmJiYTc1N2EyM2UzNzNmM2E1ZA==
6
+ MmU0NzcyZWU4MWRhNmUzY2IwZGVmNGRiZDZkNjhlNzk5OWE5M2I0Nw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTBlMzY2ZjZhOTdhNDI0MDY3NTA1NThlMjM3NjhlNDI0MDU4Y2IyNzUzNjY4
10
- N2JhYWI3ZjQ1YWI4ZGFkZGNiOWZmYTU2N2VjOGJmMTRlODdmNzI2ZWQyYzc4
11
- ZWRiODUxMDdmZDVkM2I4OTUwZjM0NDk1MDg4NTJjMzk1YWY4ZDI=
9
+ YmJhYzA4NzBjYmRhY2QxOWE4YzRjZTk3YmY1NWFiYjcwMmE4ZTViYzU0NTky
10
+ YWM5YjZkMWRmYmVmMzEwN2Q2NjE2NDA1YWY1M2JiNTRmNjRjNTVlMWJjNTVm
11
+ Y2JkMzNmYmYzNTZiY2MxMWRiNDFhYmRlNTQwZDkyYWM5NWEzODA=
12
12
  data.tar.gz: !binary |-
13
- M2NjOWNlZmExYjBkMDdhMTM5YThkYmRlMjZjNGI1ZWRhOTk5OTBiMzkxMjRj
14
- MTc4ZGJhOGI0MDQ1NzY5MzY3MTcwZTZmNmZkOTRiMmJjZTcxNGY5OTMwN2Zm
15
- MmJjNzUxYmZhNDVlYmI3NjczZGVkYjcyM2EzMjliNjFhZjkzNzc=
13
+ YzA1NzNlYTc3YTIzZTM4ZGU0NGRjNTBkNGE2MWYzY2RkZjlhNzY0MWNlMWNm
14
+ MWMxMzE0ZmNmNTQzODM0ZWRiZjVmMThkYzdkNTkyMzFkMjFjNTU2YjFkMjQ1
15
+ MTQ4MmUwYmQ4YmY4YmUwOTI4MDExYWJmZGZkNDMwZTlhZjgzOWQ=
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Changelog of knife-twitter
2
+
3
+
4
+ ### v0.1.2
5
+
6
+ - add -f option to timleine(Temporarily).
7
+ - show status_id instead of DateTime.
@@ -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[:created_at].to_s, :magenta)
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
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Twitter
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
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.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-18 00:00:00.000000000 Z
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