rwdtinker 1.52 → 1.53

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,11 @@
5
5
 
6
6
  You can download an applet created by someone else
7
7
 
8
- put the file in the zips directory",
8
+ put the file in the zips directory
9
+
10
+ rwdtinker applets packaged as RubyGems can be used if you have RubyGems installed.
11
+ You can download rwdtinker gems at the 'Install Remote Applets' tab
12
+ ",
9
13
  :applet_viewing => "You can get a list of all installed applets by clicking the 'listfiles button'
10
14
  To see the text of a install file
11
15
  Type in the name of the file you want.
@@ -32,6 +36,23 @@
32
36
  :applet_tinkerbackeditconfiguration => " You can edit the configuration
33
37
 
34
38
  Remember to reload the configuration variables if you want your
35
- changes used."
36
-
39
+ changes used.",
40
+ :remotegemapplet_install => " To download and install use the 'Install Remote Applets'
41
+
42
+ First click on 'List applets in the Remote GEM Repository available for downloading'
43
+ then go to the very bottom to click on the applet you want
44
+ then on the top click 'install remote Gem applet package'
45
+
46
+ This installs the package in the Gem system
47
+ You still need to install it into rwdtinker - do that in the 'List Zips' tab
48
+
49
+ For this feature to work, you need
50
+ RubyGems installed
51
+ Variables set correctly in the tinerwin2.cnf file
52
+ $xpcommand, $gemdirectory_withgemfiles and $geminstalled_directory
53
+ the defaults as shipped will normally be for a Debian Linux system
54
+ On Debian Linux, you would usually need to be running rwdtinker as root in order to install RubyGems
55
+
56
+ You can view the list of rwdtinker applets you have installed already by clicking 'view already installed GEM applets'
57
+ "
37
58
  )
@@ -0,0 +1,18 @@
1
+ def superantcominstallremotegemapplet
2
+ require 'fileutils'
3
+
4
+ tempnametext = "%s" % [@superantcominstallremoteappletinput]
5
+ temparray = tempnametext.split(/ /)
6
+ nametext = temparray[0]
7
+ begin # exception trapped block
8
+
9
+
10
+ commandline = $xpcommand + "gem install " + nametext
11
+
12
+ @superantcominstallremotegemappletresult = `#{commandline}`
13
+
14
+ rescue
15
+ @superantcominstallremotegemappletresult = "error during gem install!"
16
+ end # exception rescue
17
+
18
+ end
@@ -0,0 +1,12 @@
1
+ # this code is to list the gem directories that are installed
2
+ def superantcomshowgemfiledirs
3
+
4
+ fileList = Dir.new($gemdirectory_withgemfiles).entries.sort.delete_if { |x| ! (x =~ /\Arwdzip/) }
5
+ @superantcomshowgemappletdirsresult = fileList.rwd_method("superantcomshowgemappletdirsname")
6
+ end
7
+
8
+ def superantcomshowgemappletdirsname(inffile)
9
+ applet = inffile
10
+ @a_gemfiledirsinput = applet
11
+
12
+ end
@@ -1,7 +1,7 @@
1
1
  # this code is to list the zips
2
2
 
3
3
 
4
- def fillhypernotename(inffile)
4
+ def fillzipappletname(inffile)
5
5
  applet = inffile.gsub(/\.zip$/, "")
6
6
  @a_installapplet = applet
7
7
 
@@ -50,5 +50,5 @@ def listgemzips
50
50
  findzipfiles(x + "/**")
51
51
  end
52
52
  end
53
- @zipslistresult = $zipsarray.rwd_method("fillhypernotename")
53
+ @zipslistresult = $zipsarray.rwd_method("fillzipappletname")
54
54
  end
@@ -24,6 +24,9 @@ def runhelpwindowtinkerwin2
24
24
  $help_topic = "remote_control"
25
25
 
26
26
  end
27
+ if @rwd_tab == "superantcomremotezipsinstall"
28
+ $help_topic = "remotegemapplet_install"
29
+ end
27
30
 
28
31
 
29
32
  if @rwd_window != "rwdtinkerhelpwindow"
@@ -0,0 +1,24 @@
1
+ # This tinker method is to retrieve the list of rwdzip applets available to install from the remote repository
2
+
3
+ def superantcomremotegemlist
4
+ gemcommandoption = "search --remote "
5
+ gemfilename = "rwdzip"
6
+ commandtext = "gem search --remote rwdzip"
7
+ commandtemp = $xpcommand + commandtext
8
+ begin # exception trapped block
9
+
10
+ tempremotegemappletsresult = `#{commandtemp} 2>&1`
11
+ @superantcomremotegemappletsfullresult = tempremotegemappletsresult
12
+ fileList = tempremotegemappletsresult.split(/\n/).delete_if { |x| ! (x =~ /\Arwdzip/) }
13
+
14
+ @superantcomremotegemappletsresult = fileList.rwd_method("superantcomremotegemappletdirsname")
15
+ rescue SystemCallError, StandardError
16
+ @superantcomremotegemappletsresult = "system call error: " + $!
17
+ end # exception rescue
18
+ end
19
+
20
+ def superantcomremotegemappletdirsname(inffile)
21
+ applet = inffile
22
+ @superantcominstallremoteappletinput = applet
23
+
24
+ end
@@ -1,2 +1,2 @@
1
1
 
