jugyo-termtter 0.8.11 → 0.8.12
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/plugin/follow.rb +18 -14
- data/lib/termtter/version.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.add_dependency("json_pure", ">= 1.1.3")
|
28
28
|
s.add_dependency("configatron", ">= 2.2.2")
|
29
29
|
s.add_dependency("highline", ">= 1.5.0")
|
30
|
-
s.add_dependency("termcolor", ">= 0.3.
|
30
|
+
s.add_dependency("termcolor", ">= 0.3.1")
|
31
31
|
s.authors = %w(jugyo ujihisa)
|
32
32
|
s.email = 'jugyo.org@gmail.com'
|
33
33
|
s.homepage = 'http://wiki.github.com/jugyo/termtter'
|
data/lib/plugin/follow.rb
CHANGED
@@ -3,13 +3,15 @@
|
|
3
3
|
module Termtter::Client
|
4
4
|
register_command(
|
5
5
|
:name => :follow, :aliases => [],
|
6
|
-
:exec_proc => lambda {|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
:exec_proc => lambda {|args|
|
7
|
+
args.split(' ').each do |arg|
|
8
|
+
if arg =~ /^(\w+)/
|
9
|
+
res = Termtter::API::twitter.social($1.strip, :follow)
|
10
|
+
if res.code == '200'
|
11
|
+
puts "Followed user @#{$1}"
|
12
|
+
else
|
13
|
+
puts "Failed: #{res}"
|
14
|
+
end
|
13
15
|
end
|
14
16
|
end
|
15
17
|
},
|
@@ -21,13 +23,15 @@ module Termtter::Client
|
|
21
23
|
|
22
24
|
register_command(
|
23
25
|
:name => :leave, :aliases => [],
|
24
|
-
:exec_proc => lambda {|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
:exec_proc => lambda {|args|
|
27
|
+
args.split(' ').each do |arg|
|
28
|
+
if arg =~ /^(\w+)/
|
29
|
+
res = Termtter::API::twitter.social($1.strip, :leave)
|
30
|
+
if res.code == '200'
|
31
|
+
puts "Leaved user @#{$1}"
|
32
|
+
else
|
33
|
+
puts "Failed: #{res}"
|
34
|
+
end
|
31
35
|
end
|
32
36
|
end
|
33
37
|
},
|
data/lib/termtter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jugyo-termtter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jugyo
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.3.
|
54
|
+
version: 0.3.1
|
55
55
|
version:
|
56
56
|
description: Termtter is a terminal based Twitter client
|
57
57
|
email: jugyo.org@gmail.com
|