dynarex 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dynarex.rb +3 -1
- metadata +2 -2
data/lib/dynarex.rb
CHANGED
@@ -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
|
+
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-
|
12
|
+
date: 2010-08-28 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|