xml-simple 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xmlsimple.rb +3 -3
- metadata +22 -40
data/lib/xmlsimple.rb
CHANGED
@@ -11,7 +11,7 @@ require 'stringio'
|
|
11
11
|
class XmlSimple
|
12
12
|
include REXML
|
13
13
|
|
14
|
-
@@VERSION = '1.1.
|
14
|
+
@@VERSION = '1.1.2'
|
15
15
|
|
16
16
|
# A simple cache for XML documents that were already transformed
|
17
17
|
# by xml_in.
|
@@ -185,10 +185,10 @@ class XmlSimple
|
|
185
185
|
|
186
186
|
@doc = load_xml_file(filename)
|
187
187
|
end
|
188
|
-
elsif string.
|
188
|
+
elsif string.respond_to?(:read)
|
189
189
|
@doc = parse(string.read)
|
190
190
|
else
|
191
|
-
raise ArgumentError, "Could not parse object of type: <#{string.
|
191
|
+
raise ArgumentError, "Could not parse object of type: <#{string.class}>."
|
192
192
|
end
|
193
193
|
|
194
194
|
result = collapse(@doc.root)
|
metadata
CHANGED
@@ -1,64 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: xml-simple
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
version: 1.1.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.2
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Maik Schmidt
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2011-10-11 00:00:00 +02:00
|
18
|
-
default_executable:
|
12
|
+
date: 2012-10-15 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
14
|
description:
|
22
15
|
email: contact@maik-schmidt.de
|
23
16
|
executables: []
|
24
|
-
|
25
17
|
extensions: []
|
26
|
-
|
27
18
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
files:
|
19
|
+
files:
|
30
20
|
- lib/xmlsimple.rb
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
21
|
+
homepage: https://github.com/maik/xml-simple
|
22
|
+
licenses:
|
23
|
+
- Ruby
|
35
24
|
post_install_message:
|
36
25
|
rdoc_options: []
|
37
|
-
|
38
|
-
require_paths:
|
26
|
+
require_paths:
|
39
27
|
- lib
|
40
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
41
29
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
47
|
-
version: "0"
|
48
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
35
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
- 0
|
55
|
-
version: "0"
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
56
40
|
requirements: []
|
57
|
-
|
58
41
|
rubyforge_project: xml-simple
|
59
|
-
rubygems_version: 1.
|
42
|
+
rubygems_version: 1.8.24
|
60
43
|
signing_key:
|
61
44
|
specification_version: 3
|
62
45
|
summary: A simple API for XML processing.
|
63
46
|
test_files: []
|
64
|
-
|