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.
- data/VERSION +1 -1
- data/cml.gemspec +1 -1
- data/lib/cml/parser.rb +2 -2
- metadata +2 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.6
|
data/cml.gemspec
CHANGED
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
|
110
|
-
html = convert(opts).
|
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
|
+
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.
|
123
|
+
rubygems_version: 1.2.0
|
125
124
|
signing_key:
|
126
125
|
specification_version: 3
|
127
126
|
summary: CML is CrowdFlower Markup Language
|