rwdmovies 0.91 → 0.92

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.txt CHANGED
@@ -227,6 +227,23 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
227
  Thanks, Steven Gibson
228
228
 
229
229
  == Changelog
230
+ version 1.60
231
+ add rwdapplication info to diagnostic
232
+ turn rescue on in diagnostic upload
233
+
234
+ version 1.59
235
+ removed rwdtinkerwin2 inf file
236
+ refactored diagnotic page - one button to see all information
237
+ added bug report upload to diagnostic page
238
+
239
+ version 1.58
240
+ check for zlib
241
+ check for files to delete
242
+
243
+ version 1.57
244
+ added rconftool use to update configuration files
245
+ changed applets remove to not used external rm
246
+
230
247
  version 1.56
231
248
  refactored gui files to load without intermediate files
232
249
  refactored code files to load without intermediate files
@@ -0,0 +1,62 @@
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 + "application name " + $rwdapplicationidentity + "\n"
19
+ platformdisplay = platformdisplay + "program directory " + $progdir + "\n"
20
+ platformdisplay = platformdisplay + "hostname " + Resolv.getname(Resolv.getaddress("localhost")) + "\n"
21
+ platformdisplay = platformdisplay + "Date " + Date.today().to_s + "\n"
22
+ if ! @a_emailupload.empty?
23
+ platformdisplay = platformdisplay + @a_emailupload + "\n"
24
+ end
25
+ if ! @a_emailupload.empty?
26
+ platformdisplay = platformdisplay + @a_commentupload + "\n"
27
+ end
28
+ updatefile = Date.today().to_s + Resolv.getname(Resolv.getaddress("localhost")) + randomnumber.to_s
29
+
30
+ tmpdir = ENV['TMP']
31
+ if tmpdir.to_s.empty?
32
+ tmpdir = "/tmp"
33
+ end
34
+ fileName = File.join( tmpdir, updatefile)
35
+ fd = File.open(fileName,"w")
36
+ fd.print(platformdisplay) # save the record info to the file
37
+ fd.close
38
+ ftp = Net::FTP::new(returns_ftpsite)
39
+ @returnsftpdisplay = "data uploaded" + "\n"
40
+
41
+ filedirname = File.join(tmpdir,updatefile)
42
+
43
+ ftp.debug_mode = false
44
+ ftp.login(returns_ftplogin, returns_ftppassword)
45
+ ftp.chdir(returns_ftpdirectory)
46
+ print "I'm in the directory ", ftp.pwd(), "\n"
47
+
48
+ puts filedirname
49
+ ftp.puttextfile(filedirname , updatefile)
50
+ @returnsftpdisplay = @returnsftpdisplay + platformdisplay
51
+
52
+
53
+ ftp.close
54
+
55
+ rescue
56
+ @returnsftpdisplay = "upload error"
57
+ if ftp
58
+ ftp.close
59
+ end
60
+ print "ftp error"
61
+ end
62
+ end
@@ -3,19 +3,23 @@
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 + "application name " + $rwdapplicationidentity + "\n"
20
+ @platformdisplay = @platformdisplay + "Date " + Date.today().to_s
21
+
14
22
  end
15
23
 
16
- # return Rwdtinker version to diagnostic tab
17
- def rwdtinkerversiondiagnostic
18
- @rwdtinkerversionreturn = "rwdtinker version " + RwdTinkerVersion
19
- end
20
24
 
21
25
 
@@ -1,4 +1,4 @@
1
- ##VERSION:0.91
1
+ ##VERSION:0.92
2
2
  ##NAME:$rwdmovies_directory:0
3
3
  $rwdmovies_directory="movies"
4
4
  ##NAME:$tmpmoviepicture_directory:0
@@ -7,4 +7,4 @@ $tmpmoviepicture_directory = "/tmp"
7
7
 
8
8
  DEV_TOKEN = "D23XFCO2UKJY82" # your development token
9
9
 
