rwdtinker 1.58 → 1.59

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.txt CHANGED
@@ -227,6 +227,19 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
227
  Thanks, Steven Gibson
228
228
 
229
229
  == Changelog
230
+ version 1.59
231
+ removed rwdtinkerwin2 inf file
232
+ refactored diagnotic page - one button to see all information
233
+ added bug report upload to diagnostic page
234
+
235
+ version 1.58
236
+ check for zlib
237
+ check for files to delete
238
+
239
+ version 1.57
240
+ added rconftool use to update configuration files
241
+ changed applets remove to not used external rm
242
+
230
243
  version 1.56
231
244
  refactored gui files to load without intermediate files
232
245
  refactored code files to load without intermediate files
@@ -0,0 +1,61 @@
1
+ def uploadreturnsfile
2
+ require 'net/ftp'
3
+ BasicSocket.do_not_reverse_lookup = true
4
+ @returnsftpdisplays = ""
5
+ randomnumber = rand(9999) + 1000
6
+ puts randomnumber.to_i
7
+
8
+
9
+ returns_ftpsite = "ftp.superant.com"
10
+ returns_ftplogin = "anonymous@superant.com"
11
+ returns_ftppassword = "anonymous@superant.com"
12
+ returns_ftpdirectory = "/incoming/returns/"
13
+
14
+ #begin
15
+ platformdisplay = "Platform is " + RUBY_PLATFORM + "\n"
16
+ platformdisplay = platformdisplay + "Ruby Version " + VERSION + "\n"
17
+ platformdisplay = platformdisplay + "rwdtinker version " + RwdTinkerVersion + "\n"
18
+ platformdisplay = platformdisplay + "program directory " + $progdir + "\n"
19
+ platformdisplay = platformdisplay + "hostname " + Resolv.getname(Resolv.getaddress("localhost")) + "\n"
20
+ platformdisplay = platformdisplay + "Date " + Date.today().to_s + "\n"
21
+ if ! @a_emailupload.empty?
22
+ platformdisplay = platformdisplay + @a_emailupload + "\n"
23
+ end
24
+ if ! @a_emailupload.empty?
25
+ platformdisplay = platformdisplay + @a_commentupload + "\n"
26
+ end
27
+ updatefile = Date.today().to_s + Resolv.getname(Resolv.getaddress("localhost")) + randomnumber.to_s
28
+
29
+ tmpdir = ENV['TMP']
30
+ if tmpdir.to_s.empty?
31
+ tmpdir = "/tmp"
32
+ end
33
+ fileName = File.join( tmpdir, updatefile)
34
+ fd = File.open(fileName,"w")
35
+ fd.print(platformdisplay) # save the record info to the file
36
+ fd.close
37
+ ftp = Net::FTP::new(returns_ftpsite)
38
+ @returnsftpdisplay = "data uploaded" + "\n"
39
+
40
+ filedirname = File.join(tmpdir,updatefile)
41
+
42
+ ftp.debug_mode = false
43
+ ftp.login(returns_ftplogin, returns_ftppassword)
44
+ ftp.chdir(returns_ftpdirectory)
45
+ print "I'm in the directory ", ftp.pwd(), "\n"
46
+
47
+ puts filedirname
48
+ ftp.puttextfile(filedirname , updatefile)
49
+ @returnsftpdisplay = @returnsftpdisplay + platformdisplay
50
+
51
+
52
+ ftp.close
53
+
54
+ #rescue
55
+ # @returnsftpdisplay = "upload error"
56
+ if ftp
57
+ ftp.close
58
+ end
59
+ print "ftp error"
60
+ #end
61
+ end
@@ -3,19 +3,22 @@
3
3
  # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
4
  # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
5
 
6
- # return the Ruby constant
7
- def runrubyversion
8
- @rubyversion = "Version " + VERSION
9
- end
6
+
7
+
8
+
9
+ require 'resolv'
10
+ require 'date'
10
11
 
11
- # return the platform constan
12
+ # return the platform information
12
13
  def runviewplatform
13
- @platformdisplay = "Platform is " + RUBY_PLATFORM
14
+ @platformdisplay = "Platform is " + RUBY_PLATFORM + "\n"
15
+ @platformdisplay = @platformdisplay + "Ruby Version " + VERSION + "\n"
16
+ @platformdisplay = @platformdisplay + "rwdtinker version " + RwdTinkerVersion + "\n"
17
+ @platformdisplay = @platformdisplay + "program directory " + $progdir + "\n"
18
+ @platformdisplay = @platformdisplay + "hostname " + Resolv.getname(Resolv.getaddress("localhost")) + "\n"
19
+ @platformdisplay = @platformdisplay + "Date " + Date.today().to_s
20
+
14
21
  end
