rwdhypernote 0.05 → 0.06

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.txt CHANGED
@@ -81,6 +81,13 @@ Steven Gibson
81
81
  steven@superant.com
82
82
 
83
83
  == Changelog
84
+ version 0.06
85
+ added configuration editing tab
86
+ added more help information
87
+ updated for rwdtinker version 1.60
88
+ add rwdapplication info to diagnostic
89
+ turn rescue on in diagnostic upload
90
+
84
91
  version 0.05
85
92
  beginning to add context help
86
93
  updated for rwdtinker version 1.58
@@ -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
@@ -18,6 +18,20 @@
18
18
  'Edit Configuration' - to change the configuration of rwdhypernote
19
19
 
20
20
  .",
21
+ :hypernoteedit_help => "You can create or edit notes
22
+ click the bottom button 'list notes' to see a lists
23
+ of the notes you already have.
24
+ 'save changes' to save your edits
25
+ 'clear' to clear the screen
26
+ 'Create New Note' to start a new note
27
+ After creating a new note, you must list below to find it
28
+ and select it, or it will NOT be SAVED",
29
+ :hypernoteutility_help => "You can change the file
30
+ rename
31
+ delete
32
+ copy name
33
+ ",
34
+
21
35
  :hypernotelinks_help => " You can edit links for note pages
22
36
 
23
37
  If you have selected a note on the 'View/Edit Note' tab
@@ -32,7 +46,7 @@
32
46
 
33
47
  ",
34
48
 
35
- :rwdschedule_configuration => " click on 'Edit Configuration'
49
+ :rwdhypernote_configuration => " click on 'Edit Configuration'
36
50
  You can view the configuration file
37
51
 
38
52
  You can edit the configuration
@@ -1,30 +1,30 @@
1
1
  # this method puts the configuration rexord on the screen
2
- def loadrwdscheduleconfiguration
2
+ def loadrwdhypernoteconfiguration
3
3
 
4
4
  require 'fileutils'
5
5
 
6
- @a_schconfigurationfilename = "rwdschedule.cnf"
6
+ @a_hypconfigurationfilename = "rwdhypernote.cnf"
7
7
 
8
8
 
9
9
  begin # exception trapped block
10
10
 
11
11
  Dir.chdir($progdir)
12
- fileName = File.join(ConfigurationDir, "rwdschedule.cnf")
12
+ fileName = File.join(ConfigurationDir, "rwdhypernote.cnf")
13
13
 
14
14
 
15
15
  fd = File.open(fileName,"r")
16
- @a_schconfigline1= fd.readline.chomp
17
- @a_schconfigline2 = fd.readline.chomp
18
- @a_schconfigline3 = fd.readline.chomp
19
- @a_schconfigline4 = fd.readline.chomp
20
- @a_schconfigline5 = fd.readline.chomp
21
- @a_schconfigline6 = fd.readline.chomp
22
- @a_schconfigline7 =fd.readline.chomp
23
- @a_schconfigline8 = fd.readline.chomp
24
- @a_schconfigline9 = fd.readline.chomp
16
+ @a_hypconfigline1= fd.readline.chomp
17
+ @a_hypconfigline2 = fd.readline.chomp
18
+ @a_hypconfigline3 = fd.readline.chomp
19
+ @a_hypconfigline4 = fd.readline.chomp
20
+ @a_hypconfigline5 = fd.readline.chomp
21
+ @a_hypconfigline6 = fd.readline.chomp
22
+ @a_hypconfigline7 =fd.readline.chomp
23
+ @a_hypconfigline8 = fd.readline.chomp
24
+ @a_hypconfigline9 = fd.readline.chomp
25
25
 
26
26
  while ! fd.eof?
27
- @extraschconfigdatadisplay = fd.readline
27
+ @extrahypconfigdatadisplay = fd.readline
28
28
  end
29
29
  fd.close
30
30
  rescue SystemCallError, StandardError
@@ -1,13 +1,13 @@
1
1
  # this method loads the on screen variables into the running class
2
- def loadrwdscheduleconfigurationvariables
2
+ def loadrwdhypernoteconfigurationvariables
3
3
 
4
- configfiletoload = File.join(ConfigurationDir,"rwdschedule.cnf")
4
+ configfiletoload = File.join(ConfigurationDir,"rwdhypernote.cnf")
5
5
  begin
6
6
  load configfiletoload
7
- @extraschconfigdatadisplay = ""
8
- @newschconfigurationresult = "Config Variables loaded"
7
+ @extrahypconfigdatadisplay = ""
8
+ @newhypconfigurationresult = "Config Variables loaded"
9
9
  rescue
