termtter 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -1
- data/bin/termtter +1 -0
- data/lib/plugins/another_prompt.rb +131 -0
- data/lib/plugins/async.rb +23 -0
- data/lib/plugins/confirm.rb +1 -1
- data/lib/plugins/db.rb +1 -1
- data/lib/plugins/defaults/auto_reload.rb +20 -19
- data/lib/plugins/defaults/command_line.rb +10 -5
- data/lib/plugins/defaults/hashtag.rb +35 -0
- data/lib/plugins/defaults/lists.rb +14 -0
- data/lib/plugins/defaults/retweet.rb +15 -15
- data/lib/plugins/defaults/standard_commands.rb +22 -28
- data/lib/plugins/defaults/standard_completion.rb +5 -5
- data/lib/plugins/defaults/switch.rb +34 -0
- data/lib/plugins/eject.rb +15 -0
- data/lib/plugins/expand-tinyurl.rb +1 -1
- data/lib/plugins/favotter.rb +77 -0
- data/lib/plugins/friends.rb +50 -0
- data/lib/plugins/g.rb +16 -0
- data/lib/plugins/gsub.rb +17 -0
- data/lib/plugins/haml.rb +55 -0
- data/lib/plugins/hatebu_and_update.rb +2 -2
- data/lib/plugins/history.rb +9 -0
- data/lib/plugins/irc_gw.rb +11 -4
- data/lib/plugins/linefeed.rb +31 -0
- data/lib/plugins/md5pass.rb +42 -0
- data/lib/plugins/outputz.rb +1 -1
- data/lib/plugins/primes.rb +1 -1
- data/lib/plugins/quote.rb +43 -0
- data/lib/plugins/reduce_text.rb +26 -0
- data/lib/plugins/reverse.rb +7 -6
- data/lib/plugins/source.rb +31 -0
- data/lib/plugins/storage/status.rb +2 -2
- data/lib/plugins/storage.rb +1 -1
- data/lib/plugins/stream.rb +192 -0
- data/lib/plugins/switch_user.rb +1 -22
- data/lib/plugins/truncate.rb +29 -0
- data/lib/plugins/uri-open.rb +23 -9
- data/lib/plugins/w3mimg.rb +76 -0
- data/lib/termtter/active_rubytter.rb +8 -0
- data/lib/termtter/api.rb +37 -13
- data/lib/termtter/client.rb +26 -47
- data/lib/termtter/command.rb +15 -9
- data/lib/termtter/config.rb +6 -2
- data/lib/termtter/hookable.rb +59 -0
- data/lib/termtter/optparse.rb +51 -39
- data/lib/termtter/rubytter_proxy.rb +32 -0
- data/lib/termtter/system_extensions/core_compatibles.rb +16 -0
- data/lib/termtter/system_extensions/termtter_compatibles.rb +19 -0
- data/lib/termtter/system_extensions/windows.rb +86 -0
- data/lib/termtter/system_extensions.rb +8 -121
- data/lib/termtter/task_manager.rb +4 -10
- data/lib/termtter/version.rb +1 -1
- data/lib/termtter.rb +5 -3
- data/spec/plugins/defaults/hashtag_spec.rb +41 -0
- data/spec/plugins/defaults/lists_spec.rb +34 -0
- data/spec/plugins/{english_spec.rb → english_spec_.rb} +0 -0
- data/spec/plugins/{filter_spec.rb → filter_spec_.rb} +0 -0
- data/spec/plugins/gsub_spec.rb +18 -0
- data/spec/plugins/haml_spec.rb +134 -0
- data/spec/plugins/md5pass_spec.rb +13 -0
- data/spec/plugins/{primes_spec.rb → primes_spec_.rb} +0 -0
- data/spec/plugins/{sl_spec.rb → sl_spec_.rb} +0 -0
- data/spec/plugins/standard_commands_spec.rb +1 -1
- data/spec/plugins/storage/{DB_spec.rb → DB_spec_.rb} +0 -0
- data/spec/plugins/storage/{status_spec.rb → status_spec_.rb} +0 -0
- data/spec/plugins/truncate_spec.rb +27 -0
- data/spec/plugins/whois_spec_.rb +20 -0
- data/spec/spec_helper.rb +25 -0
- data/spec/termtter/active_rubytter_spec.rb +17 -0
- data/spec/termtter/api_spec.rb +107 -0
- data/spec/termtter/client_spec.rb +262 -73
- data/spec/termtter/command_spec.rb +31 -5
- data/spec/termtter/config_setup_spec.rb +19 -0
- data/spec/termtter/config_spec.rb +57 -27
- data/spec/termtter/hook_spec.rb +12 -0
- data/spec/termtter/hookable_spec.rb +53 -0
- data/spec/termtter/optparse_spec.rb +64 -9
- data/spec/termtter/rubytter_proxy_spec.rb +42 -0
- data/spec/termtter/system_extensions/windows_spec.rb +9 -0
- data/spec/termtter/system_extensions_spec.rb +61 -0
- data/spec/termtter/task_manager_spec.rb +58 -0
- data/spec/termtter_spec.rb +11 -0
- metadata +45 -20
- data/lib/termtter/connection.rb +0 -41
- data/spec/plugins/whois_spec.rb +0 -26
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: termtter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jugyo
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-11-30 00:00:00 +09:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -53,16 +53,6 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.9.2
|
55
55
|
version:
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: oauth
|
58
|
-
type: :runtime
|
59
|
-
version_requirement:
|
60
|
-
version_requirements: !ruby/object:Gem::Requirement
|
61
|
-
requirements:
|
62
|
-
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 0.3.6
|
65
|
-
version:
|
66
56
|
description: Termtter is a terminal based Twitter client.
|
67
57
|
email: jugyo.org@gmail.com
|
68
58
|
executables:
|
@@ -78,7 +68,9 @@ files:
|
|
78
68
|
- README.rdoc
|
79
69
|
- ChangeLog
|
80
70
|
- lib/plugins/addspace.rb
|
71
|
+
- lib/plugins/another_prompt.rb
|
81
72
|
- lib/plugins/april_fool.rb
|
73
|
+
- lib/plugins/async.rb
|
82
74
|
- lib/plugins/bomb.rb
|
83
75
|
- lib/plugins/clear.rb
|
84
76
|
- lib/plugins/command_plus.rb
|
@@ -93,25 +85,34 @@ files:
|
|
93
85
|
- lib/plugins/defaults/eval.rb
|
94
86
|
- lib/plugins/defaults/exec.rb
|
95
87
|
- lib/plugins/defaults/fib.rb
|
88
|
+
- lib/plugins/defaults/hashtag.rb
|
89
|
+
- lib/plugins/defaults/lists.rb
|
96
90
|
- lib/plugins/defaults/retweet.rb
|
97
91
|
- lib/plugins/defaults/standard_commands.rb
|
98
92
|
- lib/plugins/defaults/standard_completion.rb
|
99
93
|
- lib/plugins/defaults/stdout.rb
|
94
|
+
- lib/plugins/defaults/switch.rb
|
100
95
|
- lib/plugins/defaults.rb
|
96
|
+
- lib/plugins/eject.rb
|
101
97
|
- lib/plugins/en2ja.rb
|
102
98
|
- lib/plugins/english.rb
|
103
99
|
- lib/plugins/erb.rb
|
104
100
|
- lib/plugins/exec_and_update.rb
|
105
101
|
- lib/plugins/expand-tinyurl.rb
|
102
|
+
- lib/plugins/favotter.rb
|
106
103
|
- lib/plugins/fib_filter.rb
|
107
104
|
- lib/plugins/fibyou.rb
|
108
105
|
- lib/plugins/filter.rb
|
106
|
+
- lib/plugins/friends.rb
|
107
|
+
- lib/plugins/g.rb
|
109
108
|
- lib/plugins/github-issues.rb
|
110
109
|
- lib/plugins/graduatter.rb
|
111
110
|
- lib/plugins/grass.rb
|
112
111
|
- lib/plugins/group.rb
|
113
112
|
- lib/plugins/growl.rb
|
114
113
|
- lib/plugins/growl2.rb
|
114
|
+
- lib/plugins/gsub.rb
|
115
|
+
- lib/plugins/haml.rb
|
115
116
|
- lib/plugins/hatebu.rb
|
116
117
|
- lib/plugins/hatebu_and_update.rb
|
117
118
|
- lib/plugins/hi.rb
|
@@ -127,9 +128,11 @@ files:
|
|
127
128
|
- lib/plugins/jakigan.rb
|
128
129
|
- lib/plugins/keyword.rb
|
129
130
|
- lib/plugins/l2.rb
|
131
|
+
- lib/plugins/linefeed.rb
|
130
132
|
- lib/plugins/list_with_opts.rb
|
131
133
|
- lib/plugins/log.rb
|
132
134
|
- lib/plugins/mark.rb
|
135
|
+
- lib/plugins/md5pass.rb
|
133
136
|
- lib/plugins/me.rb
|
134
137
|
- lib/plugins/modify_arg_hook_sample.rb
|
135
138
|
- lib/plugins/msagent.rb
|
@@ -152,8 +155,10 @@ files:
|
|
152
155
|
- lib/plugins/protected_filter.rb
|
153
156
|
- lib/plugins/quick_exit.rb
|
154
157
|
- lib/plugins/quicklook.rb
|
158
|
+
- lib/plugins/quote.rb
|
155
159
|
- lib/plugins/random.rb
|
156
160
|
- lib/plugins/reblog.rb
|
161
|
+
- lib/plugins/reduce_text.rb
|
157
162
|
- lib/plugins/reload.rb
|
158
163
|
- lib/plugins/replace.rb
|
159
164
|
- lib/plugins/reply.rb
|
@@ -167,11 +172,13 @@ files:
|
|
167
172
|
- lib/plugins/searchline.rb
|
168
173
|
- lib/plugins/shell.rb
|
169
174
|
- lib/plugins/sl.rb
|
175
|
+
- lib/plugins/source.rb
|
170
176
|
- lib/plugins/spam.rb
|
171
177
|
- lib/plugins/storage/DB.rb
|
172
178
|
- lib/plugins/storage/status.rb
|
173
179
|
- lib/plugins/storage/status_mook.rb
|
174
180
|
- lib/plugins/storage.rb
|
181
|
+
- lib/plugins/stream.rb
|
175
182
|
- lib/plugins/switch_user.rb
|
176
183
|
- lib/plugins/system_status.rb
|
177
184
|
- lib/plugins/timer.rb
|
@@ -179,10 +186,12 @@ files:
|
|
179
186
|
- lib/plugins/train.rb
|
180
187
|
- lib/plugins/translation.rb
|
181
188
|
- lib/plugins/trends.rb
|
189
|
+
- lib/plugins/truncate.rb
|
182
190
|
- lib/plugins/twitpic.rb
|
183
191
|
- lib/plugins/typable_id.rb
|
184
192
|
- lib/plugins/update_editor.rb
|
185
193
|
- lib/plugins/uri-open.rb
|
194
|
+
- lib/plugins/w3mimg.rb
|
186
195
|
- lib/plugins/wassr.rb
|
187
196
|
- lib/plugins/wassr_post.rb
|
188
197
|
- lib/plugins/whois.rb
|
@@ -196,9 +205,13 @@ files:
|
|
196
205
|
- lib/termtter/config.rb
|
197
206
|
- lib/termtter/config_setup.rb
|
198
207
|
- lib/termtter/config_template.erb
|
199
|
-
- lib/termtter/connection.rb
|
200
208
|
- lib/termtter/hook.rb
|
209
|
+
- lib/termtter/hookable.rb
|
201
210
|
- lib/termtter/optparse.rb
|
211
|
+
- lib/termtter/rubytter_proxy.rb
|
212
|
+
- lib/termtter/system_extensions/core_compatibles.rb
|
213
|
+
- lib/termtter/system_extensions/termtter_compatibles.rb
|
214
|
+
- lib/termtter/system_extensions/windows.rb
|
202
215
|
- lib/termtter/system_extensions.rb
|
203
216
|
- lib/termtter/task.rb
|
204
217
|
- lib/termtter/task_manager.rb
|
@@ -207,25 +220,37 @@ files:
|
|
207
220
|
- spec/plugins/cool_spec.rb
|
208
221
|
- spec/plugins/curry_spec.rb
|
209
222
|
- spec/plugins/db_spec.rb
|
210
|
-
- spec/plugins/
|
223
|
+
- spec/plugins/defaults/hashtag_spec.rb
|
224
|
+
- spec/plugins/defaults/lists_spec.rb
|
225
|
+
- spec/plugins/english_spec_.rb
|
211
226
|
- spec/plugins/fib_spec.rb
|
212
|
-
- spec/plugins/
|
227
|
+
- spec/plugins/filter_spec_.rb
|
228
|
+
- spec/plugins/gsub_spec.rb
|
229
|
+
- spec/plugins/haml_spec.rb
|
230
|
+
- spec/plugins/md5pass_spec.rb
|
213
231
|
- spec/plugins/pause_spec.rb
|
214
|
-
- spec/plugins/
|
232
|
+
- spec/plugins/primes_spec_.rb
|
215
233
|
- spec/plugins/shell_spec.rb
|
216
|
-
- spec/plugins/
|
234
|
+
- spec/plugins/sl_spec_.rb
|
217
235
|
- spec/plugins/spam_spec.rb
|
218
236
|
- spec/plugins/standard_commands_spec.rb
|
219
|
-
- spec/plugins/storage/
|
220
|
-
- spec/plugins/storage/
|
221
|
-
- spec/plugins/
|
237
|
+
- spec/plugins/storage/DB_spec_.rb
|
238
|
+
- spec/plugins/storage/status_spec_.rb
|
239
|
+
- spec/plugins/truncate_spec.rb
|
240
|
+
- spec/plugins/whois_spec_.rb
|
222
241
|
- spec/spec_helper.rb
|
223
242
|
- spec/termtter/active_rubytter_spec.rb
|
243
|
+
- spec/termtter/api_spec.rb
|
224
244
|
- spec/termtter/client_spec.rb
|
225
245
|
- spec/termtter/command_spec.rb
|
246
|
+
- spec/termtter/config_setup_spec.rb
|
226
247
|
- spec/termtter/config_spec.rb
|
227
248
|
- spec/termtter/hook_spec.rb
|
249
|
+
- spec/termtter/hookable_spec.rb
|
228
250
|
- spec/termtter/optparse_spec.rb
|
251
|
+
- spec/termtter/rubytter_proxy_spec.rb
|
252
|
+
- spec/termtter/system_extensions/windows_spec.rb
|
253
|
+
- spec/termtter/system_extensions_spec.rb
|
229
254
|
- spec/termtter/task_manager_spec.rb
|
230
255
|
- spec/termtter/task_spec.rb
|
231
256
|
- spec/termtter_spec.rb
|
data/lib/termtter/connection.rb
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
|
3
|
-
module Termtter
|
4
|
-
class Connection
|
5
|
-
attr_reader :protocol, :port, :proxy_uri
|
6
|
-
|
7
|
-
def initialize
|
8
|
-
unless config.proxy.empty?
|
9
|
-
@proxy_host = config.proxy.host
|
10
|
-
@proxy_port = config.proxy.port
|
11
|
-
@proxy_user = config.proxy.user_name
|
12
|
-
@proxy_password = config.proxy.password
|
13
|
-
@proxy_uri = nil
|
14
|
-
@enable_ssl = config.enable_ssl
|
15
|
-
end
|
16
|
-
@protocol = "http"
|
17
|
-
@port = 80
|
18
|
-
|
19
|
-
if @proxy_host
|
20
|
-
@http_class = Net::HTTP::Proxy(@proxy_host, @proxy_port,
|
21
|
-
@proxy_user, @proxy_password)
|
22
|
-
@proxy_uri = "http://" + @proxy_host + ":" + @proxy_port + "/"
|
23
|
-
else
|
24
|
-
@http_class = Net::HTTP
|
25
|
-
end
|
26
|
-
|
27
|
-
if @enable_ssl
|
28
|
-
@protocol = "https"
|
29
|
-
@port = 443
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
def start(host, port, &block)
|
34
|
-
http = @http_class.new(host, port)
|
35
|
-
http.use_ssl = @enable_ssl
|
36
|
-
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl?
|
37
|
-
http.start(&block)
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
data/spec/plugins/whois_spec.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
|
3
|
-
require File.dirname(__FILE__) + '/../spec_helper'
|
4
|
-
|
5
|
-
describe Termtter::Client, 'when the plugin whois is loaded' do
|
6
|
-
it 'adds the command whois' do
|
7
|
-
Termtter::Client.should_receive(:register_command).once
|
8
|
-
Termtter::Client.plug 'whois'
|
9
|
-
end
|
10
|
-
|
11
|
-
it 'should be whois define' do # What does "be whois define" mean?
|
12
|
-
pending "This spec doesn't pass in Japan too"
|
13
|
-
Termtter::Client.plug 'whois'
|
14
|
-
name = 'jp-in-f104.google.com'
|
15
|
-
ip = '66.249.89.104'
|
16
|
-
|
17
|
-
whois?(name).should == ip
|
18
|
-
whois?(ip).should == name
|
19
|
-
# FIXME: This spec doesn't pass in Canada
|
20
|
-
# 1)
|
21
|
-
# 'Termtter::Client when the plugin whois is loaded should be whois define' FAILED
|
22
|
-
# expected: "66.249.89.104",
|
23
|
-
# got: "no address for jp-in-f104.google.com" (using ==)
|
24
|
-
# ./spec/plugins/whois_spec.rb:16:
|
25
|
-
end
|
26
|
-
end
|