filetree_xml 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 934757547ddbd98597100f6cad2ef6578ec3bde8
4
- data.tar.gz: 299dda8057705c93c35ce57c6be5c26ad9753b2d
3
+ metadata.gz: 5e26c269e05bd82881bfe3e0044926d7182ef1a4
4
+ data.tar.gz: 8ef5b3a1df0f57810d097d68f51d8070ca200fce
5
5
  SHA512:
6
- metadata.gz: 363fd4ade162aa6e05e4faa4d4c304e7be66e0b24b1646172dc112ada9e672ecda1c838f4985831785c4e08577e7dabc949f99dc193851567926f4e482787f8f
7
- data.tar.gz: 704979f6dcf8aeb00d3185312adcb092d8e23b6096616605a330a889aaa0c178a5905baecf6d697a97146eb950e4947338d80ea6d243d60fac0b4d43aacd367c
6
+ metadata.gz: 6c5034177bc57ba2b5b183722cac344774bce390f6062828fd02b703ec5b327f563969a17b5ec5e23f3f51d339a14ed087e6318bacf179420562407fea720317
7
+ data.tar.gz: 766142c14114953fe7de651e43ff52a864e09c45335cd3b0abfc39ce971401835db91eac95bd144d6aea91098853d109c20211fa51a0e57855432aba7697fb00
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/filetree_xml.rb CHANGED
@@ -11,13 +11,11 @@ class FileTreeXML
11
11
 
12
12
  def initialize(x)
13
13
 
14
- case x
15
- when x[/^<?polyrex/]
16
-
14
+ case x.strip
15
+ when /^<\?polyrex/
17
16
  @px = Polyrex.new
18
-
19
- @px.import s
20
- else
17
+ @px.import x
18
+ else
21
19
  @px = Polyrex.new x
22
20
 
23
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filetree_xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file