diakonos 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +15 -0
- data/README +2 -3
- data/diakonos-256-colour.conf +8 -0
- data/diakonos.conf +67 -11
- data/lib/diakonos.rb +563 -267
- data/lib/diakonos/buffer.rb +205 -62
- data/lib/diakonos/readline.rb +229 -193
- data/test/buffer-test.rb +6 -6
- metadata +5 -6
- data/home-on-save.rb +0 -6
data/test/buffer-test.rb
CHANGED
@@ -37,17 +37,17 @@ class TC_Buffer < Test::Unit::TestCase
|
|
37
37
|
def test_replace
|
38
38
|
@d.openFile SAMPLE_FILE
|
39
39
|
b = Diakonos::Buffer.new( @d, SAMPLE_FILE, SAMPLE_FILE )
|
40
|
-
b.find( [ /only/ ], :down, "\\2", Diakonos::CHOICE_YES_AND_STOP )
|
40
|
+
b.find( [ /only/ ], :direction => :down, :replacement => "\\2", :auto_choice => Diakonos::CHOICE_YES_AND_STOP )
|
41
41
|
assert_equal "# This is a sample file used in the tests.", b[ 2 ]
|
42
|
-
b.find( [ /\bx\b/ ], :down, "\\0_", Diakonos::CHOICE_YES_AND_STOP )
|
42
|
+
b.find( [ /\bx\b/ ], :direction => :down, :replacement => "\\0_", :auto_choice => Diakonos::CHOICE_YES_AND_STOP )
|
43
43
|
assert_equal " @x_ = 1", b[ 6 ]
|
44
|
-
b.find( [ /\b(y)\b/ ], :down, "\\1_", Diakonos::CHOICE_YES_AND_STOP )
|
44
|
+
b.find( [ /\b(y)\b/ ], :direction => :down, :replacement => "\\1_", :auto_choice => Diakonos::CHOICE_YES_AND_STOP )
|
45
45
|
assert_equal " @y_ = 2", b[ 7 ]
|
46
|
-
b.find( [ /puts (\w+)/ ], :down, "print \\1", Diakonos::CHOICE_YES_AND_STOP )
|
46
|
+
b.find( [ /puts (\w+)/ ], :direction => :down, :replacement => "print \\1", :auto_choice => Diakonos::CHOICE_YES_AND_STOP )
|
47
47
|
assert_equal " print x", b[ 11 ]
|
48
|
-
b.find( [ /puts (\w+)/ ], :down, "puts \\1, \\1, \\1", Diakonos::CHOICE_YES_AND_STOP )
|
48
|
+
b.find( [ /puts (\w+)/ ], :direction => :down, :replacement => "puts \\1, \\1, \\1", :auto_choice => Diakonos::CHOICE_YES_AND_STOP )
|
49
49
|
assert_equal " puts y, y, y", b[ 12 ]
|
50
|
-
b.find( [ /Sample\.(\w+)/ ], :down, "\\1\\\\\\1", Diakonos::CHOICE_YES_AND_STOP )
|
50
|
+
b.find( [ /Sample\.(\w+)/ ], :direction => :down, :replacement => "\\1\\\\\\1", :auto_choice => Diakonos::CHOICE_YES_AND_STOP )
|
51
51
|
assert_equal "s = new\\new", b[ 16 ]
|
52
52
|
end
|
53
53
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diakonos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pistos
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-11-02 01:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -27,7 +27,6 @@ files:
|
|
27
27
|
- CHANGELOG
|
28
28
|
- README
|
29
29
|
- LICENCE
|
30
|
-
- home-on-save.rb
|
31
30
|
- diakonos.conf
|
32
31
|
- diakonos-256-colour.conf
|
33
32
|
- bin/diakonos
|
@@ -46,10 +45,10 @@ files:
|
|
46
45
|
- lib/diakonos/text-mark.rb
|
47
46
|
- lib/diakonos/window.rb
|
48
47
|
- lib/diakonos/array.rb
|
49
|
-
- lib/diakonos/readline.rb
|
50
|
-
- lib/diakonos/string.rb
|
51
48
|
- lib/diakonos/clipboard.rb
|
52
49
|
- lib/diakonos/finding.rb
|
50
|
+
- lib/diakonos/readline.rb
|
51
|
+
- lib/diakonos/string.rb
|
53
52
|
- lib/diakonos/buffer.rb
|
54
53
|
has_rdoc: false
|
55
54
|
homepage: http://purepistos.net/diakonos
|
@@ -73,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
72
|
requirements:
|
74
73
|
- curses library for Ruby (not in default Ruby install on Debian or FreeBSD; not sufficiently implemented on Windows)
|
75
74
|
rubyforge_project: diakonos
|
76
|
-
rubygems_version: 1.
|
75
|
+
rubygems_version: 1.3.1
|
77
76
|
signing_key:
|
78
77
|
specification_version: 2
|
79
78
|
summary: A Linux editor for the masses.
|