arcadia 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +90 -28
- data/conf/LC/en-UK.LANG +6 -0
- data/conf/LC/ru-RU.LANG +0 -0
- data/conf/arcadia.conf +8 -4
- data/conf/arcadia.res.rb +86 -1
- data/conf/theme-dark.conf +2 -1
- data/ext/ae-breakpoints/ae-breakpoints.rb +1 -1
- data/ext/ae-dir-projects/ae-dir-projects.rb +42 -6
- data/ext/ae-editor/ae-editor.rb +227 -120
- data/ext/ae-editor/langs/coderay.tokens +0 -0
- data/ext/ae-editor/langs/conf.lang +0 -0
- data/ext/ae-editor/langs/css.lang +0 -0
- data/ext/ae-editor/langs/html.lang +0 -0
- data/ext/ae-editor/langs/java.lang +0 -0
- data/ext/ae-editor/langs/python.lang +0 -0
- data/ext/ae-editor/langs/ruby.lang +0 -0
- data/ext/ae-editor/langs/text.lang +0 -0
- data/ext/ae-editor/langs/xml.lang +0 -0
- data/ext/ae-editor/lib/rbeautify.rb +0 -0
- data/ext/ae-file-history/ae-file-history.rb +4 -3
- data/ext/ae-output/ae-output.rb +44 -31
- data/ext/ae-ruby-debug/ae-ruby-debug.conf +3 -2
- data/ext/ae-ruby-debug/ae-ruby-debug.rb +1 -0
- data/ext/ae-search-in-files/ae-search-in-files.rb +3 -3
- data/ext/ae-search-in-files/ext/ack-in-files/ack-in-files.conf +0 -0
- data/ext/ae-search-in-files/ext/ack-in-files/ack-in-files.rb +0 -0
- data/ext/ae-shell/ae-shell.rb +37 -15
- data/ext/ae-subprocess-inspector/ae-subprocess-inspector.rb +14 -8
- data/ext/ae-subprocess-inspector/butterfly.res +0 -0
- data/ext/ae-subprocess-inspector/process.res +0 -0
- data/ext/ae-subprocess-inspector/space-invader.res +0 -0
- data/ext/ae-term/ae-term.conf +0 -0
- data/ext/ae-term/ae-term.rb +0 -0
- data/ext/test-shutdown-after-startup/test-shutdown-after-startup.conf +0 -0
- data/ext/test-shutdown-after-startup/test-shutdown-after-startup.rb +0 -0
- data/lib/a-commons.rb +1 -1
- data/lib/a-contracts.rb +13 -3
- data/lib/a-core.rb +612 -142
- data/lib/a-tkcommons.rb +661 -50
- data/lib/anigif.rb +0 -0
- data/lib/iosync.rb +71 -0
- data/tcl/anigif/anigif.tcl +0 -0
- data/tcl/anigif/pkgIndex.tcl +0 -0
- metadata +5 -2
data/lib/anigif.rb
CHANGED
File without changes
|
data/lib/iosync.rb
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
|
2
|
+
STDOUT.sync=true
|
3
|
+
STDERR.sync=true
|
4
|
+
STDIN.sync=true
|
5
|
+
|
6
|
+
$max = 0
|
7
|
+
|
8
|
+
module IoSyncUtils
|
9
|
+
def ensure_newline(*_opt)
|
10
|
+
_opt = switch_ensure_newline(*_opt)
|
11
|
+
_opt
|
12
|
+
end
|
13
|
+
|
14
|
+
def switch_ensure_newline(_opt)
|
15
|
+
$max+=1
|
16
|
+
exit if $max > 100
|
17
|
+
if _opt
|
18
|
+
if _opt.kind_of?(String)
|
19
|
+
_opt = ensure_newline_string(_opt)
|
20
|
+
elsif _opt.kind_of?(Array)
|
21
|
+
_opt = ensure_newline_array(_opt)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
_opt
|
25
|
+
end
|
26
|
+
|
27
|
+
def ensure_newline_string(_str)
|
28
|
+
if _str && _str.length > 0 && _str.strip[-1..-1] != '\n'
|
29
|
+
_str +="\n"
|
30
|
+
end
|
31
|
+
_str
|
32
|
+
end
|
33
|
+
|
34
|
+
def ensure_newline_array(_arr)
|
35
|
+
if _arr && _arr.length > 0
|
36
|
+
_arr[_arr.length-1] = switch_ensure_newline(_arr[_arr.length-1])
|
37
|
+
end
|
38
|
+
_arr
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
#class << STDOUT
|
44
|
+
# include IoSyncUtils
|
45
|
+
# alias_method :orig_print, :print
|
46
|
+
# alias_method :orig_printf, :printf
|
47
|
+
# alias_method :orig_syswrite, :syswrite
|
48
|
+
#
|
49
|
+
# def print(*opts)
|
50
|
+
# orig_print(ensure_newline(*opts))
|
51
|
+
# end
|
52
|
+
#
|
53
|
+
# def printf(format, *opts)
|
54
|
+
# orig_printf(ensure_newline(format), *opts)
|
55
|
+
# end
|
56
|
+
#
|
57
|
+
# def syswrite(*opts)
|
58
|
+
# orig_syswrite(ensure_newline(*opts))
|
59
|
+
# end
|
60
|
+
#end
|
61
|
+
|
62
|
+
require 'readline'
|
63
|
+
|
64
|
+
class << Readline
|
65
|
+
include IoSyncUtils
|
66
|
+
alias_method :orig_readline, :readline
|
67
|
+
|
68
|
+
def Readline::readline(prompt, hist)
|
69
|
+
Readline::orig_readline(ensure_newline(prompt), hist)
|
70
|
+
end
|
71
|
+
end
|
data/tcl/anigif/anigif.tcl
CHANGED
File without changes
|
data/tcl/anigif/pkgIndex.tcl
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arcadia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antonio Galeone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coderay
|
@@ -90,7 +90,9 @@ files:
|
|
90
90
|
- ext/ae-shell/sh.rb
|
91
91
|
- ext/ae-subprocess-inspector/ae-subprocess-inspector.conf
|
92
92
|
- ext/ae-subprocess-inspector/ae-subprocess-inspector.rb
|
93
|
+
- ext/ae-subprocess-inspector/butterfly.res
|
93
94
|
- ext/ae-subprocess-inspector/process.res
|
95
|
+
- ext/ae-subprocess-inspector/space-invader.res
|
94
96
|
- ext/ae-term/ae-term.conf
|
95
97
|
- ext/ae-term/ae-term.rb
|
96
98
|
- ext/test-shutdown-after-startup/test-shutdown-after-startup.conf
|
@@ -101,6 +103,7 @@ files:
|
|
101
103
|
- lib/a-tkcommons.rb
|
102
104
|
- lib/anigif.rb
|
103
105
|
- lib/ctags.exe
|
106
|
+
- lib/iosync.rb
|
104
107
|
- tcl/anigif/anigif.tcl
|
105
108
|
- tcl/anigif/pkgIndex.tcl
|
106
109
|
- tcl/bwidget-1.9.8/BWman/ArrowButton.html
|