10
- @extraschconfigdatadisplay = ""
11
- @newschconfigurationresult = "loading error"
10
+ @extrahypconfigdatadisplay = ""
11
+ @newhypconfigurationresult = "loading error"
12
12
  end
13
13
  end
@@ -1,15 +1,26 @@
1
1
  # this code is to call the help window
2
2
  def runhelpwindowrwdhypernote
3
3
 
4
- $help_topic = "rwdhypernote_generalhelp"
5
- if @rwd_tab == "superantcomeditnoterecordfile"
6
- $help_topic = "rwdhypernote_generalhelp"
4
+ $help_topic = "rwdhypernote_generalhelp"
5
+
6
+ if @rwd_tab == "utilitiesrwdhyperedit"
7
+ $help_topic = "hypernoteutility_help"
8
+ end
9
+
10
+ if @rwd_tab == "superantcomeditnoterecordfile"
11
+ $help_topic = "hypernoteedit_help"
7
12
  end
8
13
 
9
14
  if @rwd_tab == "rwdhypernoteeditlinksrecordfile"
10
- $help_topic = "hypernotelinks_help"
11
- end
12
-
13
- $helptopicsarray = $helptopicsarray | ["rwdhypernote_help","hypernotelinks_help"]
15
+
16
+ $help_topic = "hypernotelinks_help"
17
+ end
18
+
19
+
20
+
21
+ if @rwd_tab == "viewrwdhypernoteconfiguration"
22
+ $help_topic = "rwdhypernote_configuration"
23
+ end
24
+ $helptopicsarray = $helptopicsarray | ["hypernoteedit_help","rwdhypernote_help","hypernotelinks_help","rwdhypernote_configuration"]
14
25
 
15
26
 
16
27
 
@@ -1,9 +1,9 @@
1
1
  # this method adds a new address record
2
- def saverwdXconfiguration
2
+ def saverwdhypernoteconfiguration
3
3
  require 'fileutils'
4
4
 
5
- newname = "rwdschedule.cnf" # grab the filename to create
6
- newdata =@a_schconfigline1.to_s + "\n" + @a_schconfigline2.to_s + "\n" + @a_schconfigline3.to_s + "\n" + @a_schconfigline4.to_s + "\n" + @a_schconfigline5.to_s + "\n" + @a_schconfigline6.to_s + "\n" + @a_schconfigline7.to_s + "\n" + @a_schconfigline8.to_s + "\n" + @a_schconfigline9.to_s + "\n"
5
+ newname = "rwdhypernote.cnf" # grab the filename to create
6
+ newdata =@a_hypconfigline1.to_s + "\n" + @a_hypconfigline2.to_s + "\n" + @a_hypconfigline3.to_s + "\n" + @a_hypconfigline4.to_s + "\n" + @a_hypconfigline5.to_s + "\n" + @a_hypconfigline6.to_s + "\n" + @a_hypconfigline7.to_s + "\n" + @a_hypconfigline8.to_s + "\n" + @a_hypconfigline9.to_s + "\n"
7
7
 
8
8
  begin # exception trapped block
9
9
  fileName = File.join( ConfigurationDir, newname )
@@ -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,3 +1,3 @@
1
1
  ##VERSION:1.57
2
- $rwdapplicationidentity = "rwdtinker main application"
2
+ $rwdapplicationidentity = "rwdhypernote note editor"
3
3
 
@@ -1,6 +1,6 @@
1
- ##VERSION:0.05
1
+ ##VERSION:0.06
2
2
  ##NAME: $rwdhypernote_directory:0
3
- $rwdhypernote_directory = 'Notes'
3
+ $rwdhypernote_directory = "Notes"
4
4
  $notesarray = ["Notes/changes.txt"]
5
5
  $noteslinksarray = ["Notes/changes.lnk"]
6
6
  $rwdhypernote_ftpsite = "ftp.mysite.com"
@@ -8,4 +8,4 @@ $rwdhypernote_ftplogin = "mylogin"
8
8
  $rwdhypernote_ftppassword = "mypassword"
9
9
  $rwdhypernote_ftpdirectory = "/incoming/rwdhypernotes/"
10
10
  $rwdhypernote_updatedirectory = "updates"
