railhead_sanitize 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/railhead_sanitize.rb +3 -3
- data/railhead_sanitize.gemspec +2 -2
- metadata +17 -5
data/lib/railhead_sanitize.rb
CHANGED
@@ -4,17 +4,17 @@ module RailheadSanitize
|
|
4
4
|
base.send :include, ActionView::Helpers::SanitizeHelper
|
5
5
|
base.extend ActionView::Helpers::SanitizeHelper::ClassMethods
|
6
6
|
base.class_eval do
|
7
|
-
|
7
|
+
class_attribute :sanitize_options
|
8
8
|
before_validation :sanitize_fields
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
12
|
module ClassMethods
|
13
13
|
def auto_sanitize(options = {})
|
14
|
-
|
14
|
+
self.sanitize_options = {
|
15
15
|
:except => (options[:except] || []),
|
16
16
|
:allow_tags => (options[:allow_tags] || [])
|
17
|
-
}
|
17
|
+
}
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
data/railhead_sanitize.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "railhead_sanitize"
|
3
|
-
s.version = "0.
|
4
|
-
s.date = "
|
3
|
+
s.version = "0.3.0"
|
4
|
+
s.date = "2012-03-13"
|
5
5
|
s.summary = "RailheadSanitize is a Ruby on Rails plugin that automatically strips tags from input fields."
|
6
6
|
s.email = "nagybence@tipogral.hu"
|
7
7
|
s.homepage = "http://github.com/nagybence/railhead_sanitize"
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railhead_sanitize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 19
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 0.3.0
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Bence Nagy
|
@@ -9,7 +15,7 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2012-03-13 00:00:00 +01:00
|
13
19
|
default_executable:
|
14
20
|
dependencies: []
|
15
21
|
|
@@ -38,21 +44,27 @@ rdoc_options:
|
|
38
44
|
require_paths:
|
39
45
|
- lib
|
40
46
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
none: false
|
41
48
|
requirements:
|
42
49
|
- - ">="
|
43
50
|
- !ruby/object:Gem::Version
|
51
|
+
hash: 3
|
52
|
+
segments:
|
53
|
+
- 0
|
44
54
|
version: "0"
|
45
|
-
version:
|
46
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
47
57
|
requirements:
|
48
58
|
- - ">="
|
49
59
|
- !ruby/object:Gem::Version
|
60
|
+
hash: 3
|
61
|
+
segments:
|
62
|
+
- 0
|
50
63
|
version: "0"
|
51
|
-
version:
|
52
64
|
requirements: []
|
53
65
|
|
54
66
|
rubyforge_project:
|
55
|
-
rubygems_version: 1.3.
|
67
|
+
rubygems_version: 1.3.7
|
56
68
|
signing_key:
|
57
69
|
specification_version: 3
|
58
70
|
summary: RailheadSanitize is a Ruby on Rails plugin that automatically strips tags from input fields.
|