rwdgutenberg 0.06 → 0.07

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.
@@ -0,0 +1,8 @@
1
+ # this method clears the on screen variable
2
+ def cleargutenbergfiles
3
+
4
+ @textsfilesrecordsresult = ""
5
+
6
+
7
+
8
+ end
@@ -0,0 +1,8 @@
1
+ # this method clears the on screen variable
2
+ def cleargutrecordfiles
3
+
4
+ @gutenbergrecordsresult = ""
5
+
6
+
7
+
8
+ end
@@ -1,7 +1,7 @@
1
1
  # create new gutenberg data file
2
2
  def gutenbergcreatefile
3
3
 
4
- filelocation = $rwdgutenberg_directory + "/" +@a_viewgutenberg + ".gut"
4
+ filelocation = $rwdgutenberg_directory + "/" +@a_newgutenbergdata+ ".gut"
5
5
 
6
6
  p filelocation
7
7
  fileB=File.open(filelocation,"w") #deletes and opens a the file in fileName
@@ -13,7 +13,8 @@ end
13
13
  if(!test(?d,x))
14
14
  # only lnk files
15
15
  if x =~ /rb|txt|lst/
16
- puts "#{x}" #opens the file thats in fileName as read only
16
+ # puts "#{x}"
17
+
17
18
  $gutenbergarray = $gutenbergarray | ["#{x}"]
18
19
  end
19
20
  end
@@ -25,28 +25,18 @@
25
25
  tempdoc = ""
26
26
  @gutendisplayvariable = ""
27
27
  tempcount = 0
28
- $stderr.print "starting\n"
28
+
29
29
 
30
30
  if $gutenbergcommand == "openbook"
31
31
 
32
- # raise "forced error test" # raise RuntimeError
33
- $stderr.print "testing string\n"
34
- fileName = $rwdgutenberg_directory + "/" + @a_viewgutenberg + ".gut"
35
-
36
- $stderr.print "about to open file existence "
37
- $stderr.print fileName
38
- $stderr.print "\n"
39
-
32
+ fileName = $rwdgutenberg_directory + "/" + @a_viewgutenberg + ".gut"
40
33
  fd = File.open(fileName,"r")
41
34
  booktitle = fd.readline.chomp
42
- $stderr.print booktitle
35
+
43
36
  $bookfile=File.new(booktitle,"r") #opens the file thats in fileName as read only
44
37
  $gutenbergcommand == "continue"
45
38
 
46
-
47
-
48
39
  end
49
-
50
40
 
51
41
  if $gutenbergcommand == "continue"
52
42
  tempcount = 0
@@ -1,4 +1,4 @@
1
- ##VERSION:0.06
1
+ ##VERSION:0.07
2
2
  ##NAME:$rwdgutenberg_directory:0
3
3
  $rwdgutenberg_directory = "Books"
4
4
  ##NAME:$gutenbergcommand:0
@@ -12,5 +12,5 @@ $booksteps = 14
12
12
  $tinkerdocumentsarray += ["HowTo_Gutenberg.txt"]
13
13
  $tinkerhelpaboutarray += ["RwdGutenberg"]
14
14
  ##NAME:RwdGutenbergVersion:0
15
- RwdGutenbergVersion = "0.06"
15
+ RwdGutenbergVersion = "0.07"
16
16
 
@@ -30,7 +30,8 @@ $rwdguivar=
30
30
  </table>
31
31
  <horizontal>
32
32
  <button caption=\"List Booklists\" action=\"listgutrecordfiles\"/>
33
-
33
+ <button caption=\"Clear Booklists\" action=\"cleargutrecordfiles\"/>
34
+
34
35
 
35
36
 
36
37
  </horizontal>
@@ -26,6 +26,7 @@ $rwdguivar=
26
26
 
27
27
  <horizontal>
28
28
  <button caption=\"List Text Files\" action=\"rwdgutenbergfiles\"/>
29
+ <button caption=\"Clear Files List\" action=\"cleargutenbergfiles\"/>
29
30
 
30
31
 
31
32
  </horizontal>
@@ -81,6 +81,10 @@ Steven Gibson
81
81
  steven@superant.com
82
82
 
83
83
  == Changelog
84
+ Version 0.07
85
+ fixed file creation from directory search
86
+ addded clear file list
87
+
84
88
  Version 0.06
85
89
  clear fields with each new book record
86
90
  catch missing or wrong filename for reading
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: rwdgutenberg
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.06"
6
+ version: "0.07"
7
7
  date: 2005-05-15
8
8
  summary: rwdgutenberg application is a text file reader for RubyWebDialogs.
9
9
  require_paths:
@@ -92,6 +92,8 @@ files:
92
92
  - code/superant.com.gutenberg/savegutenbergrecord.rb
93
93
  - code/superant.com.gutenberg/jumplinkupdate.rb
94
94
  - code/superant.com.gutenberg/rwdtinkerversion.rb
95
+ - code/superant.com.gutenberg/cleargutrecordfiles.rb
96
+ - code/superant.com.gutenberg/cleargutenbergfiles.rb
95
97
  - configuration/tinkerwin2variables.dist
96
98
  - configuration/rwdtinker.dist
97
99
  - configuration/language.dist