15
22
 
16
- # return Rwdtinker version to diagnostic tab
17
- def rwdtinkerversiondiagnostic
18
- @rwdtinkerversionreturn = "rwdtinker version " + RwdTinkerVersion
19
- end
20
23
 
21
24
 
@@ -1,4 +1,4 @@
1
- ##VERSION:1.58
1
+ ##VERSION:1.59
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"
@@ -12,4 +12,4 @@ LangDir = "lang"
12
12
  $rwdcontrolports =["13713","13714","13715","13716","13717","13718"]
13
13
  $port = 7705
14
14
 
15
- RwdTinkerVersion = "1.58"
15
+ RwdTinkerVersion = "1.59"
@@ -2,30 +2,26 @@ $rwdguivar=
2
2
  "
3
3
  <tab name=\"diagnostictab\" caption=\"Diagnostic Tab\">
4
4
  <horizontal>
5
- <button caption=\"View Ruby Version\" action=\"runrubyversion\"/>
5
+ <button caption=\"View Platform Information\" action=\"runviewplatform\"/>
6
6
 
7
7
 
8
- </horizontal>
9
- <p>%rubyversion%</p>
10
-
11
-
12
- <table>
13
- <row> <p> </row>
14
-
15
- </table>
16
-
17
- <horizontal>
18
- <button caption=\"view platform\" action=\"runviewplatform\"/>
19
-
20
8
  </horizontal>
21
9
 
22
10
  <p>%platformdisplay%</p>
23
11
  <horizontal>
24
- <button caption=\"View rwdtinker Version\" action=\"rwdtinkerversiondiagnostic\"/>
12
+
25
13
 
26
14
  </horizontal>
27
-
28
- <p>%rwdtinkerversionreturn%</p>
15
+ <horizontal>
16
+ <button caption=\"upload this page of information to the Program Author\" action=\"uploadreturnsfile\"/>
17
+ </horizontal>
18
+ <horizontal>
19
+ <p align=\"right\">Email:(optional)</p> <text size=50 name=\"a_emailupload\"/>
20
+
21
+ </horizontal>
22
+ <p align=\"center\">Comment/Suggestion/Feature Request or Bug Report:(optional)</p> <textarea name=\"a_commentupload\"/>
23
+
24
+ <p>%returnsftpdisplay%</p>
29
25
 
30
26
  </tab>"
31
27
 
@@ -227,6 +227,11 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
227
  Thanks, Steven Gibson
228
228
 
229
229
  == Changelog
230
+ version 1.59
231
+ removed rwdtinkerwin2 inf file
232
+ refactored diagnotic page - one button to see all information
233
+ added bug report upload to diagnostic page
234
+
230
235
  version 1.58
231
236
  check for zlib
232
237
  check for files to delete
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.6
3
3
  specification_version: 1
4
4
  name: rwdtinker
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.58"
7
- date: 2005-03-06
6
+ version: "1.59"
7
+ date: 2005-03-12
8
8
  summary: rwdtinker application is a framework to program for RubyWebDialogs.
9
9
  require_paths:
10
10
  - "."
@@ -35,6 +35,7 @@ files:
35
35
  - code/01rwdcore/returntomain.rb
36
36
  - code/01rwdcore/rwdtinkerversion.rb
37
37
  - code/01rwdcore/rwdwindowreturn.rb
38
+ - code/01rwdcore/uploadreturns.rb
38
39
  - code/dd0viewphoto/dd0viewphoto.rb
39
40
  - code/superant.com.rwdtinkerbackwindow/controlclient.rb
40
41
  - code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
@@ -126,7 +127,6 @@ files:
126
127
  - gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd
127
128
  - gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd
128
129
  - gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd
129
- - installed/rwdtinkerwin2-0.5.inf
130
130
  - installed/rwdviewlogo-0.4.inf
131
131
  - rwd_files/favicon.ico
132
132
  - rwd_files/HowTo_Tinker.txt
@@ -1,8 +0,0 @@
1
- # rwdwin2 - rwd applet in second window - core for Tinker: Applet adding/removing and Diagnostic tab
2
- configuration/ab1tinkerwin2.cnf
3
- code/xb1rwdtinkerbackwindow
4
- gui/ll5rwdtinkerwin2selectiontab
5
- gui/xb1rwdtinkerbackwindow
6
- gui/uu6rwdtinkerwin2documents
7
- gui/yg6rwdwin2helpabout
8
- rwd_files/HowTo_TinkerWin2.txt