axml 0.0.5 → 0.0.6

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/axml.rb +2 -2
  2. metadata +7 -7
data/lib/axml.rb CHANGED
@@ -35,10 +35,10 @@ module AXML
35
35
  end
36
36
  :parse_file
37
37
  end
38
- elsif arg.is_a?(IO)
38
+ elsif arg.is_a?(IO) || arg.is_a?(StringIO)
39
39
  :parse_io
40
40
  else
41
- raise ArgumentError, "can deal with filenames, Strings, and IO objects.\nDon't know how to work with object of class: #{arg.class}"
41
+ raise ArgumentError, "can deal with filenames, Strings, StringIO and IO objects.\nDon't know how to work with object of class: #{arg.class}"
42
42
  end
43
43
  parser.send(method, arg, opts)
44
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: axml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Prince
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-23 00:00:00 -07:00
12
+ date: 2009-02-28 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -23,12 +23,12 @@ extra_rdoc_files:
23
23
  - README
24
24
  - LICENSE
25
25
  files:
26
- - lib/axml/el.rb
27
- - lib/axml/autoload.rb
26
+ - lib/axml.rb
28
27
  - lib/axml/libxml.rb
28
+ - lib/axml/el.rb
29
29
  - lib/axml/xmlparser.rb
30
+ - lib/axml/autoload.rb
30
31
  - lib/axml/traverse.rb
31
- - lib/axml.rb
32
32
  - README
33
33
  - LICENSE
34
34
  - Rakefile
@@ -64,7 +64,7 @@ signing_key:
64
64
  specification_version: 2
65
65
  summary: "AXML - Provides a simple, minimalistic DOM for working with data stored in an XML document. The API is very similar to LibXML, differing slightly in the handling of text nodes. It is designed with very large documents in mind: nodes are represented in memory efficient Struct objects and it works with either XMLParser or LibXML!"
66
66
  test_files:
67
- - spec/axml/xmlparser_spec.rb
67
+ - spec/axml_spec.rb
68
68
  - spec/axml/autoload_spec.rb
69
69
  - spec/axml/libxml_spec.rb
70
- - spec/axml_spec.rb
70
+ - spec/axml/xmlparser_spec.rb