rubyslippers 1.02 → 1.03
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/Readme.txt +5 -0
- data/code/01rwdcore/01rwdcore.rb +1 -1
- data/code/01rwdcore/jumplinkcommand.rb +6 -10
- data/code/01rwdcore/rundocuments.rb +10 -0
- data/code/01rwdcore/runeditconfiguration.rb +10 -0
- data/code/01rwdcore/runhelpabout.rb +10 -0
- data/code/01rwdcore/selectiontab.rb +9 -0
- data/code/01rwdcore/test_cases.rb +53 -59
- data/code/01rwdcore/test_harness.rb +1 -0
- data/code/superant.com.rubyslippers/listgemdirs.rb +4 -2
- data/code/superant.com.rubyslippers/listgemrecord.rb +5 -1
- data/code/superant.com.rubyslippers/listgemzips.rb +4 -0
- data/code/superant.com.rubyslippers/loadconfigurationrecord.rb +2 -0
- data/code/superant.com.rubyslippers/saveconfigurationrecord.rb +1 -1
- data/code/superant.com.rubyslippers/test_cases.rb +50 -0
- data/code/superant.com.rubyslippersbackwindow/creategem.rb +4 -3
- data/code/superant.com.rubyslippersbackwindow/listgemdirectories.rb +4 -2
- data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
- data/configuration/rubyslippers.dist +6 -4
- data/configuration/rwdapplicationidentity.dist +2 -2
- data/configuration/rwdtinker.dist +3 -3
- data/configuration/tinkerwin2variables.dist +1 -1
- data/gui/00coreguibegin/applicationguitop.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/92viewconfiguration.rwd +2 -0
- data/rwd_files/HowTo_RubySlippers.txt +5 -0
- data/rwd_files/HowTo_Tinker.txt +8 -0
- data/rwd_files/remotegemlist.txt +34 -21
- data/rwdconfig.dist +4 -2
- data/tests/RubyGauge.rb +179 -0
- data/tests/makedist.rb +1 -0
- metadata +10 -6
- data/tests/rubyslippers-1.01.gemspec +0 -16
- data/tests/rwdtinkertestEN.rb +0 -163
- data/tests/test.result +0 -32
data/Readme.txt
CHANGED
@@ -157,6 +157,11 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
157
157
|
Thanks, Steven Gibson
|
158
158
|
|
159
159
|
=Changelog
|
160
|
+
Version 1.03
|
161
|
+
wrapped directory lists with if clauses
|
162
|
+
updated for rwdtinker 1.64
|
163
|
+
added some unit tests
|
164
|
+
|
160
165
|
Version 1.02
|
161
166
|
changed selection screen to use new hash method
|
162
167
|
updated diagnostic tab
|
data/code/01rwdcore/01rwdcore.rb
CHANGED
@@ -3,28 +3,24 @@ JumpLink = Hash.new { |hh, kk| hh[kk] = "ERROR: link not found: #{kk.inspect}.";
|
|
3
3
|
locationlink = {
|
4
4
|
:helpscreen=> "runhelpwindow",
|
5
5
|
:tinkerbackwindow=>"runrwdtinkerbackwindow",
|
6
|
-
:returntomain=>"returntomain"
|
6
|
+
:returntomain=>"returntomain",
|
7
|
+
:opendocuments=>"runtinkerdocuments",
|
8
|
+
:editconfiguration=>"runeditconfiguration"
|
7
9
|
}
|
8
10
|
locationlink.each { |kk, vv| JumpLink[kk] = vv }
|
9
11
|
|
10
12
|
def runjumplinkcommand
|
11
|
-
|
13
|
+
if @a_jumplinkinput
|
12
14
|
runjumplocation = "#{JumpLink[:"#{@a_jumplinkinput}"]}"
|
13
15
|
|
14
16
|
self.send(runjumplocation)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
17
|
+
end
|
18
|
+
end
|
20
19
|
|
21
|
-
|
22
20
|
|
23
21
|
# list the remote control options on the screen
|
24
22
|
def showjumplinkoptions
|
25
23
|
|
26
|
-
|
27
|
-
|
28
24
|
@jumplinkoptions = $rwdjumplink.rwd_options
|
29
25
|
|
30
26
|
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Application menu orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
#
|
3
|
+
# For more information about see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# call the window
|
6
|
+
def runtinkerdocuments
|
7
|
+
@rwd_window = "main"
|
8
|
+
@rwd_tab = "documentsrwdtinkerone"
|
9
|
+
end
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Application menu orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
#
|
3
|
+
# For more information about see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# call the window
|
6
|
+
def runeditconfiguration
|
7
|
+
@rwd_window = "tinkerbackwindow"
|
8
|
+
@rwd_tab = "editconfigurationfile"
|
9
|
+
end
|
10
|
+
|
@@ -1,112 +1,106 @@
|
|
1
1
|
# test harness
|
2
|
+
|
3
|
+
|
4
|
+
require 'test/unit/testcase'
|
5
|
+
require 'test/unit/assertions'
|
6
|
+
include Test::Unit::Assertions
|
7
|
+
include Test::Unit
|
2
8
|
def rwdtinker_all_tests
|
3
9
|
print "in rwdtinker all tests\n"
|
10
|
+
$testrwdtinkertestcase = TestSuite.new
|
4
11
|
test_runrwdtinkerbackwindow
|
5
12
|
end
|
6
13
|
|
7
14
|
def test_runrwdtinkerbackwindow
|
8
15
|
|
9
|
-
require 'test/unit'
|
10
|
-
begin
|
11
16
|
|
17
|
+
begin
|
18
|
+
testasserts = 0
|
19
|
+
print "Starting rwdtinker tests!\n"
|
12
20
|
runrwdtinkerbackwindow
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
21
|
+
|
22
|
+
assert_equal("tinkerbackwindow",@rwd_window) ; testasserts += 1
|
23
|
+
runselectiontab
|
24
|
+
assert_equal("selectiontab",@rwd_tab) ; testasserts += 1
|
25
|
+
showjumplinkoptions
|
26
|
+
@a_jumplinkinput = "returntomain"
|
27
|
+
runjumplinkcommand
|
28
|
+
assert_equal("main",@rwd_window) ; testasserts += 1
|
29
|
+
@a_jumplinkinput = "helpscreen"
|
30
|
+
runjumplinkcommand
|
31
|
+
|
32
|
+
assert_equal("rwdtinkerhelpwindow",@rwd_window) ; testasserts += 1
|
33
|
+
returntomain
|
34
|
+
assert_equal("main",@rwd_window) ; testasserts += 1
|
35
|
+
runtinkerdocuments
|
36
|
+
assert_equal("documentsrwdtinkerone",@rwd_tab) ; testasserts += 1
|
37
|
+
runrwdtinkerbackwindow
|
38
|
+
|
39
|
+
assert_equal("tinkerbackwindow",@rwd_window) ; testasserts += 1
|
40
|
+
@a_installapplet="/usr/src/rwdapplets/rwdtinker/zips/rwdahelloworld-0.5"
|
41
|
+
viewgemappletcontents
|
42
|
+
assert_not_nil(@appletcontentstext) ; testasserts += 1
|
43
|
+
runrwdtinkerwin2version
|
44
|
+
assert_equal("applicationversion",@rwd_window) ; testasserts += 1
|
45
|
+
returntomain
|
46
|
+
assert_equal("main",@rwd_window) ; testasserts += 1
|
47
|
+
runrwdtinkerbackwindow
|
48
|
+
|
49
|
+
assert_equal("tinkerbackwindow",@rwd_window) ; testasserts += 1
|
50
|
+
runremotezipsinstall
|
51
|
+
assert_equal("superantcomremotezipsinstall",@rwd_tab) ; testasserts += 1
|
52
|
+
runeditconfiguration
|
53
|
+
assert_equal("editconfigurationfile",@rwd_tab) ; testasserts += 1
|
54
|
+
|
55
|
+
|
56
|
+
$stderr.print "tests completed succesfully!\n"
|
57
|
+
$stderr.print testasserts, " asserts performed\n"
|
58
|
+
|
59
|
+
rescue NotImplementedError, Exception
|
17
60
|
$stderr.print $!
|
18
61
|
|
19
62
|
end
|
63
|
+
|
20
64
|
end
|
21
65
|
|
22
66
|
|
23
67
|
|
24
|
-
def
|
68
|
+
def teststobedown
|
69
|
+
runtinkerhelpabout
|
70
|
+
assert_equal("rwdtinkerhelpwindow",@rwd_tab) ; testasserts += 1
|
25
71
|
raise NotImplementedError, 'Need to write test_choosenewhelptopic'
|
26
|
-
end
|
27
|
-
|
28
|
-
|
29
|
-
def test_listinstalledfiles
|
30
72
|
raise NotImplementedError, 'Need to write test_listinstalledfiles'
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
def test_listzipfilestoinstall
|
35
73
|
raise NotImplementedError, 'Need to write test_listzipfilestoinstall'
|
36
|
-
end
|
37
|
-
|
38
|
-
def test_loadconfigurationrecord
|
39
74
|
raise NotImplementedError, 'Need to write test_loadconfigurationrecord'
|
40
|
-
end
|
41
|
-
|
42
|
-
def test_loadconfigurationvariables
|
43
75
|
raise NotImplementedError, 'Need to write test_loadconfigurationvariables'
|
44
|
-
end
|
45
|
-
|
46
76
|
|
47
|
-
|
48
|
-
def test_main
|
49
77
|
raise NotImplementedError, 'Need to write test_main'
|
50
|
-
end
|
51
78
|
|
52
|
-
def test_network_demon
|
53
79
|
raise NotImplementedError, 'Need to write test_network_demon'
|
54
|
-
end
|
55
80
|
|
56
|
-
def test_network_start
|
57
81
|
raise NotImplementedError, 'Need to write test_network_start'
|
58
|
-
end
|
59
82
|
|
60
|
-
def test_openappletname
|
61
83
|
raise NotImplementedError, 'Need to write test_openappletname'
|
62
|
-
end
|
63
84
|
|
64
|
-
def test_removeapplet
|
65
85
|
raise NotImplementedError, 'Need to write test_removeapplet'
|
66
|
-
end
|
67
86
|
|
68
|
-
def test_returntomain
|
69
87
|
raise NotImplementedError, 'Need to write test_returntomain'
|
70
|
-
end
|
71
88
|
|
72
|
-
def test_runcontrolcommand
|
73
89
|
raise NotImplementedError, 'Need to write test_runcontrolcommand'
|
74
|
-
end
|
75
|
-
|
76
90
|
|
77
|
-
def test_runhelpwindow
|
78
91
|
raise NotImplementedError, 'Need to write test_runhelpwindow'
|
79
|
-
end
|
80
|
-
|
81
|
-
|
82
92
|
|
83
|
-
|
84
|
-
def test_runrwdtinkerversion
|
85
93
|
raise NotImplementedError, 'Need to write test_runrwdtinkerversion'
|
86
|
-
end
|
87
94
|
|
88
|
-
def test_runrwdtinkerwin2version
|
89
95
|
raise NotImplementedError, 'Need to write test_runrwdtinkerwin2version'
|
90
|
-
end
|
91
96
|
|
92
|
-
def test_runviewplatform
|
93
97
|
raise NotImplementedError, 'Need to write test_runviewplatform'
|
94
|
-
end
|
95
98
|
|
96
|
-
def test_rwdtinkerversiondiagnostic
|
97
99
|
raise NotImplementedError, 'Need to write test_rwdtinkerversiondiagnostic'
|
98
|
-
end
|
99
100
|
|
100
|
-
def test_rwdwindowreturn
|
101
101
|
raise NotImplementedError, 'Need to write test_rwdwindowreturn'
|
102
|
-
end
|
103
|
-
|
104
|
-
def test_saveconfigurationrecord
|
105
102
|
raise NotImplementedError, 'Need to write test_saveconfigurationrecord'
|
106
|
-
end
|
107
|
-
|
108
103
|
|
109
|
-
def test_viewappletcontents
|
110
104
|
raise NotImplementedError, 'Need to write test_viewappletcontents'
|
111
105
|
end
|
112
106
|
|
@@ -1,9 +1,11 @@
|
|
1
1
|
# this code is to list the gem directories that are installed
|
2
|
-
def showgemfiledirs
|
2
|
+
def showgemfiledirs
|
3
|
+
if FileTest.directory?($gemdirectory)
|
3
4
|
gemdirectory_withgemfiles = File.join( $gemdirectory,"gems")
|
4
5
|
fileList = Dir.new(gemdirectory_withgemfiles).entries.sort.reverse
|
5
6
|
@showgemfiledirsresult = fileList.rwd_method("fillshowgemfiledirsname")
|
6
|
-
end
|
7
|
+
end
|
8
|
+
end
|
7
9
|
|
8
10
|
def fillshowgemfiledirsname(inffile)
|
9
11
|
applet = inffile
|
@@ -1,8 +1,12 @@
|
|
1
1
|
# this code is to list the gemspecs
|
2
|
-
def listgemrecordfiles
|
2
|
+
def listgemrecordfiles
|
3
|
+
begin
|
3
4
|
fileList = Dir.new($gemspecificationsdirectory).entries.sort.delete_if { |x| ! (x =~ /gemspec$/) }
|
4
5
|
|
5
6
|
@listgemrecordfilesresult = fileList.rwd_method("fillgemrecordname")
|
7
|
+
rescue
|
8
|
+
@listgemrecordfilesresult = "file error"
|
9
|
+
end
|
6
10
|
end
|
7
11
|
|
8
12
|
def fillgemrecordname(inffile)
|
@@ -23,6 +23,7 @@ end
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def listgemzips
|
26
|
+
begin
|
26
27
|
startlangdir = $geminstalled_directory
|
27
28
|
#get a list of the files and subdirectories on the starting directory only
|
28
29
|
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
@@ -51,4 +52,7 @@ def listgemzips
|
|
51
52
|
end
|
52
53
|
end
|
53
54
|
@zipslistresult = $zipsarray.rwd_method("fillhypernotename")
|
55
|
+
rescue
|
56
|
+
@zipslistresult = "file error"
|
57
|
+
end
|
54
58
|
end
|
@@ -27,6 +27,8 @@
|
|
27
27
|
@a_rsconfigline12 = fd.readline.chomp
|
28
28
|
@a_rsconfigline13 = fd.readline.chomp
|
29
29
|
@a_rsconfigline14 = fd.readline.chomp
|
30
|
+
@a_rsconfigline15 = fd.readline.chomp
|
31
|
+
@a_rsconfigline16 = fd.readline.chomp
|
30
32
|
while ! fd.eof?
|
31
33
|
@extrarsconfigdatadisplay = fd.readline
|
32
34
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'fileutils'
|
4
4
|
|
5
5
|
newname = "rubyslippers.cnf" # grab the filename to create
|
6
|
-
newdata =@a_rsconfigline1.to_s + "\n" + @a_rsconfigline2.to_s + "\n" + @a_rsconfigline3.to_s + "\n" + @a_rsconfigline4.to_s + "\n" + @a_rsconfigline5.to_s + "\n" + @a_rsconfigline6.to_s + "\n" + @a_rsconfigline7.to_s + "\n" + @a_rsconfigline8.to_s + "\n" + @a_rsconfigline9.to_s + "\n"+ @a_rsconfigline10.to_s + "\n"+ @a_rsconfigline11.to_s + "\n"+ @a_rsconfigline12.to_s + "\n"+ @a_rsconfigline13.to_s + "\n"+ @a_rsconfigline14.to_s + "\n"
|
6
|
+
newdata =@a_rsconfigline1.to_s + "\n" + @a_rsconfigline2.to_s + "\n" + @a_rsconfigline3.to_s + "\n" + @a_rsconfigline4.to_s + "\n" + @a_rsconfigline5.to_s + "\n" + @a_rsconfigline6.to_s + "\n" + @a_rsconfigline7.to_s + "\n" + @a_rsconfigline8.to_s + "\n" + @a_rsconfigline9.to_s + "\n"+ @a_rsconfigline10.to_s + "\n"+ @a_rsconfigline11.to_s + "\n"+ @a_rsconfigline12.to_s + "\n"+ @a_rsconfigline13.to_s + "\n"+ @a_rsconfigline14.to_s + "\n"+ @a_rsconfigline15.to_s + "\n"+ @a_rsconfigline16.to_s + "\n"
|
7
7
|
|
8
8
|
begin # exception trapped block
|
9
9
|
fileName = File.join( ConfigurationDir, newname )
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# test harness
|
2
|
+
|
3
|
+
|
4
|
+
require 'test/unit/testcase'
|
5
|
+
require 'test/unit/assertions'
|
6
|
+
include Test::Unit::Assertions
|
7
|
+
include Test::Unit
|
8
|
+
def rubyslippers_all_tests
|
9
|
+
print "in rubyslippers all tests\n"
|
10
|
+
$testrubyslipperstestcase = TestSuite.new
|
11
|
+
test_runrubyslippers
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_runrubyslippers
|
15
|
+
|
16
|
+
|
17
|
+
begin
|
18
|
+
testasserts = 0
|
19
|
+
print "Starting rubyslippers tests!\n"
|
20
|
+
runselectiontab
|
21
|
+
assert_equal("selectiontab",@rwd_tab) ; testasserts += 1
|
22
|
+
runrubyslippersmenu1
|
23
|
+
listgemrecordfiles
|
24
|
+
assert_equal("gemcommands",@rwd_tab) ; testasserts += 1
|
25
|
+
loadrubyslippersconfiguration
|
26
|
+
assert_equal("rubyslippers.cnf",@a_rsconfigurationfilename) ; testasserts += 1
|
27
|
+
|
28
|
+
showgemfiledirs
|
29
|
+
creategem
|
30
|
+
listgemdirectories
|
31
|
+
$stderr.print "tests completed succesfully!\n"
|
32
|
+
$stderr.print testasserts, " asserts performed\n"
|
33
|
+
|
34
|
+
rescue NotImplementedError, Exception
|
35
|
+
$stderr.print $!
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
def teststobedown
|
44
|
+
runtinkerhelpabout
|
45
|
+
assert_equal("rwdtinkerhelpwindow",@rwd_tab) ; testasserts += 1
|
46
|
+
end
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
def creategem
|
2
2
|
require 'fileutils'
|
3
|
-
|
3
|
+
if FileTest.directory?($gemspec_directory)
|
4
4
|
if @a_viewgemspecdata
|
5
5
|
nametext = $gemspec_directory +"/" + @a_viewgemspecdata.to_s + ".gemspec"
|
6
6
|
end
|
@@ -21,6 +21,7 @@
|
|
21
21
|
rescue
|
22
22
|
@installgemresult = "error during gem install!"
|
23
23
|
end # exception rescue
|
24
|
-
end
|
25
|
-
end
|
24
|
+
end
|
25
|
+
end
|
26
26
|
end
|
27
|
+
end
|
@@ -1,12 +1,14 @@
|
|
1
1
|
# this code is to list the gem directories that are
|
2
|
-
def listgemdirectories
|
2
|
+
def listgemdirectories
|
3
|
+
if FileTest.directory?($gembuild_directory)
|
3
4
|
gemdirectory_gemfiles = $gembuild_directory
|
4
5
|
fileList = Dir.new(gemdirectory_gemfiles).entries.sort
|
5
6
|
Dir.chdir(gemdirectory_gemfiles)
|
6
7
|
fileList.delete_if {|x| !test(?d,x)}
|
7
8
|
@listgemspecrecordfilesresult = ""
|
8
9
|
@listgemdirectoriesresult = fileList.rwd_method("fillshowgemdirsname")
|
9
|
-
Dir.chdir($progdir)
|
10
|
+
Dir.chdir($progdir)
|
11
|
+
end
|
10
12
|
end
|
11
13
|
|
12
14
|
def fillshowgemdirsname(inffile)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# call the rwdtinker helpwindow
|
6
|
+
|
7
|
+
def runremotezipsinstall
|
8
|
+
@rwd_window = "tinkerbackwindow"
|
9
|
+
@rwd_tab = "superantcomremotezipsinstall"
|
10
|
+
end
|
11
|
+
|
@@ -1,15 +1,17 @@
|
|
1
|
-
##VERSION:1.
|
1
|
+
##VERSION:1.03
|
2
2
|
##NAME:$gemdirectory:0
|
3
3
|
#$gemdirectory = "c:\\ruby\\lib\\ruby\\gems\\1.8" # XP machine
|
4
4
|
$gemdirectory = "/usr/lib/ruby/gems/1.8" # Linux machine
|
5
5
|
##NAME:$gemspecificationsdirectory:0
|
6
6
|
#$gemspecificationsdirectory = "c:\\ruby\\lib\\ruby\\gems\\1.8\\specifications" # XP
|
7
|
-
|
7
|
+
$gemspecificationsdirectory = "/usr/lib/ruby/gems/1.8/specifications"
|
8
8
|
##NAME:$xpcommand:0
|
9
9
|
#$xpcommand = "cmd /C " # XP machines with cmd shell
|
10
|
-
|
10
|
+
$xpcommand = " " # Linux machines
|
11
11
|
##NAME:$gemspec_directory:0
|
12
12
|
$gemspec_directory = "/usr/src/rubygems"
|
13
13
|
##NAME:$gembuild_directory:0
|
14
14
|
$gembuild_directory = "/usr/src/rubygems"
|
15
|
-
|
15
|
+
##NAME:$testharnessarray:0
|
16
|
+
$testharnessarray += ["rubyslippers_all_tests"]
|
17
|
+
RubySlippersVersion = "1.03"
|
@@ -1,3 +1,3 @@
|
|
1
|
-
##VERSION:1.
|
2
|
-
$rwdapplicationidentity = "
|
1
|
+
##VERSION:1.63
|
2
|
+
$rwdapplicationidentity = "rubyslippers gem frontend"
|
3
3
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
##VERSION:1.
|
1
|
+
##VERSION:1.64
|
2
2
|
ConfigurationDir = "configuration" # for use in program - init.rb has this value without using this constant
|
3
3
|
CodeName = "rwdtinker"
|
4
4
|
CodeNameFile = CodeName + ".rb"
|
@@ -11,5 +11,5 @@ LangDir = "lang"
|
|
11
11
|
$prevouswindow ="main"
|
12
12
|
$rwdcontrolports =["13713","13714","13715","13716","13717","13718"]
|
13
13
|
$port = 7705
|
14
|
-
$rwdjumplink = ["helpscreen","tinkerbackwindow","returntomain"]
|
15
|
-
RwdTinkerVersion = "1.
|
14
|
+
$rwdjumplink = ["helpscreen","tinkerbackwindow","returntomain","opendocuments","editconfiguration"]
|
15
|
+
RwdTinkerVersion = "1.64"
|
@@ -31,6 +31,8 @@ $rwdguivar=
|
|
31
31
|
<row> <p align=\"right\">12:</p> <text size=70 name=\"a_rsconfigline12\"/> </row>
|
32
32
|
<row> <p align=\"right\">13:</p> <text size=70 name=\"a_rsconfigline13\"/> </row>
|
33
33
|
<row> <p align=\"right\">14:</p> <text size=70 name=\"a_rsconfigline14\"/> </row>
|
34
|
+
<row> <p align=\"right\">15:</p> <text size=70 name=\"a_rsconfigline15\"/> </row>
|
35
|
+
<row> <p align=\"right\">16:</p> <text size=70 name=\"a_rsconfigline16\"/> </row>
|
34
36
|
|
35
37
|
</table>
|
36
38
|
<p>%extrarsconfigdatadisplay%</p>
|
@@ -157,6 +157,11 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
157
157
|
Thanks, Steven Gibson
|
158
158
|
|
159
159
|
=Changelog
|
160
|
+
Version 1.03
|
161
|
+
wrapped directory lists with if clauses
|
162
|
+
updated for rwdtinker 1.64
|
163
|
+
added some unit tests
|
164
|
+
|
160
165
|
Version 1.02
|
161
166
|
changed selection screen to use new hash method
|
162
167
|
updated diagnostic tab
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
@@ -227,6 +227,14 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
227
227
|
Thanks, Steven Gibson
|
228
228
|
|
229
229
|
== Changelog
|
230
|
+
Version 1.64
|
231
|
+
fixed jump with no location
|
232
|
+
|
233
|
+
Version 1.63
|
234
|
+
changed handling of application name returned
|
235
|
+
added jump seletion options
|
236
|
+
added some unit tests
|
237
|
+
|
230
238
|
version 1.62
|
231
239
|
improve distro release script
|
232
240
|
code cleanup
|
data/rwd_files/remotegemlist.txt
CHANGED
@@ -44,10 +44,10 @@ aversa (0.3, 0.2, 0.1)
|
|
44
44
|
Aversa is a little utility for creating and viewing BitTorrent
|
45
45
|
metainfo files.
|
46
46
|
|
47
|
-
|
47
|
+
Bangkok (0.1.0)
|
48
48
|
Chess game file reader and player; can turn games into MIDI files
|
49
49
|
|
50
|
-
|
50
|
+
bangkok (0.1.2, 0.1.1, 0.1.0)
|
51
51
|
Chess game file reader and player; can turn games into MIDI files
|
52
52
|
|
53
53
|
Bloglines4R (0.1.0)
|
@@ -62,6 +62,9 @@ BlueCloth (1.0.0, 0.0.4, 0.0.3, 0.0.2)
|
|
62
62
|
builder (1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.1.0, 1.0.0, 0.1.1, 0.1.0)
|
63
63
|
Builders for MarkUp.
|
64
64
|
|
65
|
+
cacheAR (0.9.1, 0.9.0)
|
66
|
+
cacheAR is a tiny Rails add-on to enable ActiveRecord caching.
|
67
|
+
|
65
68
|
captcha (0.1.2)
|
66
69
|
Ruby/CAPTCHA is an implementation of the 'Completely Automated
|
67
70
|
Public Turing Test to Tell Computers and Humans Apart'.
|
@@ -160,6 +163,9 @@ dbdbd (0.2.2)
|
|
160
163
|
dbus (0.1.10, 0.1.9, 0.1.8, 0.1.7, 0.1.5)
|
161
164
|
Ruby bindings for D-BUS.
|
162
165
|
|
166
|
+
dctl (1.0.1, 1.0.0)
|
167
|
+
dctl - a daemon controller written in Ruby
|
168
|
+
|
163
169
|
dev-utils (1.0.1, 1.0)
|
164
170
|
Debugging utilities: breakpoints, debugging, and tracing.
|
165
171
|
|
@@ -242,7 +248,7 @@ getopt-declare (1.09.7)
|
|
242
248
|
Comprehensive and easy to use command-line parser library using
|
243
249
|
regular expressions (port of Perl's module).
|
244
250
|
|
245
|
-
glue (0.14.0, 0.13.0)
|
251
|
+
glue (0.15.0, 0.14.0, 0.13.0)
|
246
252
|
Glue utilities
|
247
253
|
|
248
254
|
gnuplot (2.1, 2.0, 1.0)
|
@@ -264,7 +270,7 @@ ikko (0.1)
|
|
264
270
|
Imlib2-Ruby (0.4.3)
|
265
271
|
Imlib2 bindings for Ruby.
|
266
272
|
|
267
|
-
instiki (0.9.2)
|
273
|
+
instiki (0.10.0, 0.9.2)
|
268
274
|
Easy to install WikiClone running on WEBrick and Madeleine
|
269
275
|
|
270
276
|
IO-Reactor (0.0.6)
|
@@ -275,6 +281,9 @@ io-reactor (0.05)
|
|
275
281
|
An implementation of the Reactor design pattern for multiplexed
|
276
282
|
asynchronous single-thread IO.
|
277
283
|
|
284
|
+
iotaz (0.1.0)
|
285
|
+
Object-relational mapping library.
|
286
|
+
|
278
287
|
iterator (0.8, 0.6, 0.5)
|
279
288
|
bidirectional external iterators
|
280
289
|
|
@@ -342,7 +351,7 @@ madeleine (0.7.1, 0.6.1, 0.6)
|
|
342
351
|
MB-Ruby (0.1.0)
|
343
352
|
MusicBrainz bindings for Ruby.
|
344
353
|
|
345
|
-
mechanize (0.1.3, 0.1.2, 0.1.1, 0.1.0)
|
354
|
+
mechanize (0.2.1, 0.2.0, 0.1.3, 0.1.2, 0.1.1, 0.1.0)
|
346
355
|
Automated web-browsing.
|
347
356
|
|
348
357
|
merge3 (0.8)
|
@@ -411,14 +420,14 @@ net-tftp (0.1.0)
|
|
411
420
|
Net::TFTP is a pure Ruby implementation of the Trivial File Transfer
|
412
421
|
Protocol (RFC 1350)
|
413
422
|
|
414
|
-
nitro (0.14.0, 0.13.0, 0.12.0, 0.11.0, 0.10.0, 0.9.5, 0.9.3, 0.8.0, 0.7.0, 0.6.0, 0.5.0, 0.4.1, 0.3.0, 0.2.0, 0.1.2)
|
423
|
+
nitro (0.15.0, 0.14.0, 0.13.0, 0.12.0, 0.11.0, 0.10.0, 0.9.5, 0.9.3, 0.8.0, 0.7.0, 0.6.0, 0.5.0, 0.4.1, 0.3.0, 0.2.0, 0.1.2)
|
415
424
|
Nitro Web Engine
|
416
425
|
|
417
426
|
ObjectGraph (1.0.1, 1.0)
|
418
427
|
A simple script that generates a graph of the ruby class
|
419
428
|
hierarchies. Uses GraphViz (separate install).
|
420
429
|
|
421
|
-
og (0.14.0, 0.13.0, 0.12.0, 0.11.0, 0.10.0, 0.9.5, 0.9.3, 0.8.0, 0.7.0, 0.6.0, 0.5.0)
|
430
|
+
og (0.15.0, 0.14.0, 0.13.0, 0.12.0, 0.11.0, 0.10.0, 0.9.5, 0.9.3, 0.8.0, 0.7.0, 0.6.0, 0.5.0)
|
422
431
|
Og (ObjectGraph)
|
423
432
|
|
424
433
|
Ook (1.0.2)
|
@@ -459,7 +468,7 @@ posixlock (0.0.1)
|
|
459
468
|
postgres (0.7.1)
|
460
469
|
The extension library to access a PostgreSQL database from Ruby.
|
461
470
|
|
462
|
-
postgres-pr (0.3.6, 0.3.5, 0.3.4, 0.3.3, 0.3.2, 0.3.1, 0.3.0, 0.2.2, 0.2.1, 0.2.0, 0.1.1, 0.1.0, 0.0.1)
|
471
|
+
postgres-pr (0.4.0, 0.3.6, 0.3.5, 0.3.4, 0.3.3, 0.3.2, 0.3.1, 0.3.0, 0.2.2, 0.2.1, 0.2.0, 0.1.1, 0.1.0, 0.0.1)
|
463
472
|
A pure Ruby interface to the PostgreSQL (>= 7.4) database
|
464
473
|
|
465
474
|
pqa (0.7, 0.6, 0.5)
|
@@ -484,10 +493,10 @@ rails (0.11.1, 0.11.0, 0.10.1, 0.10.0, 0.9.5, 0.9.4.1, 0.9.4, 0.9.3, 0.9.2, 0.9.
|
|
484
493
|
Web-application framework with template engine, control-flow layer,
|
485
494
|
and ORM.
|
486
495
|
|
487
|
-
rake (0.5.0, 0.4.15, 0.4.14, 0.4.13, 0.4.12, 0.4.11, 0.4.10, 0.4.9, 0.4.8, 0.4.7, 0.4.6, 0.4.4, 0.4.3, 0.4.2, 0.4.0, 0.3.2)
|
496
|
+
rake (0.5.3, 0.5.0, 0.4.15, 0.4.14, 0.4.13, 0.4.12, 0.4.11, 0.4.10, 0.4.9, 0.4.8, 0.4.7, 0.4.6, 0.4.4, 0.4.3, 0.4.2, 0.4.0, 0.3.2)
|
488
497
|
Ruby based make-like utility.
|
489
498
|
|
490
|
-
rant (0.3.0)
|
499
|
+
rant (0.3.2, 0.3.0)
|
491
500
|
Rant is a Ruby based build tool.
|
492
501
|
|
493
502
|
rdf (0.3)
|
@@ -520,7 +529,7 @@ rhizmail (0.1.0)
|
|
520
529
|
rlirc (0.3.1, 0.3, 0.2, 0.1)
|
521
530
|
a replacement for irexec and irxevent from lirc
|
522
531
|
|
523
|
-
rmagick (1.7.3, 1.7.2, 1.7.1)
|
532
|
+
rmagick (1.7.4, 1.7.3, 1.7.2, 1.7.1)
|
524
533
|
RMagick is an interface between the Ruby programming language and
|
525
534
|
the ImageMagick and GraphicsMagick image processing libraries.
|
526
535
|
|
@@ -600,7 +609,7 @@ rubypants (0.2.0)
|
|
600
609
|
rubyscript2exe (0.3.3)
|
601
610
|
A Ruby Compiler
|
602
611
|
|
603
|
-
rubyslippers (1.01, 1.00, 0.99, 0.98, 0.97, 0.96, 0.95, 0.94, 0.93, 0.92)
|
612
|
+
rubyslippers (1.02, 1.01, 1.00, 0.99, 0.98, 0.97, 0.96, 0.95, 0.94, 0.93, 0.92)
|
604
613
|
RubySlippers is a GUI wrapper for RubyGems using RubyWebDialogs.
|
605
614
|
|
606
615
|
rubyzip (0.5.8, 0.5.7, 0.5.5)
|
@@ -622,31 +631,31 @@ rwdaddresses (1.02, 1.01, 0.99, 0.98, 0.97, 0.95, 0.94, 0.93, 0.92, 0.91, 0.9, 0
|
|
622
631
|
rwdaddresses is contact book application using rwdtinker and
|
623
632
|
RubyWebDialogs.
|
624
633
|
|
625
|
-
rwddemo (0.91, 0.90, 0.8, 0.7, 0.6)
|
634
|
+
rwddemo (0.92, 0.91, 0.90, 0.8, 0.7, 0.6)
|
626
635
|
rwddemo application shows rwdtinker and RubyWebDialogs features.
|
627
636
|
|
628
|
-
rwdgutenberg (0.03)
|
637
|
+
rwdgutenberg (0.04, 0.03)
|
629
638
|
rwdgutenberg application is a text file reader for RubyWebDialogs.
|
630
639
|
|
631
|
-
rwdhypernote (0.06, 0.05, 0.04, 0.03)
|
640
|
+
rwdhypernote (0.07, 0.06, 0.05, 0.04, 0.03)
|
632
641
|
rwdhypernote application is a hierarchical note taker for
|
633
642
|
RubyWebDialogs.
|
634
643
|
|
635
644
|
rwdmovies (0.94, 0.93, 0.92, 0.91, 0.90, 0.7, 0.6)
|
636
645
|
rwdmovies application is a movie database using RubyWebDialogs.
|
637
646
|
|
638
|
-
rwdschedule (0.98, 0.97, 0.96, 0.95, 0.94, 0.93, 0.92, 0.91, 0.9, 0.8, 0.6, 0.5)
|
647
|
+
rwdschedule (0.99, 0.98, 0.97, 0.96, 0.95, 0.94, 0.93, 0.92, 0.91, 0.9, 0.8, 0.6, 0.5)
|
639
648
|
rwdschedule is an calendar application using rwdtinker and
|
640
649
|
RubyWebDialogs.
|
641
650
|
|
642
|
-
rwdshell (0.98, 0.97, 0.96, 0.95, 0.94, 0.93, 0.92, 0.9)
|
651
|
+
rwdshell (0.99, 0.98, 0.97, 0.96, 0.95, 0.94, 0.93, 0.92, 0.9)
|
643
652
|
rwdshell is a GUI front end for operating system commands with
|
644
653
|
rwdtinker and RubyWebDialogs features.
|
645
654
|
|
646
|
-
rwdtinker (1.62, 1.61, 1.60, 1.59, 1.58, 1.57, 1.56, 1.55, 1.54, 1.53, 1.52, 1.51, 1.48, 1.47, 1.46, 1.45, 1.44, 1.43, 1.42, 1.41, 1.24, 1.23, 1.4, 1.3, 1.2)
|
655
|
+
rwdtinker (1.64, 1.63, 1.62, 1.61, 1.60, 1.59, 1.58, 1.57, 1.56, 1.55, 1.54, 1.53, 1.52, 1.51, 1.48, 1.47, 1.46, 1.45, 1.44, 1.43, 1.42, 1.41, 1.24, 1.23, 1.4, 1.3, 1.2)
|
647
656
|
rwdtinker application is a framework to program for RubyWebDialogs.
|
648
657
|
|
649
|
-
rwdtorrent (0.02, 0.01)
|
658
|
+
rwdtorrent (0.03, 0.02, 0.01)
|
650
659
|
rwdtorrent is a GUI front end for BitTorrent with rwdtinker and
|
651
660
|
RubyWebDialogs features.
|
652
661
|
|
@@ -730,7 +739,7 @@ sqlite-ruby (2.2.3, 2.2.2, 2.2.1, 2.2.0, 2.1.0, 2.0.3, 2.0.2)
|
|
730
739
|
|
731
740
|
sqlite3-ruby (1.1.0, 1.0.1, 1.0.0, 0.9.0, 0.6.0, 0.5.0)
|
732
741
|
SQLite3/Ruby is a module to allow Ruby scripts to interface with a
|
733
|
-
|
742
|
+
SQLite3 database.
|
734
743
|
|
735
744
|
sstruct (1.0.1)
|
736
745
|
SuperStruct class: Best of Struct, OpenStruct, Array, Hash, etc.
|
@@ -793,6 +802,10 @@ tidy (1.1.2, 1.1.1, 1.1.0, 1.0.1, 1.0.0)
|
|
793
802
|
transaction-simple (1.2.0)
|
794
803
|
Simple object transaction support for Ruby.
|
795
804
|
|
805
|
+
tsql_shparser (0.0.1)
|
806
|
+
tsql_shparser is a Shallow Parser for t-SQL (which is the procedural
|
807
|
+
language for MS SQL Server 2000).
|
808
|
+
|
796
809
|
vcs (0.1)
|
797
810
|
A wrapper over any version control system
|
798
811
|
|
@@ -809,7 +822,7 @@ vruby (2004.08.07)
|
|
809
822
|
webgen (0.3.2, 0.3.1, 0.3.0, 0.2.0, 0.1.0)
|
810
823
|
Webgen is a templated based static website generator.
|
811
824
|
|
812
|
-
wee (0.7.0, 0.6.0, 0.5.0, 0.4.0, 0.3.1, 0.1.0)
|
825
|
+
wee (0.8.0, 0.7.0, 0.6.0, 0.5.0, 0.4.0, 0.3.1, 0.1.0)
|
813
826
|
Wee is a framework for building highly dynamic web applications.
|
814
827
|
|
815
828
|
wxrubylayouts (0.0.3, 0.0.2, 0.0.1)
|
data/rwdconfig.dist
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##VERSION:1.
|
1
|
+
##VERSION:1.63
|
2
2
|
# rwdtinker core configuration file
|
3
3
|
##NAME: ConfigLocation:0
|
4
4
|
ConfigLocation=""
|
@@ -7,4 +7,6 @@ ConfigLocation=""
|
|
7
7
|
##NAME:$testharnessarray:0
|
8
8
|
$testharnessarray = ["rwdtinker_all_tests"]
|
9
9
|
##NAME:TestNow:0
|
10
|
-
TestNow=false
|
10
|
+
TestNow=false # turning this on will run the unit tests
|
11
|
+
##NAME:$testharness:0
|
12
|
+
$testharness=true
|
data/tests/RubyGauge.rb
ADDED
@@ -0,0 +1,179 @@
|
|
1
|
+
#--------------------------------------------------------------------#
|
2
|
+
# #
|
3
|
+
# RubyGauge version 1 #
|
4
|
+
# Copyright (c) 2005, Harrison Ainsworth. #
|
5
|
+
# #
|
6
|
+
# http://hxa7241.org/ #
|
7
|
+
# #
|
8
|
+
#--------------------------------------------------------------------#
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
require 'find'
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
# Counts lines of code in ruby source files.
|
19
|
+
#
|
20
|
+
# just a simple example ruby program, produced as an exercise.
|
21
|
+
#
|
22
|
+
# * directories are looked in recursively for source files
|
23
|
+
# * source files with the following name extensions are recognized:
|
24
|
+
# .rb .rbw
|
25
|
+
# * a line is counted as code if it is not empty and not solely comment
|
26
|
+
#
|
27
|
+
# == requirements
|
28
|
+
# ruby 1.8
|
29
|
+
#
|
30
|
+
# == usage
|
31
|
+
# RubyGauge.rb [-f...] (file|directory)pathname ...
|
32
|
+
# RubyGauge.rb -help|-?
|
33
|
+
#
|
34
|
+
# switches:
|
35
|
+
# -f<[l|s][1|2]> set output format to long/short, linecount only /
|
36
|
+
# linecount and filecount (defaults to -fl2)
|
37
|
+
# -help|-? prints this message
|
38
|
+
#
|
39
|
+
# ==acknowledgements
|
40
|
+
# * ruby: http://ruby-lang.org/
|
41
|
+
# * the pragmaticprogrammers pickaxe book:
|
42
|
+
# http://phrogz.net/ProgrammingRuby/
|
43
|
+
# * rubygarden: http://rubygarden.org/ruby?CodingInRuby
|
44
|
+
#
|
45
|
+
# == license
|
46
|
+
# this software is too short and insignificant to have a license.
|
47
|
+
|
48
|
+
module RubyGauge
|
49
|
+
|
50
|
+
# Entry point if run from the command line.
|
51
|
+
#
|
52
|
+
# Reads command line args, writes output to stdout.
|
53
|
+
#
|
54
|
+
def RubyGauge.main
|
55
|
+
|
56
|
+
# check if help message needed
|
57
|
+
if $*.empty? || !(RubyGauge.getSwitchs( $*, '(help|\?)' ).empty?)
|
58
|
+
|
59
|
+
puts "\n#{@@BANNER}\n#{@@HELP}"
|
60
|
+
|
61
|
+
else
|
62
|
+
|
63
|
+
# count
|
64
|
+
pathnames = RubyGauge.getTokens( $*, '^[^-\/]', ' ' )
|
65
|
+
|
66
|
+
fileCount = []
|
67
|
+
lineCount = RubyGauge.countLinesInFileTree( pathnames, fileCount )
|
68
|
+
|
69
|
+
# output counts
|
70
|
+
format = RubyGauge.getSwitchs( $*, 'f', '-fl2' ).last[2,2]
|
71
|
+
|
72
|
+
(@@LINES_FORMAT = { 's' => "#{lineCount}" }).default = "\n #{lineCount} line#{lineCount == 1 ? '' : 's'} of code\n"
|
73
|
+
(@@FILES_FORMAT = { 's' => " #{fileCount}" }).default = " #{fileCount[0]} file#{fileCount[0] == 1 ? '' : 's'}\n"
|
74
|
+
print @@LINES_FORMAT[format[0,1]]
|
75
|
+
print @@FILES_FORMAT[format[0,1]] unless format[1,1] == '1'
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
|
82
|
+
def RubyGauge.getSwitchs( commandline, pattern, default=nil )
|
83
|
+
|
84
|
+
RubyGauge.getTokens( commandline, '^(-|\/)' + pattern, default )
|
85
|
+
|
86
|
+
end
|
87
|
+
|
88
|
+
|
89
|
+
def RubyGauge.getTokens( commandline, pattern, default=nil )
|
90
|
+
|
91
|
+
tokens = []
|
92
|
+
|
93
|
+
commandline.each do |token|
|
94
|
+
if token =~ /#{pattern}/
|
95
|
+
tokens.push token
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
if tokens.empty? && default
|
100
|
+
tokens.push default
|
101
|
+
end
|
102
|
+
|
103
|
+
tokens
|
104
|
+
|
105
|
+
end
|
106
|
+
|
107
|
+
|
108
|
+
# Counts lines of ruby code in filetree recursively.
|
109
|
+
#
|
110
|
+
# A line is counted as code if it is not empty and not solely comment.
|
111
|
+
#
|
112
|
+
# == parameters
|
113
|
+
# * pathnames: Array of String of file or directory pathname
|
114
|
+
# (relative or absolute)
|
115
|
+
# * fileCount: Array of Numeric, length 1. Just an example of a
|
116
|
+
# 'reference' parameter
|
117
|
+
# * return: Fixnum of the line count
|
118
|
+
#
|
119
|
+
def RubyGauge.countLinesInFileTree( pathnames, fileCount=[] )
|
120
|
+
|
121
|
+
fileCount[0] = 0
|
122
|
+
lineCount = 0
|
123
|
+
|
124
|
+
# scan directory tree
|
125
|
+
Find.find( *pathnames ) do |fileOrDirName|
|
126
|
+
|
127
|
+
# filter file types (to ruby)
|
128
|
+
if FileTest.file?( fileOrDirName ) &&
|
129
|
+
FileTest.readable?( fileOrDirName ) &&
|
130
|
+
fileOrDirName =~ /\.(rb|rbw)\Z/
|
131
|
+
|
132
|
+
fileCount[0] += 1
|
133
|
+
|
134
|
+
filePathname = File.expand_path( fileOrDirName )
|
135
|
+
|
136
|
+
# read file
|
137
|
+
File.open( filePathname, 'r' ) do |file|
|
138
|
+
|
139
|
+
# scan file lines
|
140
|
+
file.each_line do |line|
|
141
|
+
# select non blank, non comment-only line
|
142
|
+
unless line =~ /^\s*(#|\Z)/
|
143
|
+
lineCount += 1
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
end
|
148
|
+
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
lineCount
|
153
|
+
|
154
|
+
end
|
155
|
+
|
156
|
+
|
157
|
+
@@BANNER = "-------------------------------------------------------------\n" +
|
158
|
+
"RubyGauge 2005 (v1)\n" +
|
159
|
+
"Copyright (c) 2005, Harrison Ainsworth.\n\n" +
|
160
|
+
"http://hxa7241.org/\n" +
|
161
|
+
"-------------------------------------------------------------\n"
|
162
|
+
|
163
|
+
@@HELP = "RubyGauge counts lines of code in ruby source files.\n\n" +
|
164
|
+
"* directories are looked in recursively for source files\n" +
|
165
|
+
"* source files with the following name extensions are recognized: .rb .rbw\n" +
|
166
|
+
"* a line is counted as code if it is not empty and not solely comment\n" +
|
167
|
+
"\nusage:\n" +
|
168
|
+
" RubyGauge.rb [-f...] (file|directory)pathname ...\n" +
|
169
|
+
" RubyGauge.rb -help|-?\n" +
|
170
|
+
"\nswitches:\n" +
|
171
|
+
" -f<[l|s][1|2]> set output format to long/short, linecount only / linecount and filecount (defaults to -fl2)\n" +
|
172
|
+
" -help|-? prints this message\n"
|
173
|
+
|
174
|
+
end
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
RubyGauge.main
|
data/tests/makedist.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.8
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rubyslippers
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "1.
|
7
|
-
date: 2005-04-
|
6
|
+
version: "1.03"
|
7
|
+
date: 2005-04-09
|
8
8
|
summary: RubySlippers is a GUI wrapper for RubyGems using RubyWebDialogs.
|
9
9
|
require_paths:
|
10
10
|
- "."
|
@@ -39,6 +39,10 @@ files:
|
|
39
39
|
- code/01rwdcore/test_cases.rb
|
40
40
|
- code/01rwdcore/test_harness.rb
|
41
41
|
- code/01rwdcore/jumplinkcommand.rb
|
42
|
+
- code/01rwdcore/selectiontab.rb
|
43
|
+
- code/01rwdcore/rundocuments.rb
|
44
|
+
- code/01rwdcore/runhelpabout.rb
|
45
|
+
- code/01rwdcore/runeditconfiguration.rb
|
42
46
|
- code/superant.com.rwdtinkerbackwindow/controlclient.rb
|
43
47
|
- code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
|
44
48
|
- code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
|
@@ -61,6 +65,7 @@ files:
|
|
61
65
|
- code/superant.com.rwdtinkerbackwindow/remotegemlist.rb
|
62
66
|
- code/superant.com.rwdtinkerbackwindow/installremotegem.rb
|
63
67
|
- code/superant.com.rwdtinkerbackwindow/listgemzips.rb
|
68
|
+
- code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb
|
64
69
|
- code/zz0applicationend/zz0end.rb
|
65
70
|
- code/superant.com.rubyslippers/gemserve.rb
|
66
71
|
- code/superant.com.rubyslippers/listgemrecord.rb
|
@@ -86,6 +91,7 @@ files:
|
|
86
91
|
- code/superant.com.rubyslippers/saveconfigurationrecord.rb
|
87
92
|
- code/superant.com.rubyslippers/gemwhich.rb
|
88
93
|
- code/superant.com.rubyslippers/jumplinkupdate.rb
|
94
|
+
- code/superant.com.rubyslippers/test_cases.rb
|
89
95
|
- code/superant.com.rubyslippersbackwindow/copygemspecdata.rb
|
90
96
|
- code/superant.com.rubyslippersbackwindow/changegemspecdata.rb
|
91
97
|
- code/superant.com.rubyslippersbackwindow/listgemdirectories.rb
|
@@ -207,17 +213,15 @@ files:
|
|
207
213
|
- rwd_files/HowTo_RubySlippers.txt
|
208
214
|
- rwd_files/remotegemlist.txt
|
209
215
|
- zips/rwdahelloworld-0.5.zip
|
210
|
-
- tests/
|
211
|
-
- tests/test.result
|
216
|
+
- tests/RubyGauge.rb
|
212
217
|
- tests/totranslate.lang
|
213
218
|
- tests/cleancnf.sh
|
214
219
|
- tests/rdep.rb
|
215
220
|
- tests/checkdepends.sh
|
216
221
|
- tests/makedist.rb
|
217
|
-
- tests/rubyslippers-1.01.gemspec
|
218
|
-
- Readme.txt
|
219
222
|
- init.rb
|
220
223
|
- rwdconfig.dist
|
224
|
+
- Readme.txt
|
221
225
|
test_files: []
|
222
226
|
rdoc_options:
|
223
227
|
- "--main"
|
@@ -1,16 +0,0 @@
|
|
1
|
-
Gem::Specification.new do |s|
|
2
|
-
s.name = %q{rubyslippers}
|
3
|
-
s.version = "1.01"
|
4
|
-
s.date = %q{2005-3-22}
|
5
|
-
s.summary = %q{RubySlippers is a GUI wrapper for RubyGems using RubyWebDialogs.}
|
6
|
-
s.email = %q{steven@superant.com}
|
7
|
-
s.homepage = %q{http://rubyforge.org/projects/rwdapplications/}
|
8
|
-
s.rubyforge_project = %q{rwdapplications}
|
9
|
-
s.description = %q{RubySlippers is a GUI wrapper for RubyGems using RubyWebDialogs.}
|
10
|
-
s.has_rdoc = true
|
11
|
-
s.require_paths = ["."]
|
12
|
-
s.files = Dir['bin/*.*'] + Dir['lib/*.*'] + Dir['code/**/*.rb'] + Dir['configuration/*.*'] + Dir['extras/**/*.*'] + Dir['ev/*.*'] + Dir['lang/**/*.*'] + Dir['gui/**/*.*'] + Dir['installed/*.*'] + Dir['rwd_files/*.*'] + Dir['zips/*.*'] +Dir['tests/*.*'] + Dir['*.*']
|
13
|
-
s.extra_rdoc_files = ["rwd_files/HowTo_RubySlippers.txt", "Readme.txt", "rwd_files/HowTo_Tinker.txt", "rwd_files/HowTo_TinkerWin2.txt" ]
|
14
|
-
s.rdoc_options = ["--main", "rwd_files/HowTo_RubySlippers.txt"]
|
15
|
-
s.executables = ["rubyslippers"]
|
16
|
-
end
|
data/tests/rwdtinkertestEN.rb
DELETED
@@ -1,163 +0,0 @@
|
|
1
|
-
#-------------------------------------------------------------------------------------------------------------#
|
2
|
-
# test with the WATIR controller
|
3
|
-
#
|
4
|
-
# Simple test based on Google/watir demo
|
5
|
-
#
|
6
|
-
#------------------------------------------------------------------------------------------------------------ #
|
7
|
-
|
8
|
-
#includes
|
9
|
-
require '../watir' # the controller
|
10
|
-
|
11
|
-
#test::unit includes
|
12
|
-
require 'test/unit'
|
13
|
-
require 'test/unit/ui/console/testrunner'
|
14
|
-
require '../unittests/testUnitAddons'
|
15
|
-
|
16
|
-
#code to set your current path in Windows
|
17
|
-
$myDir = File.dirname(__FILE__)
|
18
|
-
$LOAD_PATH << $myDir
|
19
|
-
|
20
|
-
class TC_rwdtinker_suite < Test::Unit::TestCase
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
def test_a_Open1
|
25
|
-
#--------------------------------------------------------
|
26
|
-
# test case that shows basic WATIR functionality:
|
27
|
-
# * enter text in a field
|
28
|
-
# * click a button
|
29
|
-
#
|
30
|
-
|
31
|
-
#variables
|
32
|
-
testSite = 'http://localhost:7705'
|
33
|
-
|
34
|
-
#open the IE browser
|
35
|
-
$ie = IE.new
|
36
|
-
|
37
|
-
puts '## Beginning of test: rwdtinker'
|
38
|
-
puts ' '
|
39
|
-
|
40
|
-
|
41
|
-
$ie.goto(testSite)
|
42
|
-
puts ' Action: entered ' + testSite + 'in the address bar.'
|
43
|
-
sleep 1
|
44
|
-
|
45
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_help";document.bodyform.submit();').click
|
46
|
-
|
47
|
-
$ie.button(:caption, 'Click for Version').click
|
48
|
-
|
49
|
-
$ie.button(:caption, 'Cancel').click
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
sleep 1
|
54
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_selectiontab";document.bodyform.submit();').click
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
$ie.button(:caption, 'RwdTinker Help Window').click
|
59
|
-
puts ' Action: clicked the Help Window link'
|
60
|
-
|
61
|
-
end
|
62
|
-
|
63
|
-
def test_b_Buttons1
|
64
|
-
|
65
|
-
|
66
|
-
sleep 1
|
67
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_nexttab";document.bodyform.submit();').click
|
68
|
-
puts ' Action: clicked the nexttab link'
|
69
|
-
|
70
|
-
|
71
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_main";document.bodyform.submit();').click
|
72
|
-
puts ' Action: clicked the main tab link'
|
73
|
-
|
74
|
-
|
75
|
-
$ie.button(:caption, "Cancel").click
|
76
|
-
puts ' Action: clicked the cancel button'
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
end
|
81
|
-
|
82
|
-
def test_c_tabs
|
83
|
-
|
84
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_one";document.bodyform.submit();').click
|
85
|
-
puts ' Action: clicked tab one'
|
86
|
-
|
87
|
-
|
88
|
-
end
|
89
|
-
|
90
|
-
def test_d_tabs
|
91
|
-
|
92
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_selectiontab";document.bodyform.submit();').click
|
93
|
-
puts ' Action: clicked the selectiontab'
|
94
|
-
|
95
|
-
|
96
|
-
$ie.button(:caption, 'RwdTinker Back Window').click
|
97
|
-
puts ' Action: clicked the Help Window link'
|
98
|
-
|
99
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_backone";document.bodyform.submit();').click
|
100
|
-
puts ' Action: clicked the backone tab'
|
101
|
-
|
102
|
-
|
103
|
-
assert($ie.pageContainsText("previous window") )
|
104
|
-
|
105
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_diagnostictab";document.bodyform.submit();').click
|
106
|
-
puts ' Action: clicked the diagnostictab top link'
|
107
|
-
|
108
|
-
|
109
|
-
$ie.button(:caption, "View Ruby Version").click
|
110
|
-
puts ' Action: clicked Ruby Version button.'
|
111
|
-
|
112
|
-
assert($ie.pageContainsText("Version") )
|
113
|
-
|
114
|
-
$ie.button(:caption, "view platform").click
|
115
|
-
puts ' Action: clicked platform button.'
|
116
|
-
|
117
|
-
assert($ie.pageContainsText("Platform is") )
|
118
|
-
|
119
|
-
$ie.button(:caption, "View rwdtinker Version").click
|
120
|
-
puts ' Action: clicked rwdtinker version button.'
|
121
|
-
|
122
|
-
assert($ie.pageContainsText("rwdtinker version") )
|
123
|
-
|
124
|
-
end # end of test_d
|
125
|
-
|
126
|
-
def test_e_tabs
|
127
|
-
|
128
|
-
|
129
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_filelister";document.bodyform.submit();').click
|
130
|
-
|
131
|
-
|
132
|
-
assert($ie.pageContainsText("View the list") )
|
133
|
-
|
134
|
-
$ie.button(:caption, "List Files").click
|
135
|
-
puts ' Action: clicked the list files button.'
|
136
|
-
|
137
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="fillappletname/rwdviewlogo-0.4.inf";document.bodyform.submit();').click
|
138
|
-
|
139
|
-
|
140
|
-
$ie.button(:caption, "View Install Text").click
|
141
|
-
puts ' Action: clicked the View Install Text button.'
|
142
|
-
|
143
|
-
assert($ie.pageContainsText("rwdviewlogo") )
|
144
|
-
|
145
|
-
|
146
|
-
end
|
147
|
-
|
148
|
-
def test_f_tabs
|
149
|
-
|
150
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_zipslister";document.bodyform.submit();').click
|
151
|
-
|
152
|
-
assert($ie.pageContainsText("File Name") )
|
153
|
-
|
154
|
-
assert($ie.pageContainsText("view the list of zip files") )
|
155
|
-
|
156
|
-
$ie.button(:caption, "List applets available for installing").click
|
157
|
-
puts ' Action: clicked the List applets available for installing button.'
|
158
|
-
|
159
|
-
$ie.link(:url, 'javascript:document.bodyform.rwd_action.value="fillziptoinstallname/rwdhelloworld-0.3.zip";document.bodyform.submit();').click
|
160
|
-
|
161
|
-
end
|
162
|
-
|
163
|
-
end #end of class TC_google_suite
|
data/tests/test.result
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
Loaded suite C:/ruby/sample/watir/examples/rwdtinkertestEN
|
2
|
-
Started
|
3
|
-
## Beginning of test: rwdtinker
|
4
|
-
|
5
|
-
Action: entered http://localhost:7705in the address bar.
|
6
|
-
Action: clicked the Help Window link
|
7
|
-
Action: clicked the nexttab link
|
8
|
-
Action: clicked the main tab link
|
9
|
-
Action: clicked the cancel button
|
10
|
-
Action: clicked tab one
|
11
|
-
Action: clicked the selectiontab
|
12
|
-
Action: clicked the Help Window link
|
13
|
-
Action: clicked the backone tab
|
14
|
-
pageContainsText: Looking for: previous window (string) - found it ok
|
15
|
-
Action: clicked the diagnostictab top link
|
16
|
-
Action: clicked Ruby Version button.
|
17
|
-
pageContainsText: Looking for: Version (string) - found it ok
|
18
|
-
Action: clicked platform button.
|
19
|
-
pageContainsText: Looking for: Platform is (string) - found it ok
|
20
|
-
Action: clicked rwdtinker version button.
|
21
|
-
pageContainsText: Looking for: rwdtinker version (string) - found it ok
|
22
|
-
pageContainsText: Looking for: View the list (string) - found it ok
|
23
|
-
Action: clicked the list files button.
|
24
|
-
Action: clicked the View Install Text button.
|
25
|
-
pageContainsText: Looking for: rwdviewlogo (string) - found it ok
|
26
|
-
pageContainsText: Looking for: File Name (string) - found it ok
|
27
|
-
pageContainsText: Looking for: view the list of zip files (string) - found it ok
|
28
|
-
Action: clicked the List applets available for installing button.
|
29
|
-
|
30
|
-
Finished in 32.716 seconds.
|
31
|
-
|
32
|
-
6 tests, 8 assertions, 0 failures, 0 errors
|