xml-motor 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -14,6 +14,10 @@ for support contact:
14
14
  http://www.twitter.com/aBionic
15
15
  ======================================================================
16
16
 
17
+ the main development for this algo (to be done in other languages too) is handled in
18
+ https://github.com/abhishekkr/axml-motor
19
+ and you could find the test-cases in there too, to proceed on your own
20
+
17
21
  A new short XML Parsing Algorithm implemented directly in >500 lines.
18
22
  An easy-to-use XML Parser without any Native Dependencies.
19
23
  [How To Use]:
@@ -45,6 +49,11 @@ An easy-to-use XML Parser without any Native Dependencies.
45
49
 
46
50
  =====================================================================
47
51
  =====================================================================
52
+ CHANGE-LOG
53
+ =====================================================================
54
+ Changes from v0.0.5 to v0.0.6
55
+ [] correcting the attribute parsing to handle line-change well, corrected my mistake
56
+ =====================================================================
48
57
  Changes from v0.0.3 to v0.0.4
49
58
  [] 2 stupid mistakes corrected
50
59
  + one in file-based xml parsing
@@ -51,7 +51,7 @@ module XMLChopper
51
51
  tag_value_split = tag_value.split(/>/)
52
52
  in_tag = tag_value_split.first
53
53
  out_tag = tag_value_split[1..-1].join
54
- in_tag_split = in_tag.split(/[ \t]/)
54
+ in_tag_split = in_tag.split
55
55
  tag_name = in_tag_split.first
56
56
  attribzone = in_tag_split[1..-1].flatten.join(' ')
57
57
  attrs = get_attribute_hash attribzone
@@ -66,7 +66,7 @@ module XMLChopper
66
66
  attribs = broken_attrib.first.strip
67
67
  values = nil
68
68
  broken_attrib[1..-2].each do |attrib_part|
69
- value_n_attrib = attrib_part.split(/[ \t]/)
69
+ value_n_attrib = attrib_part.split
70
70
  values = value_n_attrib[0..-2].join(' ')
71
71
  attrs[attribs] = values
72
72
  attribs = value_n_attrib[-1].strip
@@ -1,5 +1,5 @@
1
1
  module Xml
2
2
  module Motor
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-motor
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
  - abhishekkr
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2011-12-25 00:00:00 +05:30
12
+ date: 2012-01-15 00:00:00 +05:30
13
13
  default_executable:
14
14
  dependencies: []
15
15