termtter 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/plugins/bomb.rb +9 -12
- data/lib/plugins/expand-tinyurl.rb +12 -3
- data/lib/plugins/group.rb +10 -6
- data/lib/plugins/history.rb +21 -10
- data/lib/plugins/log.rb +10 -10
- data/lib/plugins/msagent.rb +23 -11
- data/lib/plugins/notify-send.rb +17 -12
- data/lib/plugins/say.rb +8 -6
- data/lib/plugins/scrape.rb +1 -1
- data/lib/plugins/screen-notify.rb +17 -10
- data/lib/plugins/standard_plugins.rb +29 -17
- data/lib/plugins/stdout.rb +35 -54
- data/lib/plugins/storage.rb +17 -23
- data/lib/plugins/storage/status.rb +23 -20
- data/lib/plugins/update_editor.rb +1 -1
- data/lib/plugins/uri-open.rb +7 -5
- data/lib/plugins/url_addspace.rb +2 -2
- data/lib/termtter/api.rb +2 -1
- data/lib/termtter/client.rb +88 -108
- data/lib/termtter/command.rb +1 -0
- data/lib/termtter/hook.rb +5 -0
- data/lib/termtter/system_extensions.rb +13 -3
- data/lib/termtter/version.rb +1 -1
- data/spec/{plugin → plugins}/cool_spec.rb +0 -0
- data/spec/{plugin → plugins}/english_spec.rb +0 -0
- data/spec/{plugin → plugins}/favorite_spec.rb +0 -0
- data/spec/{plugin → plugins}/fib_spec.rb +0 -0
- data/spec/{plugin → plugins}/filter_spec.rb +0 -0
- data/spec/{plugin → plugins}/pause_spec.rb +0 -0
- data/spec/{plugin → plugins}/plugin_spec.rb +0 -0
- data/spec/{plugin → plugins}/primes_spec.rb +0 -0
- data/spec/{plugin → plugins}/shell_spec.rb +0 -0
- data/spec/{plugin → plugins}/sl_spec.rb +0 -0
- data/spec/{plugin → plugins}/spam_spec.rb +0 -0
- data/spec/{plugin → plugins}/standard_plugins_spec.rb +0 -0
- data/spec/{plugin → plugins}/storage/DB_spec.rb +0 -0
- data/spec/{plugin → plugins}/storage/status_spec.rb +1 -1
- data/spec/termtter/client_spec.rb +1 -4
- metadata +17 -17
data/lib/termtter/command.rb
CHANGED
data/lib/termtter/hook.rb
CHANGED
@@ -25,14 +25,24 @@ require 'dl/import'
|
|
25
25
|
module Readline
|
26
26
|
begin
|
27
27
|
module LIBREADLINE
|
28
|
-
|
29
|
-
|
28
|
+
if DL.const_defined? :Importable
|
29
|
+
extend DL::Importable
|
30
|
+
else
|
31
|
+
extend DL::Importer
|
32
|
+
end
|
33
|
+
pathes = Array(ENV['TERMTTER_EXT_LIB'] || [
|
34
|
+
'/opt/local/lib/libreadline.dylib',
|
35
|
+
'/usr/lib/libreadline.so',
|
36
|
+
'/usr/local/lib/libreadline.so',
|
37
|
+
File.join(Gem.bindir, 'readline.dll')
|
38
|
+
])
|
39
|
+
dlload(pathes.find { |path| File.exist?(path)})
|
30
40
|
extern 'int rl_refresh_line(int, int)'
|
31
41
|
end
|
32
42
|
def self.refresh_line
|
33
43
|
LIBREADLINE.rl_refresh_line(0, 0)
|
34
44
|
end
|
35
|
-
rescue
|
45
|
+
rescue Exception
|
36
46
|
def self.refresh_line;end
|
37
47
|
end
|
38
48
|
end
|
data/lib/termtter/version.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -176,15 +176,12 @@ module Termtter
|
|
176
176
|
end
|
177
177
|
|
178
178
|
it 'run' do
|
179
|
-
Client.should_receive(:puts)
|
180
179
|
Client.should_receive(:load_default_plugins)
|
181
180
|
Client.should_receive(:load_config)
|
182
181
|
Termtter::API.should_receive(:setup)
|
183
|
-
Client.should_receive(:
|
184
|
-
Client.should_receive(:call_hooks)
|
182
|
+
Client.should_receive(:post_config_load)
|
185
183
|
Client.should_receive(:call_new_hooks)
|
186
184
|
Client.should_receive(:setup_update_timeline_task)
|
187
|
-
Client.should_receive(:call_commands)
|
188
185
|
Client.should_receive(:start_input_thread)
|
189
186
|
Client.run
|
190
187
|
end
|
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.0.
|
4
|
+
version: 1.0.4
|
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-03-
|
13
|
+
date: 2009-03-21 00:00:00 +09:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.5.0
|
55
55
|
version:
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: sqlite3-ruby
|
@@ -150,20 +150,20 @@ files:
|
|
150
150
|
- lib/termtter/task_manager.rb
|
151
151
|
- lib/termtter/version.rb
|
152
152
|
- lib/termtter.rb
|
153
|
-
- spec/
|
154
|
-
- spec/
|
155
|
-
- spec/
|
156
|
-
- spec/
|
157
|
-
- spec/
|
158
|
-
- spec/
|
159
|
-
- spec/
|
160
|
-
- spec/
|
161
|
-
- spec/
|
162
|
-
- spec/
|
163
|
-
- spec/
|
164
|
-
- spec/
|
165
|
-
- spec/
|
166
|
-
- spec/
|
153
|
+
- spec/plugins/cool_spec.rb
|
154
|
+
- spec/plugins/english_spec.rb
|
155
|
+
- spec/plugins/favorite_spec.rb
|
156
|
+
- spec/plugins/fib_spec.rb
|
157
|
+
- spec/plugins/filter_spec.rb
|
158
|
+
- spec/plugins/pause_spec.rb
|
159
|
+
- spec/plugins/plugin_spec.rb
|
160
|
+
- spec/plugins/primes_spec.rb
|
161
|
+
- spec/plugins/shell_spec.rb
|
162
|
+
- spec/plugins/sl_spec.rb
|
163
|
+
- spec/plugins/spam_spec.rb
|
164
|
+
- spec/plugins/standard_plugins_spec.rb
|
165
|
+
- spec/plugins/storage/DB_spec.rb
|
166
|
+
- spec/plugins/storage/status_spec.rb
|
167
167
|
- spec/spec_helper.rb
|
168
168
|
- spec/termtter/client_spec.rb
|
169
169
|
- spec/termtter/command_spec.rb
|