rails_html_validator 0.1.2 → 0.1.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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/lib/rails_html_validator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9810553a68a02508534bea0f24327bdf5eb8a34b5caa9b918799c42ef2b433ba
|
4
|
+
data.tar.gz: 2dfb53efedc379cade5de12af36712e1d2962ce6cc63e92e39f65f6f504cc566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df359163a4e7c0387a96e21c74062ce37219f01abc10f3e6dbce56270fe41da1bafee0fdfb3e779c83d52d7a223bca2545d55882009af0f2f879aa9453e59b3f
|
7
|
+
data.tar.gz: 27ce574d223b3ba6b1b2484cb801673aedc9a4640b56b206ab633b342caec8c047b89f3b571f57ceeb8c3c5e8d60c8b5204430d854a1fd2ca4978be8a197748a
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -17,7 +17,7 @@ And then execute:
|
|
17
17
|
|
18
18
|
Or install it yourself as:
|
19
19
|
|
20
|
-
$ gem install
|
20
|
+
$ gem install rails_html_validator
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
@@ -27,7 +27,7 @@ class Blog < ActiveRecord::Base
|
|
27
27
|
validates :body, html: true
|
28
28
|
|
29
29
|
# with exclude tags
|
30
|
-
validates :body, html: { exclude_tags: %w(
|
30
|
+
validates :body, html: { exclude_tags: %w(head script style) }
|
31
31
|
end
|
32
32
|
```
|
33
33
|
|
@@ -61,4 +61,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
61
61
|
|
62
62
|
## Code of Conduct
|
63
63
|
|
64
|
-
Everyone interacting in the RailsHtmlValidator project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
64
|
+
Everyone interacting in the RailsHtmlValidator project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jiraffeinc/rails_html_validator/blob/master/CODE_OF_CONDUCT.md).
|