pauldix-sax-machine 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ module SAXMachine
13
13
  if parsing_collection?
14
14
  @collection_handler.characters(string)
15
15
  elsif @element_config
16
- @value = string
16
+ @value << string
17
17
  end
18
18
  end
19
19
 
@@ -31,6 +31,7 @@ module SAXMachine
31
31
  parse_element_attribute
32
32
 
33
33
  else
34
+ @value = ""
34
35
  @element_config = sax_config.element_config_for_tag(@name, @attrs)
35
36
  end
36
37
  end
@@ -52,7 +53,7 @@ module SAXMachine
52
53
  end
53
54
 
54
55
  def characaters_captured?
55
- !@value.nil?
56
+ !@value.nil? && !@value.empty?
56
57
  end
57
58
 
58
59
  def parsing_collection?
data/lib/sax-machine.rb CHANGED
@@ -7,5 +7,5 @@ require "sax-machine/sax_handler"
7
7
  require "sax-machine/sax_config"
8
8
 
9
9
  module SAXMachine
10
- VERSION = "0.0.4"
10
+ VERSION = "0.0.5"
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pauldix-sax-machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dix
data/README.rdoc DELETED
File without changes