public
Description: Strip and sanitize HTML with Hpricot
Homepage:
Clone URL: git://github.com/UnderpantsGnome/hpricot_scrub.git
Fix gem command test - Thanks David Masover
Sun Nov 02 09:38:17 -0800 2008
commit  449254c26f162d153f062fd12fb92e372f3ce8a7
tree    c58b4c003f27a6cd8d4b0cf2df2d26ebb0b049be
parent  2fefe28c6b564aebb7dcc4f81fc28054f0dc9914
...
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
0
@@ -1,3 +1,7 @@
0
+2008-11-02 Michael <michael@underpantsgnome.com>
0
+  Release 0.3.3
0
+  - Fix gem command test - Thanks David Masover
0
+
0
 2007-04-05 Michael <michael@underpantsgnome.com>
0
   Release 0.3.2
0
   - Fix broken dependancy in the gem
...
1
2
3
 
4
5
6
...
117
118
119
120
 
121
122
123
...
129
130
131
132
 
133
134
135
...
224
225
226
227
 
228
229
230
...
259
260
261
262
 
263
264
265
...
268
269
270
271
 
272
273
274
...
1
2
 
3
4
5
6
...
117
118
119
 
120
121
122
123
...
129
130
131
 
132
133
134
135
...
224
225
226
 
227
228
229
230
...
259
260
261
 
262
263
264
265
...
268
269
270
 
271
272
273
274
0
@@ -1,6 +1,6 @@
0
 require 'rubygems'
0
 
0
-if defined?(Kernel::gem)
0
+if defined?(gem)
0
   gem('hpricot', '>= 0.5')
0
 else
0
   require_gem('hpricot', '>= 0.5')
0
@@ -117,7 +117,7 @@ module Hpricot
0
 
0
     module Scrubbable
0
       def scrubbable?
0
-        ! [ Hpricot::Text, 
0
+        ! [ Hpricot::Text,
0
             Hpricot::BogusETag,
0
           ].include?(self.class) && self.respond_to?(:scrub)
0
       end
0
@@ -129,7 +129,7 @@ module Hpricot
0
     def strip
0
       each { |x| x.strip }
0
     end
0
-    
0
+
0
     def strip_attributes(safe=[])
0
       each { |x| x.scrub_attributes(safe) }
0
     end
0
@@ -224,7 +224,7 @@ module Hpricot
0
       end
0
       return true
0
     end
0
-    
0
+
0
   end #class Elem
0
 
0
   class Doc
0
@@ -259,7 +259,7 @@ end
0
 
0
 begin
0
   require 'htmlentities'
0
-  
0
+
0
   module Hpricot
0
     class Scrub
0
       @coder = HTMLEntities.new
0
@@ -268,7 +268,7 @@ begin
0
       end
0
     end
0
   end
0
-  
0
+
0
   class String
0
     def decode!
0
       self.gsub!(/^(\n|.)*$/, Hpricot::Scrub.entifier.decode(self))
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@ module HpricotScrub #:nodoc:
0
   module VERSION #:nodoc:
0
     MAJOR = 0
0
     MINOR = 3
0
-    TINY  = 2
0
+    TINY  = 3
0
 
0
     STRING = [MAJOR, MINOR, TINY].join('.')
0
   end

Comments