2
- RwdTinkerVersion = "1.52"
2
+ RwdTinkerVersion = "1.53"
@@ -2,6 +2,10 @@
2
2
  TinkerWin2ConfigurationFileName = "tinkerwin2variables.cnf" # this file name - do not change
3
3
  $zipslocation = "zips" # location of applets to add
4
4
  $zipsarray = [""]
5
+ $xpcommand = " " # Linux machines
6
+ # $xpcommand = "cmd /C " # XP machines with cmd shell
7
+ $gemdirectory_withgemfiles = "/usr/lib/ruby/gems/1.8/gems"
8
+ # $gemdirectory_withgemfiles = "c:\\ruby\\lib\\ruby\\gems\\1.8\\gems" # XP machine
5
9
  # $geminstalled_directory = "/ruby/lib/ruby/gems/1.8/gems" # XP machine
6
10
  $geminstalled_directory = "/usr/lib/ruby/gems/1.8/gems" # Debian Linux
7
11
 
@@ -0,0 +1,44 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"superantcomremotezipsinstall\" caption=\"Install Remote Applets\">
4
+
5
+ <table>
6
+ <row> <p align=\"right\">File Name:</p> <text size=70 name=\"superantcominstallremoteappletinput\"/> </row>
7
+
8
+ </table>
9
+ <horizontal>
10
+ <button caption=\"install remote Gem applet package\" action=\"superantcominstallremotegemapplet\"/>
11
+ <button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
12
+
13
+ </horizontal>
14
+ <p>%superantcominstallremotegemappletresult%</p>
15
+
16
+ <horizontal>
17
+
18
+
19
+
20
+ <button caption=\"view already installed GEM applets\" action=\"superantcomshowgemfiledirs\"/>
21
+ </horizontal>
22
+ <p>%%superantcomshowgemappletdirsresult%%</p>
23
+
24
+
25
+
26
+
27
+
28
+ <table>
29
+ <row> <p align=\"right\">Click below to view the list of zip files </row>
30
+
31
+ </table>
32
+
33
+ <horizontal>
34
+
35
+ <button caption=\"List applets in the Remote GEM Repository available for downloading\" action=\"superantcomremotegemlist\"/>
36
+
37
+ </horizontal>
38
+ <p>%superantcomremotegemappletsfullresult%</p>
39
+ <p>%%superantcomremotegemappletsresult%%</p>
40
+
41
+ </tab>"
42
+
43
+
44
+
@@ -226,7 +226,11 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
226
226
 
227
227
  Thanks, Steven Gibson
228
228
 
229
- == Changelog
229
+ == Changelog
230
+ version 1.53
231
+ added search of Gems repository for rwdtinker gems
232
+ download and install of Gems
233
+
230
234
  version 1.52
231
235
  added function to install applets from gem directory
232
236
 
Binary file
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.4
3
3
  specification_version: 1
4
4
  name: rwdtinker
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.52"
7
- date: 2005-02-08
6
+ version: "1.53"
7
+ date: 2005-02-12
8
8
  summary: rwdtinker application is a framework to program for RubyWebDialogs.
9
9
  require_paths:
10
10
  - "."
@@ -41,7 +41,6 @@ files:
41
41
  - code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
42
42
  - code/superant.com.rwdtinkerbackwindow/installapplet.rb
43
43
  - code/superant.com.rwdtinkerbackwindow/installgemapplet.rb
44
- - code/superant.com.rwdtinkerbackwindow/listgemzips.rb
45
44
  - code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb
46
45
  - code/superant.com.rwdtinkerbackwindow/listzips.rb
47
46
  - code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb
@@ -55,6 +54,10 @@ files:
55
54
  - code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
56
55
  - code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb
57
56
  - code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb
57
+ - code/superant.com.rwdtinkerbackwindow/listgemdirs.rb
58
+ - code/superant.com.rwdtinkerbackwindow/remotegemlist.rb
59
+ - code/superant.com.rwdtinkerbackwindow/installremotegem.rb
60
+ - code/superant.com.rwdtinkerbackwindow/listgemzips.rb
58
61
  - code/zz0applicationend/zz0end.rb
59
62
  - configuration/language.cnf
60
63
  - configuration/rwdapplicationidentity.cnf
@@ -126,6 +129,7 @@ files:
126
129
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd
127
130
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd
128
131
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd
132
+ - gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd
129
133
  - gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd
130
134
  - gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd
131
135
  - gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd
@@ -142,6 +146,7 @@ files:
142
146
  - rwd_files/tinker.png
143
147
  - zips/rwdahelloworld-0.5.zip
144
148
  - zips/rwdwcalc-0.50.zip
149
+ - zips/rwdmovies-0.90.zip
145
150
  - tests/rwdtinkertestEN.rb
146
151
  - tests/test.result
147
152
  - tests/totranslate.lang