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.
- data/CHANGELOG.txt +4 -0
- data/History.txt +4 -0
- data/README.txt +2 -5
- data/examples/config.yml +24 -0
- data/lib/hpricot_scrub/hpricot_scrub.rb +4 -0
- data/lib/hpricot_scrub/version.rb +1 -1
- metadata +7 -5
data/CHANGELOG.txt
CHANGED
data/History.txt
CHANGED
data/README.txt
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
= hpricot_scrub
|
|
2
2
|
|
|
3
|
-
http://
|
|
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
|
|
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
|
|
data/examples/config.yml
CHANGED
|
@@ -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
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
85
|
+
rubygems_version: 1.3.5
|
|
84
86
|
signing_key:
|
|
85
|
-
specification_version:
|
|
87
|
+
specification_version: 3
|
|
86
88
|
summary: Scrub HTML with Hpricot
|
|
87
89
|
test_files:
|
|
88
90
|
- test/hpricot_scrub_test.rb
|