gonzui-emacs 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/baz-display.jpg +0 -0
- data/baz.jpg +0 -0
- data/bin/gonzui-db-emacs.rb +21 -0
- data/bin/gonzui-search-emacs.rb +121 -0
- data/files +17 -0
- data/gonzui-emacs.en.html +106 -0
- data/gonzui-emacs.en.rd +93 -0
- data/gonzui-emacs.ja.html +119 -0
- data/gonzui-emacs.ja.rd +105 -0
- data/lib/el4r/emacsruby/autoload/55gonzui-emacs.rb +2 -0
- data/lib/el4r/emacsruby/gonzui-emacs.rb +154 -0
- data/setup.rb +1585 -0
- data/test/gonzui-emacs-sub.rb +1001 -0
- data/test/gonzui-emacs.e +64 -0
- data/test/input +35 -0
- data/test/output.compressed +26 -0
- data/test/test.rb +25 -0
- metadata +59 -0
data/test/gonzui-emacs.e
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
#######
|
2
|
+
#
|
3
|
+
# E-scripts about Gonzui for Emacs.
|
4
|
+
#
|
5
|
+
#######
|
6
|
+
|
7
|
+
## (eeindex)
|
8
|
+
## INDEX
|
9
|
+
## (to "test-simple")
|
10
|
+
## (to "test-async")
|
11
|
+
## (to "test-display")
|
12
|
+
|
13
|
+
# Test of short output
|
14
|
+
#### test-simple
|
15
|
+
(eevnow-at ".test-simple")
|
16
|
+
(eech "\C-s88\C-fl")
|
17
|
+
(eech "\exkill-emacs\n")
|
18
|
+
|
19
|
+
#
|
20
|
+
# .test-simple
|
21
|
+
<<'%%%' > $EERUBY
|
22
|
+
el4r_process_autoloads
|
23
|
+
elvar.ee_anchor_format = "== %s =="
|
24
|
+
gonzui "slow_html"
|
25
|
+
%%%
|
26
|
+
GONZUI_EMACS_SEARCH="ruby19 -S gonzui-search -C3 -n --color" el4r -r ~/src/el4r $EERUBY
|
27
|
+
#
|
28
|
+
|
29
|
+
# Test of long output
|
30
|
+
#### test-async
|
31
|
+
(eevnow-at ".test-async")
|
32
|
+
(eech "\e<")
|
33
|
+
(eech "\exkill-emacs\n")
|
34
|
+
|
35
|
+
#
|
36
|
+
# .test-async
|
37
|
+
<<'%%%' > $EERUBY
|
38
|
+
el4r_process_autoloads
|
39
|
+
elvar.ee_anchor_format = "== %s =="
|
40
|
+
gonzui "debian"
|
41
|
+
%%%
|
42
|
+
GONZUI_EMACS_SEARCH="ruby19 -S gonzui-search -C3 -n --color" el4r -r ~/src/el4r $EERUBY
|
43
|
+
#
|
44
|
+
|
45
|
+
|
46
|
+
# Test of display
|
47
|
+
#### test-display
|
48
|
+
(eevnow-at ".test-display")
|
49
|
+
(eech "\C-smyruby-upload\C-fl")
|
50
|
+
(eech "\exkill-emacs\n")
|
51
|
+
|
52
|
+
#
|
53
|
+
# .test-display
|
54
|
+
<<'%%%' > $EERUBY
|
55
|
+
el4r_process_autoloads
|
56
|
+
elvar.ee_anchor_format = "== %s =="
|
57
|
+
gonzui "public_html"
|
58
|
+
%%%
|
59
|
+
GONZUI_EMACS_SEARCH="ruby19 -S gonzui-search -C3 -n --color" el4r -r ~/src/el4r $EERUBY
|
60
|
+
#
|
61
|
+
|
62
|
+
# Test of output
|
63
|
+
# (eevnow "ruby ~/src/gonzui-emacs/bin/gonzui-search-emacs.rb slow_html")
|
64
|
+
|
data/test/input
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
== ruby-rhg/array.c
|
2
|
+
1038- if (RBIGNUM(cmp)->sign) return 1;
|
3
|
+
1039- return -1;
|
4
|
+
1040- }
|
5
|
+
1041: if (RTEST(rb_funcall(cmp, '>', 1, INT2FIX(0)))) return 1;
|
6
|
+
1042- if (RTEST(rb_funcall(cmp, '<', 1, INT2FIX(0)))) return -1;
|
7
|
+
1043- return 0;
|
8
|
+
1044-}
|
9
|
+
|
10
|
+
== ruby-rhg/array.c
|
11
|
+
1039- return -1;
|
12
|
+
1040- }
|
13
|
+
1041- if (RTEST(rb_funcall(cmp, '>', 1, INT2FIX(0)))) return 1;
|
14
|
+
1042: if (RTEST(rb_funcall(cmp, '<', 1, INT2FIX(0)))) return -1;
|
15
|
+
1043- return 0;
|
16
|
+
1044-}
|
17
|
+
1045-
|
18
|
+
|
19
|
+
== ruby-rhg/array.c
|
20
|
+
1067- return rb_str_cmp(a, b);
|
21
|
+
1068- }
|
22
|
+
1069-
|
23
|
+
1070: retval = rb_funcall(a, id_cmp, 1, b);
|
24
|
+
1071- return rb_cmpint(retval);
|
25
|
+
1072-}
|
26
|
+
1073-
|
27
|
+
|
28
|
+
== refm/refm0346.html
|
29
|
+
1033-
|
30
|
+
1034-** Ruby��åɸƤӽФ�
|
31
|
+
1035-
|
32
|
+
1036:VALUE rb_funcall(VALUE recv, ID mid, int narg, ...)
|
33
|
+
1037-
|
34
|
+
1038- ��åɸƤӽФ���ʸ����mid�����뤿��ˤ�rb_intern()��
|
35
|
+
1039- �Ȥ���
|
@@ -0,0 +1,26 @@
|
|
1
|
+
== ruby-rhg/array.c == (lh-gonzui nil "ruby-rhg/array.c")
|
2
|
+
1038- if (RBIGNUM(cmp)->sign) return 1; (lh-gonzui 1038 "ruby-rhg/array.c")
|
3
|
+
1039- return -1; (lh-gonzui 1039 "ruby-rhg/array.c")
|
4
|
+
1040- } (lh-gonzui 1040 "ruby-rhg/array.c")
|
5
|
+
1041: if (RTEST(rb_funcall(cmp, '>', 1, INT2FIX(0)))) return 1; (lh-gonzui 1041 "ruby-rhg/array.c")
|
6
|
+
1042: if (RTEST(rb_funcall(cmp, '<', 1, INT2FIX(0)))) return -1; (lh-gonzui 1042 "ruby-rhg/array.c")
|
7
|
+
1043- return 0; (lh-gonzui 1043 "ruby-rhg/array.c")
|
8
|
+
1044-} (lh-gonzui 1044 "ruby-rhg/array.c")
|
9
|
+
1045- (lh-gonzui 1045 "ruby-rhg/array.c")
|
10
|
+
|
11
|
+
1067- return rb_str_cmp(a, b); (lh-gonzui 1067 "ruby-rhg/array.c")
|
12
|
+
1068- } (lh-gonzui 1068 "ruby-rhg/array.c")
|
13
|
+
1069- (lh-gonzui 1069 "ruby-rhg/array.c")
|
14
|
+
1070: retval = rb_funcall(a, id_cmp, 1, b); (lh-gonzui 1070 "ruby-rhg/array.c")
|
15
|
+
1071- return rb_cmpint(retval); (lh-gonzui 1071 "ruby-rhg/array.c")
|
16
|
+
1072-} (lh-gonzui 1072 "ruby-rhg/array.c")
|
17
|
+
1073- (lh-gonzui 1073 "ruby-rhg/array.c")
|
18
|
+
|
19
|
+
== refm/refm0346.html == (lh-gonzui nil "refm/refm0346.html")
|
20
|
+
1033- (lh-gonzui 1033 "refm/refm0346.html")
|
21
|
+
1034-** Ruby��åɸƤӽФ� (lh-gonzui 1034 "refm/refm0346.html")
|
22
|
+
1035- (lh-gonzui 1035 "refm/refm0346.html")
|
23
|
+
1036:VALUE rb_funcall(VALUE recv, ID mid, int narg, ...) (lh-gonzui 1036 "refm/refm0346.html")
|
24
|
+
1037- (lh-gonzui 1037 "refm/refm0346.html")
|
25
|
+
1038- ��åɸƤӽФ���ʸ����mid�����뤿��ˤ�rb_intern()�� (lh-gonzui 1038 "refm/refm0346.html")
|
26
|
+
1039- �Ȥ��� (lh-gonzui 1039 "refm/refm0346.html")
|
data/test/test.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'stringio'
|
3
|
+
require 'test/unit'
|
4
|
+
$: << ".."
|
5
|
+
require 'bin/gonzui-search-emacs.rb'
|
6
|
+
require 'test/gonzui-emacs-sub'
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
class TestGonzuiSearchEmacs < Test::Unit::TestCase
|
11
|
+
def setup
|
12
|
+
@testdir = Dir.scriptdir
|
13
|
+
AssertFile.basedir = @testdir
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
def test_output_body
|
18
|
+
obj = GonzuiSearchEmacs.new
|
19
|
+
AssertFile.transaction("output.compressed") do |asf|
|
20
|
+
output = StringIO.new
|
21
|
+
obj.output_body(StringIO.new(File.read(@testdir+"/input")), output)
|
22
|
+
output.string.writef(asf)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.4
|
3
|
+
specification_version: 1
|
4
|
+
name: gonzui-emacs
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: "0.3"
|
7
|
+
date: 2006-02-05
|
8
|
+
summary: Gonzui, a source code search engine, for Emacs
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email:
|
12
|
+
homepage:
|
13
|
+
rubyforge_project:
|
14
|
+
description: Gonzui is a source code search engine for accelerating open source software development. Gonzui for Emacs is an EmacsRuby program to use gonzui in Emacs.
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: false
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
authors: []
|
27
|
+
|
28
|
+
files:
|
29
|
+
- baz-display.jpg
|
30
|
+
- baz.jpg
|
31
|
+
- bin/gonzui-db-emacs.rb
|
32
|
+
- bin/gonzui-search-emacs.rb
|
33
|
+
- files
|
34
|
+
- gonzui-emacs.en.html
|
35
|
+
- gonzui-emacs.en.rd
|
36
|
+
- gonzui-emacs.ja.html
|
37
|
+
- gonzui-emacs.ja.rd
|
38
|
+
- lib/el4r/emacsruby/autoload/55gonzui-emacs.rb
|
39
|
+
- lib/el4r/emacsruby/gonzui-emacs.rb
|
40
|
+
- setup.rb
|
41
|
+
- test/gonzui-emacs-sub.rb
|
42
|
+
- test/gonzui-emacs.e
|
43
|
+
- test/input
|
44
|
+
- test/output.compressed
|
45
|
+
- test/test.rb
|
46
|
+
test_files: []
|
47
|
+
|
48
|
+
rdoc_options: []
|
49
|
+
|
50
|
+
extra_rdoc_files: []
|
51
|
+
|
52
|
+
executables: []
|
53
|
+
|
54
|
+
extensions: []
|
55
|
+
|
56
|
+
requirements:
|
57
|
+
- none
|
58
|
+
dependencies: []
|
59
|
+
|