dolores-cml 0.5.4 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/cml.gemspec +1 -1
  3. data/lib/cml/parser.rb +2 -2
  4. metadata +2 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.4
1
+ 0.5.6
data/cml.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{cml}
5
- s.version = "0.5.4"
5
+ s.version = "0.5.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Chris Van Pelt"]
data/lib/cml/parser.rb CHANGED
@@ -106,8 +106,8 @@ module CML
106
106
  end
107
107
 
108
108
  def to_html(opts = nil)
109
- #We are going to html because xhtml is crazy with the encoding
110
- html = convert(opts).at("root").children.to_xhtml
109
+ #We convert the entire document and strip root tags / rando empty tags ALA libxml 2.6.32
110
+ html = convert(opts).to_xhtml.gsub(/<\/?root[^>]*?>|<\/?>/,'')
111
111
  #Let's re-insert that CDATA
112
112
  @cdata.each { |matches| html.sub!(/(<(?:script|style)[^>]*>)</m, "\\1#{matches[2]}<") }
113
113
  wrap(html)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dolores-cml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Van Pelt
@@ -100,7 +100,6 @@ files:
100
100
  - spec/validation_spec.rb
101
101
  has_rdoc: false
102
102
  homepage: http://github.com/dolores/cml
103
- licenses:
104
103
  post_install_message:
105
104
  rdoc_options:
106
105
  - --charset=UTF-8
@@ -121,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
120
  requirements: []
122
121
 
123
122
  rubyforge_project:
124
- rubygems_version: 1.3.5
123
+ rubygems_version: 1.2.0
125
124
  signing_key:
126
125
  specification_version: 3
127
126
  summary: CML is CrowdFlower Markup Language