hpricot_scrub 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.txt CHANGED
@@ -1,3 +1,7 @@
1
+ 2008-11-02 Michael <michael@underpantsgnome.com>
2
+ Release 0.3.4
3
+ - Fix gem command test - Thanks David Masover
4
+
1
5
  2007-04-05 Michael <michael@underpantsgnome.com>
2
6
  Release 0.3.2
3
7
  - Fix broken dependancy in the gem
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ 2008-11-02 Michael <michael@underpantsgnome.com>
2
+ Release 0.3.4
3
+ - Fix gem command test - Thanks David Masover
4
+
1
5
  2007-04-05 Michael <michael@underpantsgnome.com>
2
6
  Release 0.3.2
3
7
  - Fix broken dependancy in the gem
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
 
3
- if defined?(Kernel::gem)
3
+ if defined?(gem)
4
4
  gem('hpricot', '>= 0.5')
5
5
  else
6
6
  require_gem('hpricot', '>= 0.5')
@@ -117,7 +117,7 @@ module Hpricot
117
117
 
118
118
  module Scrubbable
119
119
  def scrubbable?
120
- ! [ Hpricot::Text,
120
+ ! [ Hpricot::Text,
121
121
  Hpricot::BogusETag,
122
122
  ].include?(self.class) && self.respond_to?(:scrub)
123
123
  end
@@ -129,7 +129,7 @@ module Hpricot
129
129
  def strip
130
130
  each { |x| x.strip }
131
131
  end
132
-
132
+
133
133
  def strip_attributes(safe=[])
134
134
  each { |x| x.scrub_attributes(safe) }
135
135
  end
@@ -224,7 +224,7 @@ module Hpricot
224
224
  end
225
225
  return true
226
226
  end
227
-
227
+
228
228
  end #class Elem
229
229
 
230
230
  class Doc
@@ -259,7 +259,7 @@ end
259
259
 
260
260
  begin
261
261
  require 'htmlentities'
262
-
262
+
263
263
  module Hpricot
264
264
  class Scrub
265
265
  @coder = HTMLEntities.new
@@ -268,7 +268,7 @@ begin
268
268
  end
269
269
  end
270
270
  end
271
-
271
+
272
272
  class String
273
273
  def decode!
274
274
  self.gsub!(/^(\n|.)*$/, Hpricot::Scrub.entifier.decode(self))
@@ -2,7 +2,7 @@ module HpricotScrub #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 3
5
+ TINY = 4
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.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - UnderpantsGnome
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-11 00:00:00 -05:00
12
+ date: 2008-11-02 01:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hpricot
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -21,6 +22,16 @@ dependencies:
21
22
  - !ruby/object:Gem::Version
22
23
  version: "0.5"
23
24
  version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: hoe
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.7.0
34
+ version:
24
35
  description: Scrub HTML with Hpricot
25
36
  email: michael@underpantsgnome.com
26
37
  executables: []
@@ -69,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
80
  requirements: []
70
81
 
71
82
  rubyforge_project: hpricot-scrub
72
- rubygems_version: 1.0.1
83
+ rubygems_version: 1.2.0
73
84
  signing_key:
74
85
  specification_version: 2
75
86
  summary: Scrub HTML with Hpricot