hpricot_scrub 0.3.8 → 0.3.9

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.
@@ -1,3 +1,7 @@
1
+ 2009-11-04 Matt Kelly
2
+ Release 0.3.9
3
+ - fix undefined method `scrubbable?' for #<Hpricot::DocType>
4
+
1
5
  2009-07-29 Mina Naguib <mina.hpricotscrub@naguib.ca>
2
6
  Release 0.3.8
3
7
  - fix undefined method `scrubbable?' for #<Hpricot::ProcIns>
@@ -1,3 +1,7 @@
1
+ 2009-11-04 Matt Kelly
2
+ Release 0.3.9
3
+ - fix undefined method `scrubbable?' for #<Hpricot::DocType>
4
+
1
5
  2009-07-29 Mina Naguib <mina.hpricotscrub@naguib.ca>
2
6
  Release 0.3.8
3
7
  - fix undefined method `scrubbable?' for #<Hpricot::ProcIns>
data/README.txt CHANGED
@@ -1,16 +1,13 @@
1
1
  = hpricot_scrub
2
2
 
3
- http://trac.underpantsgnome.com/hpricot_scrub
3
+ http://github.com/UnderpantsGnome/hpricot_scrub/tree/master
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
7
  HpricotScrub is a wrapper around Hpricot that allows you to easily scrub HTML
8
8
  of tags and attributes you don't want in the final output.
9
9
 
10
- See examples/config.yml for a sample config file or
11
-
12
- == FEATURES/PROBLEMS:
13
-
10
+ See examples/config.yml or examples/old_config.yml for a sample configs
14
11
 
15
12
  == SYNOPSIS:
16
13
 
@@ -0,0 +1,24 @@
1
+ ---
2
+ :elem_rules:
3
+ script: false
4
+ html: true
5
+ body:
6
+ lang:
7
+ - en
8
+ - es
9
+ - fr
10
+
11
+ strong: true
12
+ p: true
13
+ br: true
14
+ marquee: :strip
15
+ div:
16
+ - id
17
+ - class
18
+ - style
19
+ style: false
20
+ span: :strip
21
+ hr: true
22
+ :default_elem_rule: :strip
23
+ :default_comment_rule: false
24
+ :default_attribute_rule: false
@@ -135,6 +135,10 @@ module Hpricot
135
135
  end
136
136
  end
137
137
 
138
+ class DocType
139
+ include Scrub::Scrubbable
140
+ end
141
+
138
142
  class BogusETag
139
143
  include Scrub::Scrubbable
140
144
  end
@@ -2,7 +2,7 @@ module HpricotScrub #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 8
5
+ TINY = 9
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.8
4
+ version: 0.3.9
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-07-29 00:00:00 -05:00
12
+ date: 2009-11-05 00:00:00 -06: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: 2.3.2
33
+ version: 2.3.3
34
34
  version:
35
35
  description: Scrub HTML with Hpricot
36
36
  email: michael@underpantsgnome.com
@@ -59,6 +59,8 @@ files:
59
59
  - examples/old_config.yml
60
60
  has_rdoc: true
61
61
  homepage: http://trac.underpantsgnome.com/hpricot_scrub/
62
+ licenses: []
63
+
62
64
  post_install_message:
63
65
  rdoc_options:
64
66
  - --main
@@ -80,9 +82,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
82
  requirements: []
81
83
 
82
84
  rubyforge_project: hpricot-scrub
83
- rubygems_version: 1.3.1
85
+ rubygems_version: 1.3.5
84
86
  signing_key:
85
- specification_version: 2
87
+ specification_version: 3
86
88
  summary: Scrub HTML with Hpricot
87
89
  test_files:
88
90
  - test/hpricot_scrub_test.rb