rails-deprecated_sanitizer 1.0.0 → 1.0.1

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
2
  SHA1:
3
- metadata.gz: 9570967c2f4f3fb0464be3a5de1ee7ccae1bd09a
4
- data.tar.gz: bbb6628bc2532ef7cf95038b7d8a986845eceb3f
3
+ metadata.gz: 95f9068a307d181ea7d9ba85c2e44fba0e68abe8
4
+ data.tar.gz: 661d8d9d38a5f940477e0d135258ecd6d07e9627
5
5
  SHA512:
6
- metadata.gz: 642ec60f5421e3cbc81ea35d0ddbd96fae302aef12655e1a07a66ffc4b625a01d604aecc09f535232cc1222a44b3ab20b5af52cec0dde353dbdf0537c63acfbb
7
- data.tar.gz: d1b3465d6908c599fde76a3d58185f132937ca44ebc60912b29abeb0789a8816a447b8498ce24e9374bbfab18ff7d005ed745e655c7731f8e2f51801a3821a76
6
+ metadata.gz: 8f114e6ba45f5eb0815b7fe076fad27e01b6960e14f07613c810fddd3bcddf2fbfeaa06a168ea58e93be2a04dd6a3903e4c1cdabd4d904b29c3d6a669fb53578
7
+ data.tar.gz: 50ced09a3d6f975723c65bf72b3b7d1c6d9a33d7260bc9979019d11cef88f5eff740750acab3e8718a1623081aa0fd21960218f0080e3400ea1fdd72e26e6bc9
@@ -1,3 +1,8 @@
1
+ ## 1.0.1
2
+
3
+ * Fix autoload issue.
4
+ * Added a railtie to eager load the HTML module.
5
+
1
6
  ## 1.0.0
2
7
 
3
8
  * First release
@@ -1,5 +1,6 @@
1
1
  require "rails/deprecated_sanitizer/version"
2
2
  require "rails/deprecated_sanitizer/html-scanner"
3
+ require "rails/deprecated_sanitizer/railtie"
3
4
 
4
5
  module Rails
5
6
  module DeprecatedSanitizer
@@ -1,3 +1,4 @@
1
+ require 'active_support/dependencies/autoload'
1
2
  $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/html-scanner"
2
3
 
3
4
  module HTML
@@ -0,0 +1,9 @@
1
+ require 'rails/railtie'
2
+
3
+ module Rails
4
+ module DeprecatedSanitizer
5
+ class Railtie < Rails::Railtie
6
+ config.eager_load_namespaces << HTML
7
+ end
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module DeprecatedSanitizer
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-deprecated_sanitizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Timm Hansen
@@ -70,6 +70,7 @@ files:
70
70
  - lib/rails/deprecated_sanitizer/html-scanner/html/selector.rb
71
71
  - lib/rails/deprecated_sanitizer/html-scanner/html/tokenizer.rb
72
72
  - lib/rails/deprecated_sanitizer/html-scanner/html/version.rb
73
+ - lib/rails/deprecated_sanitizer/railtie.rb
73
74
  - lib/rails/deprecated_sanitizer/version.rb
74
75
  - test/cdata_node_test.rb
75
76
  - test/deprecated_sanitizer_test.rb
@@ -99,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
100
  version: '0'
100
101
  requirements: []
101
102
  rubyforge_project:
102
- rubygems_version: 2.2.2
103
+ rubygems_version: 2.3.0
103
104
  signing_key:
104
105
  specification_version: 4
105
106
  summary: Deprecated sanitizer API extracted from Action View.
@@ -112,3 +113,4 @@ test_files:
112
113
  - test/test_helper.rb
113
114
  - test/text_node_test.rb
114
115
  - test/tokenizer_test.rb
116
+ has_rdoc: