hpricot_scrub 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -2,7 +2,7 @@ module HpricotScrub #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 7
5
+ TINY = 8
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.7
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-04-27 00:00:00 -05:00
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: 1.12.1
33
+ version: 2.3.2
34
34
  version:
35
35
  description: Scrub HTML with Hpricot
36
36
  email: michael@underpantsgnome.com