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 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.0")
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 {|arg|
7
- if arg =~ /^(\w+)/
8
- res = Termtter::API::twitter.social($1.strip, :follow)
9
- if res.code == '200'
10
- puts "Followed user @#{$1}"
11
- else
12
- puts "Failed: #{res}"
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 {|arg|
25
- if arg =~ /^(\w+)/
26
- res = Termtter::API::twitter.social($1.strip, :leave)
27
- if res.code == '200'
28
- puts "Leaved user @#{$1}"
29
- else
30
- puts "Failed: #{res}"
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
  },
@@ -1,4 +1,4 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  module Termtter
3
- VERSION = '0.8.11'
3
+ VERSION = '0.8.12'
4
4
  end
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.11
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.0
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