rails-deprecated_sanitizer 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b097d32525518131104c3ec6e0de67a37278429a
4
- data.tar.gz: 0bb4d49a13c78b74411bc9cd4c3ba09bc7cc34c2
2
+ SHA256:
3
+ metadata.gz: b34e5ff77f6f29a560c82bdbd50ce7d296a84bab324ecf7c5ae5767f90ca90fb
4
+ data.tar.gz: 1feebb86f3cdc7c90048d45756e9a3e6702d3019dc73dfc691db6ab8d2650d18
5
5
  SHA512:
6
- metadata.gz: 38a89e6806634dd8e5a1b42ffbb81c19c6825ab1bef6f7bcb11c223032a997d1b5ab539ee7280e53700243dd9633477e93a93e59de976a5d6b50cbbed9e5a447
7
- data.tar.gz: c60bf16b418b3411f263ad8f942a11460eea8b259371c32650e3987b26c850d51bd3eb19a7c194729ff837d923303ce4d57119e299dbd7f6900440d095cfc2d5
6
+ metadata.gz: 90a86aaf8aa093f5e99099c25ca9c81d0a53f82fd27d82c028c2e6c1fd4a0e25b6fc1f6fc622f7f75ed83d30fa71cc105a21543e6dd0a91362f8313ab1b0729e
7
+ data.tar.gz: ed52cf3a31b95b7988f484bf94836049e2d940eacdc4f51a4db2ff9521fb9370dd471742c7df6e75582615566262d1d8b1c738e5379759137751c17a0ca7aa55
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.4
2
+
3
+ * Rails 6 support https://github.com/rails/rails-deprecated_sanitizer/pull/6
4
+
1
5
  ## 1.0.3
2
6
 
3
7
  * Improved support for Rails 4.2.0.beta2 and above.
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Timm
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  In Rails 4.2 HTML sanitization has been rewritten using a more secure library.
4
4
 
5
5
  This gem includes the old behavior shipping with Rails 4.2 and before. It is
6
- strictly provided to ease migration. It will be supported until Rails 5.
6
+ strictly provided to ease migration.
7
7
 
8
8
  To downgrade add `gem 'rails-deprecated_sanitizer'` to your Gemfile.
9
9
 
@@ -18,6 +18,10 @@ module Rails
18
18
  def white_list_sanitizer
19
19
  HTML::WhiteListSanitizer
20
20
  end
21
+
22
+ def safe_list_sanitizer
23
+ HTML::WhiteListSanitizer
24
+ end
21
25
  end
22
26
  end
23
27
 
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module DeprecatedSanitizer
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-deprecated_sanitizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Timm Hansen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-25 00:00:00.000000000 Z
11
+ date: 2021-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.6'
33
+ version: '2.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.6'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description:
55
+ description:
56
56
  email:
57
57
  - kaspth@gmail.com
58
58
  executables: []
@@ -60,6 +60,7 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - CHANGELOG.md
63
+ - LICENSE
63
64
  - README.md
64
65
  - lib/rails-deprecated_sanitizer.rb
65
66
  - lib/rails/deprecated_sanitizer.rb
@@ -84,7 +85,7 @@ homepage: https://github.com/rails/rails-deprecated_sanitizer
84
85
  licenses:
85
86
  - MIT
86
87
  metadata: {}
87
- post_install_message:
88
+ post_install_message:
88
89
  rdoc_options: []
89
90
  require_paths:
90
91
  - lib
@@ -99,17 +100,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
100
  - !ruby/object:Gem::Version
100
101
  version: '0'
101
102
  requirements: []
102
- rubyforge_project:
103
- rubygems_version: 2.2.1
104
- signing_key:
103
+ rubygems_version: 3.2.5
104
+ signing_key:
105
105
  specification_version: 4
106
106
  summary: Deprecated sanitizer API extracted from Action View.
107
107
  test_files:
108
- - test/cdata_node_test.rb
109
- - test/deprecated_sanitizer_test.rb
110
- - test/document_test.rb
111
108
  - test/node_test.rb
112
- - test/tag_node_test.rb
113
- - test/test_helper.rb
114
109
  - test/text_node_test.rb
110
+ - test/tag_node_test.rb
111
+ - test/cdata_node_test.rb
115
112
  - test/tokenizer_test.rb
113
+ - test/deprecated_sanitizer_test.rb
114
+ - test/test_helper.rb
115
+ - test/document_test.rb