xml-simple 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/xmlsimple.rb +4 -3
  2. metadata +19 -11
@@ -1,16 +1,17 @@
1
1
  # = XmlSimple
2
2
  #
3
3
  # Author:: Maik Schmidt <contact@maik-schmidt.de>
4
- # Copyright:: Copyright (c) 2003 Maik Schmidt
4
+ # Copyright:: Copyright (c) 2003-2006 Maik Schmidt
5
5
  # License:: Distributes under the same terms as Ruby.
6
6
  #
7
7
  require 'rexml/document'
8
+ require 'stringio'
8
9
 
9
10
  # Easy API to maintain XML (especially configuration files).
10
11
  class XmlSimple
11
12
  include REXML
12
13
 
13
- @@VERSION = '1.0.2'
14
+ @@VERSION = '1.0.8'
14
15
 
15
16
  # A simple cache for XML documents that were already transformed
16
17
  # by xml_in.
@@ -184,7 +185,7 @@ class XmlSimple
184
185
 
185
186
  @doc = load_xml_file(filename)
186
187
  end
187
- elsif string.kind_of?(IO)
188
+ elsif string.kind_of?(IO) || string.kind_of?(StringIO)
188
189
  @doc = parse(string.readlines.to_s)
189
190
  else
190
191
  raise ArgumentError, "Could not parse object of type: <#{string.type}>."
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.3
2
+ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: xml-simple
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.7
7
- date: 2005-04-18
6
+ version: 1.0.8
7
+ date: 2006-02-13 00:00:00 +01:00
8
8
  summary: A very simple API for XML processing.
9
9
  require_paths:
10
- - lib
10
+ - lib
11
11
  email: contact@maik-schmidt.de
12
12
  homepage: http://xml-simple.rubyforge.org
13
13
  rubyforge_project: xml-simple
@@ -18,20 +18,28 @@ bindir: bin
18
18
  has_rdoc: false
19
19
  required_ruby_version: !ruby/object:Gem::Version::Requirement
20
20
  requirements:
21
- -
22
- - ">"
23
- - !ruby/object:Gem::Version
24
- version: 0.0.0
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
25
24
  version:
26
25
  platform: ruby
26
+ signing_key:
27
+ cert_chain:
27
28
  authors:
28
- - Maik Schmidt
29
+ - Maik Schmidt
29
30
  files:
30
- - lib/xmlsimple.rb
31
+ - lib/xmlsimple.rb
31
32
  test_files: []
33
+
32
34
  rdoc_options: []
35
+
33
36
  extra_rdoc_files: []
37
+
34
38
  executables: []
39
+
35
40
  extensions: []
41
+
36
42
  requirements: []
37
- dependencies: []
43
+
44
+ dependencies: []
45
+