termtter 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/Gemfile +13 -0
- data/Rakefile +18 -41
- data/lib/plugins/another_prompt.rb +1 -0
- data/lib/plugins/channel.rb +3 -2
- data/lib/plugins/defaults/expand_tco_url.rb +19 -0
- data/lib/plugins/defaults/list.rb +1 -0
- data/lib/plugins/defaults/retweet.rb +3 -3
- data/lib/plugins/defaults/standard_commands.rb +3 -2
- data/lib/plugins/foo.rb +16 -0
- data/lib/plugins/googl.rb +17 -0
- data/lib/plugins/line.rb +1 -0
- data/lib/plugins/list_with_opts.rb +1 -1
- data/lib/plugins/nyancat.rb +14 -0
- data/lib/plugins/scrape.rb +1 -1
- data/lib/plugins/tinyurl.rb +2 -2
- data/lib/plugins/toppo.rb +11 -0
- data/lib/termtter/version.rb +5 -0
- data/lib/termtter.rb +1 -1
- data/termtter.gemspec +10 -284
- metadata +156 -60
- data/VERSION +0 -1
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
CHANGED
@@ -1,52 +1,29 @@
|
|
1
|
+
# -*- mode: ruby; coding: utf-8 -*-
|
1
2
|
require 'rubygems'
|
3
|
+
require 'bundler'
|
4
|
+
|
2
5
|
require 'rake'
|
6
|
+
require 'rake/clean'
|
7
|
+
require 'rake/gempackagetask'
|
8
|
+
require 'rdoc/task'
|
9
|
+
|
10
|
+
Bundler::GemHelper.install_tasks
|
3
11
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
gem.summary = "Terminal based Twitter client."
|
9
|
-
gem.description = "Termtter is a terminal based Twitter client."
|
10
|
-
gem.executables = ["termtter"]
|
11
|
-
gem.add_dependency("json", ">= 1.1.3")
|
12
|
-
gem.add_dependency("highline", ">= 1.5.0")
|
13
|
-
gem.add_dependency("termcolor", ">= 1.0.0")
|
14
|
-
gem.add_dependency("rubytter", ">= 1.4.0")
|
15
|
-
gem.add_dependency("notify", ">= 0.2.1")
|
16
|
-
gem.authors = %w(jugyo ujihisa)
|
17
|
-
gem.email = 'jugyo.org@gmail.com'
|
18
|
-
gem.homepage = 'http://termtter.org/'
|
19
|
-
gem.rubyforge_project = 'termtter'
|
20
|
-
gem.has_rdoc = true
|
21
|
-
gem.rdoc_options = ["--main", "README.rdoc", "--exclude", "spec"]
|
22
|
-
gem.extra_rdoc_files = ["README.rdoc", "ChangeLog"]
|
23
|
-
end
|
24
|
-
rescue LoadError
|
25
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
12
|
+
require 'rspec/core/rake_task'
|
13
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
14
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
15
|
+
spec.rcov = true
|
26
16
|
end
|
27
17
|
|
28
|
-
|
29
|
-
# Spec::Rake::SpecTask.new(:spec) do |spec|
|
30
|
-
# spec.libs << 'lib' << 'spec'
|
31
|
-
# spec.spec_files = FileList['spec/**/*_spec.rb']
|
32
|
-
# end
|
33
|
-
#
|
34
|
-
# Spec::Rake::SpecTask.new(:rcov) do |spec|
|
35
|
-
# spec.libs << 'lib' << 'spec'
|
36
|
-
# spec.pattern = 'spec/**/*_spec.rb'
|
37
|
-
# spec.rcov = true
|
38
|
-
# end
|
39
|
-
#
|
40
|
-
# task :spec => :check_dependencies
|
41
|
-
#
|
42
|
-
# task :default => :spec
|
18
|
+
task :spec => :check_dependencies
|
43
19
|
|
44
|
-
|
45
|
-
Rake::RDocTask.new do |rdoc|
|
46
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
20
|
+
task :default => :spec
|
47
21
|
|
22
|
+
desc 'Generate documentation for the termtter.'
|
23
|
+
RDoc::Task.new do |rdoc|
|
48
24
|
rdoc.rdoc_dir = 'rdoc'
|
49
|
-
rdoc.title = "
|
25
|
+
rdoc.title = "Termtter"
|
26
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
50
27
|
rdoc.rdoc_files.include('README*')
|
51
28
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
52
29
|
end
|
data/lib/plugins/channel.rb
CHANGED
@@ -130,8 +130,9 @@ config.plugins.channel.auto_reload_channels.each do |c, i|
|
|
130
130
|
begin
|
131
131
|
if c != now_channel
|
132
132
|
# NOTE: Please edit here as well if reload command in lib/plugins/default/standard_commands.rb was edited.
|
133
|
-
args =
|
134
|
-
|
133
|
+
args = {:include_entities => 1}
|
134
|
+
args[since_id] = since_ids[c] if since_ids[c]
|
135
|
+
statuses = Termtter::API.call_by_channel(c, args)
|
135
136
|
unless statuses.empty?
|
136
137
|
since_ids[c] = statuses[0].id
|
137
138
|
Termtter::Client.output(statuses, Termtter::Event.new(:"update_#{c}", :type => :channel, :channel => c))
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Termtter::Client
|
2
|
+
register_hook(
|
3
|
+
:name => :expand_tco_url,
|
4
|
+
:point => :filter_for_output,
|
5
|
+
:exec_proc => lambda do |statuses, event|
|
6
|
+
statuses.each do |s|
|
7
|
+
expand_tco_urls!(s.text, s.entities[:urls]) if s.entities
|
8
|
+
end
|
9
|
+
statuses
|
10
|
+
end
|
11
|
+
)
|
12
|
+
|
13
|
+
def self.expand_tco_urls!(text, urls)
|
14
|
+
urls.sort {|a, b| b[:indices][0] <=> a[:indices][0] }.each do |u|
|
15
|
+
next unless u[:expanded_url]
|
16
|
+
text[u[:indices][0]...u[:indices][1]] = u[:expanded_url]
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -74,7 +74,7 @@ module Termtter::Client
|
|
74
74
|
:name => :retweeted_by_me,
|
75
75
|
:help => ['retweeted_by_me', 'Show retweets posted by you.'],
|
76
76
|
:exec => lambda {|arg|
|
77
|
-
statuses = Termtter::API.twitter.retweeted_by_me
|
77
|
+
statuses = Termtter::API.twitter.retweeted_by_me(:include_entities => 1)
|
78
78
|
output(statuses, :retweeted_by_me)
|
79
79
|
}
|
80
80
|
)
|
@@ -83,7 +83,7 @@ module Termtter::Client
|
|
83
83
|
:name => :retweeted_to_me,
|
84
84
|
:help => ['retweeted_to_me', 'Show retweets posted by friends.'],
|
85
85
|
:exec => lambda {|arg|
|
86
|
-
statuses = Termtter::API.twitter.retweeted_to_me
|
86
|
+
statuses = Termtter::API.twitter.retweeted_to_me(:include_entities => 1)
|
87
87
|
output(statuses, :retweeted_to_me)
|
88
88
|
}
|
89
89
|
)
|
@@ -93,7 +93,7 @@ module Termtter::Client
|
|
93
93
|
:help => ['retweets_of_me',
|
94
94
|
'Show tweets of you that have been retweeted by others.'],
|
95
95
|
:exec => lambda {|arg|
|
96
|
-
statuses = Termtter::API.twitter.retweets_of_me
|
96
|
+
statuses = Termtter::API.twitter.retweets_of_me(:include_entities => 1)
|
97
97
|
output(statuses, :retweets_of_me)
|
98
98
|
}
|
99
99
|
)
|
@@ -17,8 +17,9 @@ module Termtter::Client
|
|
17
17
|
:name => :reload,
|
18
18
|
:exec => lambda {|arg|
|
19
19
|
# NOTE: If edit this command, please check and edit lib/plugins/channel.rb too, please.
|
20
|
-
args =
|
21
|
-
|
20
|
+
args = {:include_entities => 1}
|
21
|
+
args[:since_id] = @since_id if @since_id
|
22
|
+
statuses = Termtter::API.twitter.home_timeline(args)
|
22
23
|
unless statuses.empty?
|
23
24
|
Termtter::Client.clear_line
|
24
25
|
@since_id = statuses[0].id
|
data/lib/plugins/foo.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
module Termtter::Client
|
4
|
+
|
5
|
+
register_command(:foo, :help => ['foo', 'Say foo']) do |args|
|
6
|
+
Termtter::API.twitter.update('foo')
|
7
|
+
puts "=> foo"
|
8
|
+
end
|
9
|
+
|
10
|
+
register_hook(:foo, :point => :filter_for_output) do |statuses, event|
|
11
|
+
statuses.each do |s|
|
12
|
+
s.text.replace('foo')
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'googl'
|
3
|
+
|
4
|
+
Termtter::Client.register_hook(
|
5
|
+
:name => :googlURL,
|
6
|
+
:points => [:modify_arg_for_update, :modify_arg_for_reply],
|
7
|
+
:exec => lambda do |cmd, arg|
|
8
|
+
|
9
|
+
if( arg =~ /(http[s]?:\/\/.) / )
|
10
|
+
url = $1
|
11
|
+
client = Googl.client('email@account','password')
|
12
|
+
arg.gsub(/(http[s]?:\/\/.) /,client.shorten(url).short_url+' ')
|
13
|
+
else
|
14
|
+
arg
|
15
|
+
end
|
16
|
+
end
|
17
|
+
)
|
data/lib/plugins/line.rb
CHANGED
@@ -3,6 +3,7 @@ Termtter::Client.register_command(
|
|
3
3
|
:help => 'Draws a line without any side effect on Twitter.',
|
4
4
|
#:aliases => [:l],
|
5
5
|
:exec_proc => lambda {|arg|
|
6
|
+
return if RUBY_PLATFORM.downcase =~ /mswin(?!ce)|mingw|bccwin/
|
6
7
|
window_width = (ENV['COLUMNS'] || `stty size`[/\d+\s+(\d+)/, 1]).to_i
|
7
8
|
text = '<dark>' + (' ' * window_width) + '</dark>'
|
8
9
|
puts TermColor.parse(text)
|
@@ -4,7 +4,7 @@ module Termtter::Client
|
|
4
4
|
:name => :list, :aliases => [:l],
|
5
5
|
:exec_proc => lambda {|arg|
|
6
6
|
_, options, user = */((?:\-[a-z][= ]\S+\s*)+)?(?:@?(\w+))?/.match(arg)
|
7
|
-
params = {}
|
7
|
+
params = {:include_entities => 1}
|
8
8
|
options.scan(/(\-[a-z])[= ](\S+)/).each do |k,v|
|
9
9
|
v = v.sub(/^['"]/,'').sub(/['"]$/,'')
|
10
10
|
case k
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
module Termtter::Client
|
3
|
+
register_command(:nyancat, :help => ['nyancat', '♡']) do |msg|
|
4
|
+
unless system('nyancat')
|
5
|
+
warn <<-EOS.gsub(/ {8}/, '')
|
6
|
+
Oh, You don't have nyancat yet. Please install it:
|
7
|
+
|
8
|
+
$ gem install nyancat
|
9
|
+
|
10
|
+
EOS
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
data/lib/plugins/scrape.rb
CHANGED
@@ -6,7 +6,7 @@ module Termtter::Client
|
|
6
6
|
statuses = []
|
7
7
|
members.each_with_index do |member, index|
|
8
8
|
puts "member #{index+1}/#{members.size} #{member}"
|
9
|
-
statuses += Termtter::API.twitter.user_timeline(member)
|
9
|
+
statuses += Termtter::API.twitter.user_timeline(member, :include_entities => 1)
|
10
10
|
end
|
11
11
|
statuses
|
12
12
|
end
|
data/lib/plugins/tinyurl.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
config.plugins.tinyurl.set_default(:shorturl_makers, [
|
4
4
|
{ :host => "api.bit.ly",
|
5
|
-
:format => '/shorten?
|
5
|
+
:format => '/v3/shorten?login=termtter&apiKey=R_e7f22d523a803dbff7f67de18c109856&longUrl=%s&format=txt' },
|
6
6
|
{ :host => "is.gd", :format => '/api.php?longurl=%s' },
|
7
7
|
{ :host => "tinyurl.com", :format => '/api-create.php?url=%s' },
|
8
8
|
])
|
@@ -55,7 +55,7 @@ module Termtter::Client
|
|
55
55
|
end
|
56
56
|
if res.code == '200'
|
57
57
|
result = res.body
|
58
|
-
if /"
|
58
|
+
if /"(http.*?)"/ =~ result
|
59
59
|
result = $1
|
60
60
|
elsif /"statusCode": "ERROR"/ =~ result
|
61
61
|
return nil
|
data/lib/termtter.rb
CHANGED
@@ -20,9 +20,9 @@ require 'timeout'
|
|
20
20
|
require 'oauth'
|
21
21
|
|
22
22
|
module Termtter
|
23
|
-
VERSION = File.read(File.join(File.dirname(__FILE__), '../VERSION')).strip
|
24
23
|
APP_NAME = 'termtter'
|
25
24
|
|
25
|
+
require 'termtter/version'
|
26
26
|
require 'termtter/config'
|
27
27
|
require 'termtter/crypt'
|
28
28
|
require 'termtter/default_config'
|
data/termtter.gemspec
CHANGED
@@ -1,15 +1,12 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# -*- encoding: utf-8; mode: ruby -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require 'termtter/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version =
|
6
|
+
s.name = "termtter"
|
7
|
+
s.version = Termtter::VERSION
|
9
8
|
|
10
|
-
s.
|
11
|
-
s.authors = ["jugyo", "ujihisa"]
|
12
|
-
s.date = %q{2011-09-01}
|
9
|
+
s.authors = ["jugyo", "ujihisa", "koichiroo"]
|
13
10
|
s.default_executable = %q{termtter}
|
14
11
|
s.description = %q{Termtter is a terminal based Twitter client.}
|
15
12
|
s.email = %q{jugyo.org@gmail.com}
|
@@ -18,280 +15,7 @@ Gem::Specification.new do |s|
|
|
18
15
|
"ChangeLog",
|
19
16
|
"README.rdoc"
|
20
17
|
]
|
21
|
-
|
22
|
-
"ChangeLog",
|
23
|
-
"README.rdoc",
|
24
|
-
"Rakefile",
|
25
|
-
"VERSION",
|
26
|
-
"bin/termtter",
|
27
|
-
"bin/termtter_frame",
|
28
|
-
"doc/Termtter-1.0-Release-Note-English.txt",
|
29
|
-
"doc/Termtter-1.0-Release-Note.txt",
|
30
|
-
"lib/plugins/aa.rb",
|
31
|
-
"lib/plugins/addspace.rb",
|
32
|
-
"lib/plugins/another_prompt.rb",
|
33
|
-
"lib/plugins/appendtitle.rb",
|
34
|
-
"lib/plugins/april_fool.rb",
|
35
|
-
"lib/plugins/ar.rb",
|
36
|
-
"lib/plugins/async.rb",
|
37
|
-
"lib/plugins/babelfish.rb",
|
38
|
-
"lib/plugins/basic.rb",
|
39
|
-
"lib/plugins/bomb.rb",
|
40
|
-
"lib/plugins/capital_update.rb",
|
41
|
-
"lib/plugins/capture.rb",
|
42
|
-
"lib/plugins/channel.rb",
|
43
|
-
"lib/plugins/clear.rb",
|
44
|
-
"lib/plugins/clock.rb",
|
45
|
-
"lib/plugins/command_plus.rb",
|
46
|
-
"lib/plugins/confirm.rb",
|
47
|
-
"lib/plugins/cool.rb",
|
48
|
-
"lib/plugins/copy.rb",
|
49
|
-
"lib/plugins/countter.rb",
|
50
|
-
"lib/plugins/crypt.rb",
|
51
|
-
"lib/plugins/curry.rb",
|
52
|
-
"lib/plugins/db.rb",
|
53
|
-
"lib/plugins/defaults.rb",
|
54
|
-
"lib/plugins/defaults/alias.rb",
|
55
|
-
"lib/plugins/defaults/auto_reload.rb",
|
56
|
-
"lib/plugins/defaults/cache.rb",
|
57
|
-
"lib/plugins/defaults/command_line.rb",
|
58
|
-
"lib/plugins/defaults/confirm.rb",
|
59
|
-
"lib/plugins/defaults/eval.rb",
|
60
|
-
"lib/plugins/defaults/exec.rb",
|
61
|
-
"lib/plugins/defaults/fib.rb",
|
62
|
-
"lib/plugins/defaults/hashtag.rb",
|
63
|
-
"lib/plugins/defaults/irb.rb",
|
64
|
-
"lib/plugins/defaults/keyword.rb",
|
65
|
-
"lib/plugins/defaults/list.rb",
|
66
|
-
"lib/plugins/defaults/plugin.rb",
|
67
|
-
"lib/plugins/defaults/retweet.rb",
|
68
|
-
"lib/plugins/defaults/standard_commands.rb",
|
69
|
-
"lib/plugins/defaults/standard_completion.rb",
|
70
|
-
"lib/plugins/defaults/stdout.rb",
|
71
|
-
"lib/plugins/defaults/switch.rb",
|
72
|
-
"lib/plugins/defaults/system.rb",
|
73
|
-
"lib/plugins/defaults/user.rb",
|
74
|
-
"lib/plugins/draft.rb",
|
75
|
-
"lib/plugins/dupu.rb",
|
76
|
-
"lib/plugins/easy_post.rb",
|
77
|
-
"lib/plugins/eject.rb",
|
78
|
-
"lib/plugins/en2ja.rb",
|
79
|
-
"lib/plugins/encoding.rb",
|
80
|
-
"lib/plugins/english.rb",
|
81
|
-
"lib/plugins/erase.rb",
|
82
|
-
"lib/plugins/erb.rb",
|
83
|
-
"lib/plugins/error_log.rb",
|
84
|
-
"lib/plugins/event_invoked_at.rb",
|
85
|
-
"lib/plugins/exec_and_update.rb",
|
86
|
-
"lib/plugins/expand-tinyurl.rb",
|
87
|
-
"lib/plugins/favotter.rb",
|
88
|
-
"lib/plugins/fib_filter.rb",
|
89
|
-
"lib/plugins/fibyou.rb",
|
90
|
-
"lib/plugins/filter.rb",
|
91
|
-
"lib/plugins/footer.rb",
|
92
|
-
"lib/plugins/friends.rb",
|
93
|
-
"lib/plugins/g.rb",
|
94
|
-
"lib/plugins/gem_install.rb",
|
95
|
-
"lib/plugins/geo.rb",
|
96
|
-
"lib/plugins/gist.rb",
|
97
|
-
"lib/plugins/github-issues.rb",
|
98
|
-
"lib/plugins/graduatter.rb",
|
99
|
-
"lib/plugins/grass.rb",
|
100
|
-
"lib/plugins/group.rb",
|
101
|
-
"lib/plugins/growl.rb",
|
102
|
-
"lib/plugins/growl2.rb",
|
103
|
-
"lib/plugins/gsub.rb",
|
104
|
-
"lib/plugins/gyazo.rb",
|
105
|
-
"lib/plugins/haml.rb",
|
106
|
-
"lib/plugins/hatebu.rb",
|
107
|
-
"lib/plugins/hatebu_and_update.rb",
|
108
|
-
"lib/plugins/hatena_keyword_haiku.rb",
|
109
|
-
"lib/plugins/hi.rb",
|
110
|
-
"lib/plugins/history.rb",
|
111
|
-
"lib/plugins/http_server.rb",
|
112
|
-
"lib/plugins/http_server/favicon.ico",
|
113
|
-
"lib/plugins/http_server/skin/default/index.html",
|
114
|
-
"lib/plugins/http_server/skin/miku/cui/chara/miku/images/001.png",
|
115
|
-
"lib/plugins/http_server/skin/miku/cui/chara/miku/images/002.png",
|
116
|
-
"lib/plugins/http_server/skin/miku/cui/chara/miku/images/003.png",
|
117
|
-
"lib/plugins/http_server/skin/miku/cui/chara/miku/images/004.png",
|
118
|
-
"lib/plugins/http_server/skin/miku/cui/chara/miku/script.js",
|
119
|
-
"lib/plugins/http_server/skin/miku/cui/core.js",
|
120
|
-
"lib/plugins/http_server/skin/miku/cui/util.js",
|
121
|
-
"lib/plugins/http_server/skin/miku/index.html",
|
122
|
-
"lib/plugins/http_server/skin/miku/jquery-1.4.2.min.js",
|
123
|
-
"lib/plugins/http_server/skin/sample1/index.html",
|
124
|
-
"lib/plugins/hugeurl.rb",
|
125
|
-
"lib/plugins/ignore.rb",
|
126
|
-
"lib/plugins/im_kayac.rb",
|
127
|
-
"lib/plugins/irc_gw.rb",
|
128
|
-
"lib/plugins/itunes.rb",
|
129
|
-
"lib/plugins/jakigan.rb",
|
130
|
-
"lib/plugins/keyword.rb",
|
131
|
-
"lib/plugins/l2.rb",
|
132
|
-
"lib/plugins/line.rb",
|
133
|
-
"lib/plugins/linefeed.rb",
|
134
|
-
"lib/plugins/list_switch.rb",
|
135
|
-
"lib/plugins/list_with_opts.rb",
|
136
|
-
"lib/plugins/log.rb",
|
137
|
-
"lib/plugins/mark.rb",
|
138
|
-
"lib/plugins/md5pass.rb",
|
139
|
-
"lib/plugins/me.rb",
|
140
|
-
"lib/plugins/mecab.rb",
|
141
|
-
"lib/plugins/modify_arg_hook_sample.rb",
|
142
|
-
"lib/plugins/mongo.rb",
|
143
|
-
"lib/plugins/msagent.rb",
|
144
|
-
"lib/plugins/mudan_kinshi.rb",
|
145
|
-
"lib/plugins/multi_output.rb",
|
146
|
-
"lib/plugins/multi_post.rb",
|
147
|
-
"lib/plugins/multi_reply.rb",
|
148
|
-
"lib/plugins/ndkn.rb",
|
149
|
-
"lib/plugins/nop.rb",
|
150
|
-
"lib/plugins/notify-send.rb",
|
151
|
-
"lib/plugins/notify-send2.rb",
|
152
|
-
"lib/plugins/notify-send3.rb",
|
153
|
-
"lib/plugins/nuance.rb",
|
154
|
-
"lib/plugins/open.rb",
|
155
|
-
"lib/plugins/open_url.rb",
|
156
|
-
"lib/plugins/other_user.rb",
|
157
|
-
"lib/plugins/otsune.rb",
|
158
|
-
"lib/plugins/outputz.rb",
|
159
|
-
"lib/plugins/paranoid.rb",
|
160
|
-
"lib/plugins/pool.rb",
|
161
|
-
"lib/plugins/post_exec_hook_sample.rb",
|
162
|
-
"lib/plugins/pre_exec_hook_sample.rb",
|
163
|
-
"lib/plugins/primes.rb",
|
164
|
-
"lib/plugins/protected_filter.rb",
|
165
|
-
"lib/plugins/quick_exit.rb",
|
166
|
-
"lib/plugins/quicklook.rb",
|
167
|
-
"lib/plugins/quote.rb",
|
168
|
-
"lib/plugins/random.rb",
|
169
|
-
"lib/plugins/reblog.rb",
|
170
|
-
"lib/plugins/reduce_text.rb",
|
171
|
-
"lib/plugins/reload.rb",
|
172
|
-
"lib/plugins/replace.rb",
|
173
|
-
"lib/plugins/reply.rb",
|
174
|
-
"lib/plugins/reply_retweet.rb",
|
175
|
-
"lib/plugins/reply_sound.rb",
|
176
|
-
"lib/plugins/reverse.rb",
|
177
|
-
"lib/plugins/ruby-v.rb",
|
178
|
-
"lib/plugins/say.rb",
|
179
|
-
"lib/plugins/saykanji.rb",
|
180
|
-
"lib/plugins/scrape.rb",
|
181
|
-
"lib/plugins/screen-notify.rb",
|
182
|
-
"lib/plugins/screen.rb",
|
183
|
-
"lib/plugins/search_url.rb",
|
184
|
-
"lib/plugins/searchline.rb",
|
185
|
-
"lib/plugins/shell.rb",
|
186
|
-
"lib/plugins/short_logger.rb",
|
187
|
-
"lib/plugins/sl.rb",
|
188
|
-
"lib/plugins/source.rb",
|
189
|
-
"lib/plugins/spam.rb",
|
190
|
-
"lib/plugins/storage.rb",
|
191
|
-
"lib/plugins/storage/sqlite3.rb",
|
192
|
-
"lib/plugins/storage/status.rb",
|
193
|
-
"lib/plugins/storage/status_mook.rb",
|
194
|
-
"lib/plugins/story.rb",
|
195
|
-
"lib/plugins/stream.rb",
|
196
|
-
"lib/plugins/suspend.rb",
|
197
|
-
"lib/plugins/switch_user.rb",
|
198
|
-
"lib/plugins/system_status.rb",
|
199
|
-
"lib/plugins/time_signal.rb",
|
200
|
-
"lib/plugins/timer.rb",
|
201
|
-
"lib/plugins/tinyurl.rb",
|
202
|
-
"lib/plugins/train.rb",
|
203
|
-
"lib/plugins/translate_tweet.rb",
|
204
|
-
"lib/plugins/translation.rb",
|
205
|
-
"lib/plugins/trends.rb",
|
206
|
-
"lib/plugins/truncate.rb",
|
207
|
-
"lib/plugins/twitpic.rb",
|
208
|
-
"lib/plugins/typable_id.rb",
|
209
|
-
"lib/plugins/update_editor.rb",
|
210
|
-
"lib/plugins/uri-open.rb",
|
211
|
-
"lib/plugins/url.rb",
|
212
|
-
"lib/plugins/user_stream.rb",
|
213
|
-
"lib/plugins/w3mimg.rb",
|
214
|
-
"lib/plugins/wassr.rb",
|
215
|
-
"lib/plugins/wassr_post.rb",
|
216
|
-
"lib/plugins/web.rb",
|
217
|
-
"lib/plugins/whale.rb",
|
218
|
-
"lib/plugins/whois.rb",
|
219
|
-
"lib/plugins/yhara.rb",
|
220
|
-
"lib/plugins/yhara_filter.rb",
|
221
|
-
"lib/plugins/yonda.rb",
|
222
|
-
"lib/termtter.rb",
|
223
|
-
"lib/termtter/active_rubytter.rb",
|
224
|
-
"lib/termtter/api.rb",
|
225
|
-
"lib/termtter/client.rb",
|
226
|
-
"lib/termtter/command.rb",
|
227
|
-
"lib/termtter/config.rb",
|
228
|
-
"lib/termtter/config_setup.rb",
|
229
|
-
"lib/termtter/config_template.erb",
|
230
|
-
"lib/termtter/crypt.rb",
|
231
|
-
"lib/termtter/default_config.rb",
|
232
|
-
"lib/termtter/event.rb",
|
233
|
-
"lib/termtter/hook.rb",
|
234
|
-
"lib/termtter/hookable.rb",
|
235
|
-
"lib/termtter/httppool.rb",
|
236
|
-
"lib/termtter/memory_cache.rb",
|
237
|
-
"lib/termtter/optparse.rb",
|
238
|
-
"lib/termtter/rubytter_proxy.rb",
|
239
|
-
"lib/termtter/system_extensions.rb",
|
240
|
-
"lib/termtter/system_extensions/core_compatibles.rb",
|
241
|
-
"lib/termtter/system_extensions/termtter_compatibles.rb",
|
242
|
-
"lib/termtter/system_extensions/windows.rb",
|
243
|
-
"lib/termtter/task.rb",
|
244
|
-
"lib/termtter/task_manager.rb",
|
245
|
-
"spec/plugins/capital_update_spec.rb",
|
246
|
-
"spec/plugins/cool_spec.rb",
|
247
|
-
"spec/plugins/curry_spec.rb",
|
248
|
-
"spec/plugins/db_spec.rb",
|
249
|
-
"spec/plugins/defaults/hashtag_spec.rb",
|
250
|
-
"spec/plugins/defaults/list_spec.rb",
|
251
|
-
"spec/plugins/defaults/plugin_spec.rb",
|
252
|
-
"spec/plugins/defaults/retweet_spec.rb",
|
253
|
-
"spec/plugins/draft_spec.rb",
|
254
|
-
"spec/plugins/english_spec_.rb",
|
255
|
-
"spec/plugins/expand-tinyurl_spec.rb",
|
256
|
-
"spec/plugins/fib_spec.rb",
|
257
|
-
"spec/plugins/filter_spec_.rb",
|
258
|
-
"spec/plugins/footer_spec.rb",
|
259
|
-
"spec/plugins/gsub_spec.rb",
|
260
|
-
"spec/plugins/haml_spec.rb",
|
261
|
-
"spec/plugins/hi_spec.rb",
|
262
|
-
"spec/plugins/md5pass_spec.rb",
|
263
|
-
"spec/plugins/pause_spec.rb",
|
264
|
-
"spec/plugins/primes_spec_.rb",
|
265
|
-
"spec/plugins/shell_spec.rb",
|
266
|
-
"spec/plugins/sl_spec_.rb",
|
267
|
-
"spec/plugins/spam_spec.rb",
|
268
|
-
"spec/plugins/standard_commands_spec.rb",
|
269
|
-
"spec/plugins/storage/sqlite3_spec.rb",
|
270
|
-
"spec/plugins/storage/status_spec_.rb",
|
271
|
-
"spec/plugins/tinyurl_spec.rb",
|
272
|
-
"spec/plugins/truncate_spec.rb",
|
273
|
-
"spec/plugins/whois_spec_.rb",
|
274
|
-
"spec/spec_helper.rb",
|
275
|
-
"spec/termtter/active_rubytter_spec.rb",
|
276
|
-
"spec/termtter/api_spec.rb",
|
277
|
-
"spec/termtter/client_spec.rb",
|
278
|
-
"spec/termtter/command_spec.rb",
|
279
|
-
"spec/termtter/config_setup_spec.rb",
|
280
|
-
"spec/termtter/config_spec.rb",
|
281
|
-
"spec/termtter/crypt_spec.rb",
|
282
|
-
"spec/termtter/event_spec.rb",
|
283
|
-
"spec/termtter/hook_spec.rb",
|
284
|
-
"spec/termtter/hookable_spec.rb",
|
285
|
-
"spec/termtter/memory_cache_spec.rb",
|
286
|
-
"spec/termtter/optparse_spec.rb",
|
287
|
-
"spec/termtter/rubytter_proxy_spec.rb",
|
288
|
-
"spec/termtter/system_extensions/windows_spec.rb",
|
289
|
-
"spec/termtter/system_extensions_spec.rb",
|
290
|
-
"spec/termtter/task_manager_spec.rb",
|
291
|
-
"spec/termtter/task_spec.rb",
|
292
|
-
"spec/termtter_spec.rb",
|
293
|
-
"termtter.gemspec"
|
294
|
-
]
|
18
|
+
|
295
19
|
s.homepage = %q{http://termtter.org/}
|
296
20
|
s.rdoc_options = ["--main", "README.rdoc", "--exclude", "spec"]
|
297
21
|
s.require_paths = ["lib"]
|
@@ -299,6 +23,9 @@ Gem::Specification.new do |s|
|
|
299
23
|
s.rubygems_version = %q{1.6.2}
|
300
24
|
s.summary = %q{Terminal based Twitter client.}
|
301
25
|
|
26
|
+
s.files = `git ls-files`.split("\n")
|
27
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
28
|
+
|
302
29
|
if s.respond_to? :specification_version then
|
303
30
|
s.specification_version = 3
|
304
31
|
|
@@ -323,4 +50,3 @@ Gem::Specification.new do |s|
|
|
323
50
|
s.add_dependency(%q<notify>, [">= 0.2.1"])
|
324
51
|
end
|
325
52
|
end
|
326
|
-
|
metadata
CHANGED
@@ -1,86 +1,120 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: termtter
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 61
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 10
|
9
|
+
- 1
|
10
|
+
version: 1.10.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- jugyo
|
9
14
|
- ujihisa
|
15
|
+
- koichiroo
|
10
16
|
autorequire:
|
11
17
|
bindir: bin
|
12
18
|
cert_chain: []
|
13
|
-
|
19
|
+
|
20
|
+
date: 2012-01-08 00:00:00 +09:00
|
14
21
|
default_executable: termtter
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
22
|
+
dependencies:
|
23
|
+
- !ruby/object:Gem::Dependency
|
17
24
|
name: json
|
18
|
-
|
25
|
+
prerelease: false
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
27
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: 21
|
32
|
+
segments:
|
33
|
+
- 1
|
34
|
+
- 1
|
35
|
+
- 3
|
23
36
|
version: 1.1.3
|
24
37
|
type: :runtime
|
25
|
-
|
26
|
-
|
27
|
-
- !ruby/object:Gem::Dependency
|
38
|
+
version_requirements: *id001
|
39
|
+
- !ruby/object:Gem::Dependency
|
28
40
|
name: highline
|
29
|
-
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
43
|
none: false
|
31
|
-
requirements:
|
32
|
-
- -
|
33
|
-
- !ruby/object:Gem::Version
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
hash: 3
|
48
|
+
segments:
|
49
|
+
- 1
|
50
|
+
- 5
|
51
|
+
- 0
|
34
52
|
version: 1.5.0
|
35
53
|
type: :runtime
|
36
|
-
|
37
|
-
|
38
|
-
- !ruby/object:Gem::Dependency
|
54
|
+
version_requirements: *id002
|
55
|
+
- !ruby/object:Gem::Dependency
|
39
56
|
name: termcolor
|
40
|
-
|
57
|
+
prerelease: false
|
58
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
59
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
hash: 23
|
64
|
+
segments:
|
65
|
+
- 1
|
66
|
+
- 0
|
67
|
+
- 0
|
45
68
|
version: 1.0.0
|
46
69
|
type: :runtime
|
47
|
-
|
48
|
-
|
49
|
-
- !ruby/object:Gem::Dependency
|
70
|
+
version_requirements: *id003
|
71
|
+
- !ruby/object:Gem::Dependency
|
50
72
|
name: rubytter
|
51
|
-
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
75
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
hash: 7
|
80
|
+
segments:
|
81
|
+
- 1
|
82
|
+
- 4
|
83
|
+
- 0
|
56
84
|
version: 1.4.0
|
57
85
|
type: :runtime
|
58
|
-
|
59
|
-
|
60
|
-
- !ruby/object:Gem::Dependency
|
86
|
+
version_requirements: *id004
|
87
|
+
- !ruby/object:Gem::Dependency
|
61
88
|
name: notify
|
62
|
-
|
89
|
+
prerelease: false
|
90
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
91
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
hash: 21
|
96
|
+
segments:
|
97
|
+
- 0
|
98
|
+
- 2
|
99
|
+
- 1
|
67
100
|
version: 0.2.1
|
68
101
|
type: :runtime
|
69
|
-
|
70
|
-
version_requirements: *2153021340
|
102
|
+
version_requirements: *id005
|
71
103
|
description: Termtter is a terminal based Twitter client.
|
72
104
|
email: jugyo.org@gmail.com
|
73
|
-
executables:
|
105
|
+
executables:
|
74
106
|
- termtter
|
75
107
|
extensions: []
|
76
|
-
|
108
|
+
|
109
|
+
extra_rdoc_files:
|
77
110
|
- ChangeLog
|
78
111
|
- README.rdoc
|
79
|
-
files:
|
112
|
+
files:
|
113
|
+
- .gitignore
|
80
114
|
- ChangeLog
|
115
|
+
- Gemfile
|
81
116
|
- README.rdoc
|
82
117
|
- Rakefile
|
83
|
-
- VERSION
|
84
118
|
- bin/termtter
|
85
119
|
- bin/termtter_frame
|
86
120
|
- doc/Termtter-1.0-Release-Note-English.txt
|
@@ -116,6 +150,7 @@ files:
|
|
116
150
|
- lib/plugins/defaults/confirm.rb
|
117
151
|
- lib/plugins/defaults/eval.rb
|
118
152
|
- lib/plugins/defaults/exec.rb
|
153
|
+
- lib/plugins/defaults/expand_tco_url.rb
|
119
154
|
- lib/plugins/defaults/fib.rb
|
120
155
|
- lib/plugins/defaults/hashtag.rb
|
121
156
|
- lib/plugins/defaults/irb.rb
|
@@ -146,6 +181,7 @@ files:
|
|
146
181
|
- lib/plugins/fib_filter.rb
|
147
182
|
- lib/plugins/fibyou.rb
|
148
183
|
- lib/plugins/filter.rb
|
184
|
+
- lib/plugins/foo.rb
|
149
185
|
- lib/plugins/footer.rb
|
150
186
|
- lib/plugins/friends.rb
|
151
187
|
- lib/plugins/g.rb
|
@@ -153,6 +189,7 @@ files:
|
|
153
189
|
- lib/plugins/geo.rb
|
154
190
|
- lib/plugins/gist.rb
|
155
191
|
- lib/plugins/github-issues.rb
|
192
|
+
- lib/plugins/googl.rb
|
156
193
|
- lib/plugins/graduatter.rb
|
157
194
|
- lib/plugins/grass.rb
|
158
195
|
- lib/plugins/group.rb
|
@@ -209,6 +246,7 @@ files:
|
|
209
246
|
- lib/plugins/notify-send2.rb
|
210
247
|
- lib/plugins/notify-send3.rb
|
211
248
|
- lib/plugins/nuance.rb
|
249
|
+
- lib/plugins/nyancat.rb
|
212
250
|
- lib/plugins/open.rb
|
213
251
|
- lib/plugins/open_url.rb
|
214
252
|
- lib/plugins/other_user.rb
|
@@ -257,6 +295,7 @@ files:
|
|
257
295
|
- lib/plugins/time_signal.rb
|
258
296
|
- lib/plugins/timer.rb
|
259
297
|
- lib/plugins/tinyurl.rb
|
298
|
+
- lib/plugins/toppo.rb
|
260
299
|
- lib/plugins/train.rb
|
261
300
|
- lib/plugins/translate_tweet.rb
|
262
301
|
- lib/plugins/translation.rb
|
@@ -300,6 +339,7 @@ files:
|
|
300
339
|
- lib/termtter/system_extensions/windows.rb
|
301
340
|
- lib/termtter/task.rb
|
302
341
|
- lib/termtter/task_manager.rb
|
342
|
+
- lib/termtter/version.rb
|
303
343
|
- spec/plugins/capital_update_spec.rb
|
304
344
|
- spec/plugins/cool_spec.rb
|
305
345
|
- spec/plugins/curry_spec.rb
|
@@ -352,30 +392,86 @@ files:
|
|
352
392
|
has_rdoc: true
|
353
393
|
homepage: http://termtter.org/
|
354
394
|
licenses: []
|
395
|
+
|
355
396
|
post_install_message:
|
356
|
-
rdoc_options:
|
397
|
+
rdoc_options:
|
357
398
|
- --main
|
358
399
|
- README.rdoc
|
359
400
|
- --exclude
|
360
401
|
- spec
|
361
|
-
require_paths:
|
402
|
+
require_paths:
|
362
403
|
- lib
|
363
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
404
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
364
405
|
none: false
|
365
|
-
requirements:
|
366
|
-
- -
|
367
|
-
- !ruby/object:Gem::Version
|
368
|
-
|
369
|
-
|
406
|
+
requirements:
|
407
|
+
- - ">="
|
408
|
+
- !ruby/object:Gem::Version
|
409
|
+
hash: 3
|
410
|
+
segments:
|
411
|
+
- 0
|
412
|
+
version: "0"
|
413
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
370
414
|
none: false
|
371
|
-
requirements:
|
372
|
-
- -
|
373
|
-
- !ruby/object:Gem::Version
|
374
|
-
|
415
|
+
requirements:
|
416
|
+
- - ">="
|
417
|
+
- !ruby/object:Gem::Version
|
418
|
+
hash: 3
|
419
|
+
segments:
|
420
|
+
- 0
|
421
|
+
version: "0"
|
375
422
|
requirements: []
|
423
|
+
|
376
424
|
rubyforge_project: termtter
|
377
|
-
rubygems_version: 1.
|
425
|
+
rubygems_version: 1.3.7
|
378
426
|
signing_key:
|
379
427
|
specification_version: 3
|
380
428
|
summary: Terminal based Twitter client.
|
381
|
-
test_files:
|
429
|
+
test_files:
|
430
|
+
- spec/plugins/capital_update_spec.rb
|
431
|
+
- spec/plugins/cool_spec.rb
|
432
|
+
- spec/plugins/curry_spec.rb
|
433
|
+
- spec/plugins/db_spec.rb
|
434
|
+
- spec/plugins/defaults/hashtag_spec.rb
|
435
|
+
- spec/plugins/defaults/list_spec.rb
|
436
|
+
- spec/plugins/defaults/plugin_spec.rb
|
437
|
+
- spec/plugins/defaults/retweet_spec.rb
|
438
|
+
- spec/plugins/draft_spec.rb
|
439
|
+
- spec/plugins/english_spec_.rb
|
440
|
+
- spec/plugins/expand-tinyurl_spec.rb
|
441
|
+
- spec/plugins/fib_spec.rb
|
442
|
+
- spec/plugins/filter_spec_.rb
|
443
|
+
- spec/plugins/footer_spec.rb
|
444
|
+
- spec/plugins/gsub_spec.rb
|
445
|
+
- spec/plugins/haml_spec.rb
|
446
|
+
- spec/plugins/hi_spec.rb
|
447
|
+
- spec/plugins/md5pass_spec.rb
|
448
|
+
- spec/plugins/pause_spec.rb
|
449
|
+
- spec/plugins/primes_spec_.rb
|
450
|
+
- spec/plugins/shell_spec.rb
|
451
|
+
- spec/plugins/sl_spec_.rb
|
452
|
+
- spec/plugins/spam_spec.rb
|
453
|
+
- spec/plugins/standard_commands_spec.rb
|
454
|
+
- spec/plugins/storage/sqlite3_spec.rb
|
455
|
+
- spec/plugins/storage/status_spec_.rb
|
456
|
+
- spec/plugins/tinyurl_spec.rb
|
457
|
+
- spec/plugins/truncate_spec.rb
|
458
|
+
- spec/plugins/whois_spec_.rb
|
459
|
+
- spec/spec_helper.rb
|
460
|
+
- spec/termtter/active_rubytter_spec.rb
|
461
|
+
- spec/termtter/api_spec.rb
|
462
|
+
- spec/termtter/client_spec.rb
|
463
|
+
- spec/termtter/command_spec.rb
|
464
|
+
- spec/termtter/config_setup_spec.rb
|
465
|
+
- spec/termtter/config_spec.rb
|
466
|
+
- spec/termtter/crypt_spec.rb
|
467
|
+
- spec/termtter/event_spec.rb
|
468
|
+
- spec/termtter/hook_spec.rb
|
469
|
+
- spec/termtter/hookable_spec.rb
|
470
|
+
- spec/termtter/memory_cache_spec.rb
|
471
|
+
- spec/termtter/optparse_spec.rb
|
472
|
+
- spec/termtter/rubytter_proxy_spec.rb
|
473
|
+
- spec/termtter/system_extensions/windows_spec.rb
|
474
|
+
- spec/termtter/system_extensions_spec.rb
|
475
|
+
- spec/termtter/task_manager_spec.rb
|
476
|
+
- spec/termtter/task_spec.rb
|
477
|
+
- spec/termtter_spec.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.10.0
|