acts_as_sanitiled 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +9 -2
- data/README.rdoc +9 -0
- data/VERSION +1 -1
- data/acts_as_sanitiled.gemspec +5 -4
- data/lib/acts_as_sanitiled.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,2 +1,9 @@
|
|
1
|
-
1.
|
2
|
-
|
1
|
+
1.1.1 (2010-01-12)
|
2
|
+
* Fix Rails 3 deprecation (Beefy)
|
3
|
+
|
4
|
+
1.1.0 (2010-10-19)
|
5
|
+
* Add acts_as_sanitized and acts_as_textiled helpers to separate out the functionality.
|
6
|
+
* Add default_sanitize_options and default_textile_options class variables.
|
7
|
+
|
8
|
+
1.0.0 (2009-10-14)
|
9
|
+
* Initial butchering of defunkt's work.
|
data/README.rdoc
CHANGED
@@ -25,6 +25,15 @@ Then in your Rails environment.rb:
|
|
25
25
|
|
26
26
|
config.gem 'acts_as_sanitiled'
|
27
27
|
|
28
|
+
== Known Issues
|
29
|
+
|
30
|
+
The tests are passing for me with Sanitize 1.1.0 and Nokogiri 1.4.0 under my native ruby install of 1.8.6. However under 1.8.7 (using rvm) I get a whitespace error in the sanitized html, which results in paragraphs and line breaks not having line breaks, and thus screws up the output of attribute(:plain). I haven't been able to figure out what the problem is yet, but if you see a test failure on:
|
31
|
+
|
32
|
+
./spec/sanitiled_spec.rb:49: A standard textiled object - should properly textilize and strip html
|
33
|
+
|
34
|
+
Let me know if you are able to help debug.
|
35
|
+
|
36
|
+
|
28
37
|
== Changes from acts_as_textiled
|
29
38
|
|
30
39
|
acts_as_sanitiled mostly maintains the API, but one noticeable difference is that it needs to expose the Sanitize config. Therefore acts_as_textiled use of a hash to provide per-column RedCloth configuration had to be replaced with Sanitize config. RedCloth options can still be passed as an array that applies to all fields listed.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/acts_as_sanitiled.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{acts_as_sanitiled}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Gabe da Silveira"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-01-12}
|
13
13
|
s.description = %q{A modernized version of Chris Wansthrath's venerable acts_as_textiled. It automatically textiles and then sanitizes columns to your specification. Ryan Grove's excellent Sanitize gem with nokogiri provides the backend for speedy and robust filtering of your output in order to: restrict Textile to a subset of HTML, guarantee well-formedness, and of course prevent XSS.}
|
14
14
|
s.email = %q{gabe@websaviour.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -63,3 +63,4 @@ Gem::Specification.new do |s|
|
|
63
63
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
64
64
|
end
|
65
65
|
end
|
66
|
+
|
data/lib/acts_as_sanitiled.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_sanitiled
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabe da Silveira
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-12 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|