rgrove-sanitize 1.0.8.2 → 1.0.8.3

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/README.rdoc CHANGED
@@ -15,17 +15,27 @@ or maliciously-formed HTML. When in doubt, Sanitize always errs on the side of
15
15
  caution.
16
16
 
17
17
  *Author*:: Ryan Grove (mailto:ryan@wonko.com)
18
- *Version*:: 1.0.8.2 (git)
18
+ *Version*:: git
19
19
  *Copyright*:: Copyright (c) 2009 Ryan Grove. All rights reserved.
20
20
  *License*:: MIT License (http://opensource.org/licenses/mit-license.php)
21
21
  *Website*:: http://github.com/rgrove/sanitize
22
22
 
23
23
  == Requires
24
24
 
25
- * RubyGems
26
25
  * Nokogiri
27
26
  * libxml2 >= 2.7.2
28
27
 
28
+ == Installation
29
+
30
+ Latest stable release:
31
+
32
+ gem install sanitize
33
+
34
+ Latest development version:
35
+
36
+ gem sources -a http://gems.github.com
37
+ gem install rgrove-sanitize
38
+
29
39
  == Usage
30
40
 
31
41
  If you don't specify any configuration options, Sanitize will use its strictest
data/lib/sanitize.rb CHANGED
@@ -20,15 +20,8 @@
20
20
  # SOFTWARE.
21
21
  #++
22
22
 
23
- # Append this file's directory to the include path if it's not there already.
24
- $:.unshift(File.dirname(File.expand_path(__FILE__)))
25
- $:.uniq!
26
-
27
- require 'rubygems'
28
-
29
- gem 'nokogiri', '~> 1.3.3'
30
-
31
23
  require 'nokogiri'
24
+ require 'sanitize/version'
32
25
  require 'sanitize/config'
33
26
  require 'sanitize/config/restricted'
34
27
  require 'sanitize/config/basic'
@@ -0,0 +1,3 @@
1
+ class Sanitize
2
+ VERSION = '1.0.8.3'
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgrove-sanitize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8.2
4
+ version: 1.0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Grove
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-16 00:00:00 -07:00
12
+ date: 2009-09-04 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,6 +22,26 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: 1.3.3
24
24
  version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: bacon
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 1.1.0
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rake
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 0.8.0
44
+ version:
25
45
  description:
26
46
  email: ryan@wonko.com
27
47
  executables: []
@@ -34,11 +54,12 @@ files:
34
54
  - HISTORY
35
55
  - LICENSE
36
56
  - README.rdoc
37
- - lib/sanitize.rb
38
- - lib/sanitize/config.rb
39
57
  - lib/sanitize/config/basic.rb
40
58
  - lib/sanitize/config/relaxed.rb
41
59
  - lib/sanitize/config/restricted.rb
60
+ - lib/sanitize/config.rb
61
+ - lib/sanitize/version.rb
62
+ - lib/sanitize.rb
42
63
  has_rdoc: false
43
64
  homepage: http://github.com/rgrove/sanitize/
44
65
  post_install_message:
@@ -63,7 +84,7 @@ requirements: []
63
84
  rubyforge_project:
64
85
  rubygems_version: 1.2.0
65
86
  signing_key:
66
- specification_version: 2
87
+ specification_version: 3
67
88
  summary: Whitelist-based HTML sanitizer.
68
89
  test_files: []
69
90