hpricot_scrub 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.txt CHANGED
@@ -1,3 +1,9 @@
1
+ 2007-03-04 Michael <michael@underpantsgnome.com>
2
+ Release 0.2.2
3
+ Add patches from Eric Wong
4
+ - Apparently my environment is automagically including YAML, added that
5
+ - Add a check to see if an element responds to scrub when calling scrubable?
6
+
1
7
  2007-03-04 Michael <michael@underpantsgnome.com>
2
8
  Release 0.2.0
3
9
  Add String methods for scrub and scrub!
@@ -11,7 +11,8 @@ require 'hpricot'
11
11
  module Hpricot
12
12
  module Scrubable
13
13
  def scrubable?
14
- ! [Hpricot::Text, Hpricot::BogusETag].include?(self.class)
14
+ ! [Hpricot::Text, Hpricot::BogusETag].include?(self.class) &&
15
+ self.respond_to?(:scrub)
15
16
  end
16
17
  end
17
18
 
@@ -2,7 +2,7 @@ module HpricotScrub #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/hpricot_scrub.rb CHANGED
@@ -1,4 +1,3 @@
1
- # Dir[File.join(File.dirname(__FILE__), 'hpricot_scrub/**/*.rb')].sort.each { |lib| require lib }
2
-
3
- require File.dirname(__FILE__) + '/hpricot_scrub/hpricot_scrub.rb'
4
1
  require File.dirname(__FILE__) + '/hpricot_scrub/version.rb'
2
+ require File.dirname(__FILE__) + '/hpricot_scrub/hpricot_scrub.rb'
3
+ require 'yaml'
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.1
3
3
  specification_version: 1
4
4
  name: hpricot_scrub
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.1
7
- date: 2007-03-04 00:00:00 -08:00
6
+ version: 0.2.2
7
+ date: 2007-03-13 00:00:00 -07:00
8
8
  summary: Scrub HTML with Hpricot
9
9
  require_paths:
10
10
  - lib