10
- RwdMoviesVersion = "0.91"
10
+ RwdMoviesVersion = "0.92"
@@ -1,4 +1,4 @@
1
- ##VERSION:1.58
1
+ ##VERSION:1.60
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.60"
@@ -3,9 +3,9 @@ $rwdguivar=
3
3
  <tab name=\"moviesearch\" caption=\"Movie Search\">
4
4
  <table>
5
5
  <row> <p> </row>
6
- <row> <p align=\"right\">You can search</row>
6
+ <row> <p align=\"center\">You can search Amazon for movie details - you need ruby-amazon modules installed</row>
7
7
  <row> <p> </row>
8
- <row> <p align=\"right\">FileName:</p> <text name=\"a_moviefilename\"/> </row>
8
+ <row><p> FileName:</p> <text name=\"a_moviefilename\"/> </row>
9
9
  </table>
10
10
  <horizontal>
11
11
  <button caption=\"Search\" action=\"runmoviesearch\"/>
@@ -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
 
@@ -48,7 +48,12 @@ steven@superant.com
48
48
  http://rwdapplications.rubyforge.org/wiki/wiki.pl
49
49
 
50
50
  == Changelog
51
+ version 0.92
52
+ updated for rwdtinker version 1.60
53
+ one button bug report submissions
54
+
51
55
  version 0.91
56
+ movie poster opens on from page
52
57
  updated for rwdtinker version 1.58
53
58
  added rconftool use to update configuration files
54
59
  changed applets removal to not use external rm
@@ -227,6 +227,15 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
227
  Thanks, Steven Gibson
228
228
 
229
229
  == Changelog
230
+ version 1.60
231
+ add rwdapplication info to diagnostic
232
+ turn rescue on in diagnostic upload
233
+
234
+ version 1.59
235
+ removed rwdtinkerwin2 inf file
236
+ refactored diagnotic page - one button to see all information
237
+ added bug report upload to diagnostic page
238
+
230
239
  version 1.58
231
240
  check for zlib
232
241
  check for files to delete
@@ -1,4 +1,4 @@
1
1
  #!/bin/sh
2
- ruby tests/rdep.rb *.rb
2
+ ruby rdep.rb ../*.rb
3
3
  echo "checking installapplet.rb"
4
- ruby tests/rdep.rb code/superant.com.rwdtinkerbackwindow/installapplet.rb
4
+ ruby rdep.rb ../code/superant.com.rwdtinkerbackwindow/installapplet.rb
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.6
3
3
  specification_version: 1
4
4
  name: rwdmovies
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.91"
7
- date: 2005-03-10
6
+ version: "0.92"
7
+ date: 2005-03-18
8
8
  summary: rwdmovies application is a movie database using 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/superant.com.rwdtinkerbackwindow/controlclient.rb
39
40
  - code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
40
41
  - code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
@@ -164,7 +165,6 @@ files:
164
165
  - gui/tinkerbackwindows/superant.com.rwdmovies/6moviesearch.rwd
165
166
  - gui/tinkerbackwindows/superant.com.rwdmoviespicture/xx8moviephotoview.rwd
166
167
  - gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd
167
- - installed/rwdviewlogo-0.4.inf
168
168
  - rwd_files/favicon.ico
169
169
  - rwd_files/HowTo_Tinker.txt
170
170
  - rwd_files/HowTo_TinkerWin2.txt
@@ -200,7 +200,6 @@ files:
200
200
  - init.rb
201
201
  - Readme.txt
202
202
  - rwdconfig.dist
203
- - rwdmovies-0.91.gem
204
203
  test_files: []
205
204
  rdoc_options:
206
205
  - "--main"
@@ -1,4 +0,0 @@
1
- # rwdviewlogo - small applet to display one picture
2
- code/dd0viewphoto
3
- gui/cc0viewphoto
4
- rwd_files/tinker.png
data/rwdmovies-0.91.gem DELETED
Binary file