muddle 1.0.0rc1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/muddle/filter/schema_validation.rb +3 -2
- data/lib/muddle/version.rb +1 -1
- metadata +8 -7
@@ -2,12 +2,13 @@ require 'nokogiri'
|
|
2
2
|
|
3
3
|
module Muddle::Filter::SchemaValidation
|
4
4
|
def self.filter(body_string)
|
5
|
-
doc = Nokogiri::
|
5
|
+
doc = Nokogiri::HTML(body_string)
|
6
|
+
doc.encoding = 'UTF-8'
|
6
7
|
|
7
8
|
if doc.internal_subset.nil?
|
8
9
|
doc.create_internal_subset("html", "-//W3C//DTD XHTML 1.0 Strict//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd")
|
9
10
|
end
|
10
11
|
|
11
|
-
doc.to_xhtml
|
12
|
+
doc.to_xhtml(:encoding => 'US-ASCII')
|
12
13
|
end
|
13
14
|
end
|
data/lib/muddle/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muddle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ryan Michael
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-10-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: premailer
|
@@ -145,6 +145,7 @@ description: Email clients are not web browsers. They render html all funny, to
|
|
145
145
|
in an email are the exact inverse from those that you should use for a web page.
|
146
146
|
Remembering all those differences sucks.
|
147
147
|
email:
|
148
|
+
- ryanmichael@otherinbox.com
|
148
149
|
- benhamill@otherinbox.com
|
149
150
|
executables: []
|
150
151
|
extensions: []
|
@@ -168,7 +169,7 @@ files:
|
|
168
169
|
- Rakefile
|
169
170
|
- README.md
|
170
171
|
- Changes.md
|
171
|
-
homepage: http://github.com/
|
172
|
+
homepage: http://otherinbox.github.com/muddle
|
172
173
|
licenses: []
|
173
174
|
post_install_message:
|
174
175
|
rdoc_options: []
|
@@ -183,12 +184,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
185
|
none: false
|
185
186
|
requirements:
|
186
|
-
- - ! '
|
187
|
+
- - ! '>='
|
187
188
|
- !ruby/object:Gem::Version
|
188
|
-
version:
|
189
|
+
version: '0'
|
189
190
|
requirements: []
|
190
191
|
rubyforge_project:
|
191
|
-
rubygems_version: 1.8.
|
192
|
+
rubygems_version: 1.8.23
|
192
193
|
signing_key:
|
193
194
|
specification_version: 3
|
194
195
|
summary: Never type all the annoying markup that emails demand again.
|