dynarex 0.8.4 → 0.8.5

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.
Files changed (2) hide show
  1. data/lib/dynarex.rb +3 -1
  2. metadata +2 -2
@@ -79,7 +79,8 @@ EOF
79
79
 
80
80
  #Save the document to a local file.
81
81
 
82
- def save(filepath)
82
+ def save(filepath=nil)
83
+ filepath ||= @local_filepath
83
84
  xml = display_xml()
84
85
  File.open(filepath,'w'){|f| f.write xml}
85
86
  end
@@ -285,6 +286,7 @@ end))
285
286
  elsif s[/\</] # xml
286
287
  buffer = s
287
288
  else # local file
289
+ @local_filepath = s
288
290
  buffer = File.open(s,'r').read
289
291
  end
290
292
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-06-24 00:00:00 +01:00
12
+ date: 2010-08-28 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15