hpricot_scrub 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.txt +5 -0
- data/History.txt +5 -0
- data/lib/hpricot_scrub/hpricot_scrub.rb +5 -1
- data/lib/hpricot_scrub/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.txt
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
2009-07-29 Mina Naguib <mina.hpricotscrub@naguib.ca>
|
|
2
|
+
Release 0.3.8
|
|
3
|
+
- fix undefined method `scrubbable?' for #<Hpricot::ProcIns>
|
|
4
|
+
- fix issue in scrubbing when there are no nodes
|
|
5
|
+
|
|
1
6
|
2009-04-23 Mina Naguib <mina.hpricotscrub@naguib.ca>
|
|
2
7
|
Release 0.3.7
|
|
3
8
|
- More fixes for recent versions of hpricot - Thanks Luc Chauvin
|
data/History.txt
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
2009-07-29 Mina Naguib <mina.hpricotscrub@naguib.ca>
|
|
2
|
+
Release 0.3.8
|
|
3
|
+
- fix undefined method `scrubbable?' for #<Hpricot::ProcIns>
|
|
4
|
+
- fix issue in scrubbing when there are no nodes
|
|
5
|
+
|
|
1
6
|
2009-04-23 Mina Naguib <mina.hpricotscrub@naguib.ca>
|
|
2
7
|
Release 0.3.7
|
|
3
8
|
- More fixes for recent versions of hpricot - Thanks Luc Chauvin
|
|
@@ -151,6 +151,10 @@ module Hpricot
|
|
|
151
151
|
include Scrub::Scrubbable
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
+
class ProcIns
|
|
155
|
+
include Scrub::Scrubbable
|
|
156
|
+
end
|
|
157
|
+
|
|
154
158
|
class Comment
|
|
155
159
|
include Scrub::Scrubbable
|
|
156
160
|
|
|
@@ -253,7 +257,7 @@ module Hpricot
|
|
|
253
257
|
#
|
|
254
258
|
def scrub(config=nil)
|
|
255
259
|
config = Scrub::normalize_config(config)
|
|
256
|
-
children.reverse.each do |child|
|
|
260
|
+
(children || []).reverse.each do |child|
|
|
257
261
|
child.scrub(config) if child.scrubbable?
|
|
258
262
|
end
|
|
259
263
|
return self
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hpricot_scrub
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UnderpantsGnome
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-07-29 00:00:00 -05:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -30,7 +30,7 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 2.3.2
|
|
34
34
|
version:
|
|
35
35
|
description: Scrub HTML with Hpricot
|
|
36
36
|
email: michael@underpantsgnome.com
|