11
- RwdHyperNoteVersion = "0.05"
11
+ RwdHyperNoteVersion = "0.06"
@@ -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"
@@ -0,0 +1,38 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"viewrwdhypernoteconfiguration\" caption=\"RwdHyperNote Configuration\">
4
+
5
+
6
+
7
+ <table>
8
+ <row> <p> </row>
9
+ <row> <p align=\"right\">You can view or edit the rwdschedule configuration file here</row>
10
+ <row> <p> </row>
11
+ <horizontal>
12
+ <button caption=\"Fill Record\" action=\"loadrwdhypernoteconfiguration\"/>
13
+ <button caption=\"Save Changes\" action=\"saverwdhypernoteconfiguration\"/>
14
+ <button caption=\"Reload Variables\" action=\"loadrwdhypernoteconfigurationvariables\"/>
15
+ <button caption=\"Help\" action=\"runhelpwindowrwdhypernote\"/>
16
+ </horizontal>
17
+ <table>
18
+
19
+ <row> <p align=\"right\">FileName:</p> <text name=\"a_hypconfigurationfilename\"/> </row>
20
+ <row> <p align=\"right\">1:</p> <text size=70 name=\"a_hypconfigline1\"/> </row>
21
+ <row> <p align=\"right\">2:</p> <text size=70 name=\"a_hypconfigline2\"/> </row>
22
+ <row> <p align=\"right\">3:</p> <text size=70 name=\"a_hypconfigline3\"/> </row>
23
+ <row> <p align=\"right\">4:</p> <text size=70 name=\"a_hypconfigline4\"/> </row>
24
+ <row> <p align=\"right\">5:</p> <text size=70 name=\"a_hypconfigline5\"/> </row>
25
+ <row> <p align=\"right\">6:</p> <text size=70 name=\"a_hypconfigline6\"/> </row>
26
+ <row> <p align=\"right\">7:</p> <text size=70 name=\"a_hypconfigline7\"/> </row>
27
+ <row> <p align=\"right\">8:</p> <text size=70 name=\"a_hypconfigline8\"/> </row>
28
+ <row> <p align=\"right\">9:</p> <text size=70 name=\"a_hypconfigline9\"/> </row>
29
+
30
+ </table>
31
+ <p>%extrahypconfigdatadisplay%</p>
32
+ <p>
33
+ <p>%newhypconfigurationresult%</p>
34
+
35
+
36
+
37
+ </tab>"
38
+
@@ -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
 
@@ -81,6 +81,13 @@ Steven Gibson
81
81
  steven@superant.com
82
82
 
83
83
  == Changelog
84
+ version 0.06
85
+ added configuration editing tab
86
+ added more help information
87
+ updated for rwdtinker version 1.60
88
+ add rwdapplication info to diagnostic
89
+ turn rescue on in diagnostic upload
90
+
84
91
  version 0.05
85
92
  beginning to add context help
86
93
  updated for rwdtinker version 1.58
@@ -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
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.6
3
3
  specification_version: 1
4
4
  name: rwdhypernote
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.05"
7
- date: 2005-03-10
6
+ version: "0.06"
7
+ date: 2005-03-13
8
8
  summary: rwdhypernote application is a hierarchical note taker 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/superant.com.rwdtinkerbackwindow/controlclient.rb
39
40
  - code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
40
41
  - code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
@@ -80,7 +81,6 @@ files:
80
81
  - code/superant.com.hypernote/saveconfigurationrecord.rb
81
82
  - code/superant.com.hypernote/savehypernoterecord.rb
82
83
  - code/superant.com.hypernote/savelinkrecord.rb
83
- - code/superant.com.hypernote/viewrwdschedulesconfiguration.rb
84
84
  - configuration/tinkerwin2variables.dist
85
85
  - configuration/rwdtinker.dist
86
86
  - configuration/language.dist
@@ -111,6 +111,7 @@ files:
111
111
  - gui/frontwindow0/superant.com.hypernote/10viewnote.rwd
112
112
  - gui/frontwindow0/superant.com.hypernote/20editlinks.rwd
113
113
  - gui/frontwindow0/superant.com.hypernote/30noteutilities.rwd
114
+ - gui/frontwindow0/superant.com.hypernote/67viewconfiguration.rwd
114
115
  - gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd
115
116
  - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab
116
117
  - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd
@@ -1,21 +0,0 @@
1
- def viewrwdschedulesconfiguration
2
- require 'fileutils'
3
- begin # exception trapped block
4
-
5
- Dir.chdir($progdir)
6
- rwdschedulesconfigurationfile = File.join( "configuration", "rwdschedule.cnf" )
7
- if File.exist?(rwdschedulesconfigurationfile)
8
- fd = File.open(rwdschedulesconfigurationfile,"r")
9
- @rwdschedulesconfigurationtext = " "
10
- while ! fd.eof?
11
- @rwdschedulesconfigurationtext = fd.read
12
- end
13
- fd.close
14
- else
15
- @rwdschedulesconfigurationtext = "File error"
16
- end
17
- rescue SystemCallError, StandardError
18
- $stderr.print "system call error: " + $!
19
- @rwdschedulesconfigurationtext = "File error"
20
- end # exception rescue
21
- end