parliament-utils 0.9.1 → 0.10.0

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: 57e8942631d85dd3ef9e374d3c69ef92162358ce
4
- data.tar.gz: 3eebabcc83b7826f713b1d32a1cf765a29b8c25f
3
+ metadata.gz: e9a7896fa357fb4169dd17eb9a3583e21013e72e
4
+ data.tar.gz: a0609152b4b8509c4017df31665e55c1a169616f
5
5
  SHA512:
6
- metadata.gz: ec0fe535a22f52654d41d86518ad7f09fccfaf90cb0c0f37031372faf2c9c1921cc5189e87f22df9d3f8b3dae1237ed410235ce41b8c65032e113ff4d0eb1856
7
- data.tar.gz: bae9c631bc25f9088b1f7f83e5857129b3df8f82c7a02d2e9f1fbed19adb6a20031875f403874eb28066a02140038c77831b6287d3d30fd265561986fa8c5eb9
6
+ metadata.gz: 29f95d2ba7b0eeabaf4826e6bb68f76fa6e37d6341e5187819c7450a33f379ec58e6d440d3912bcd6dddbfbe4bc54bbcb3c5fa036d2502da99436126d1dd7c2b
7
+ data.tar.gz: 82c66428fbd06ef442e91afc3875a4d852d9c72ae82c8210b530219cef6808c2f305ebc2fc69297443fce7d05a40e56bf4a427e9291c90320b137eef4e7352d8
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Allow HTML tags that aren't allowed by default in the SanitizeHelper
4
+
5
+ # Don't change this
6
+ default_sanitize_tags = ActionView::Base.sanitized_allowed_tags
7
+
8
+ # Add your desired HTML tags in here
9
+ desired_sanitize_tags = %w[table tbody td tfoot th thead tr]
10
+
11
+ # Merge default_sanitize_tags with desired_sanitize_tags
12
+ Rails.application.config.action_view.sanitized_allowed_tags = default_sanitize_tags.merge(desired_sanitize_tags).to_a
@@ -11,6 +11,7 @@ require 'parliament/utils/config/initializers/cookies_serializer'
11
11
  require 'parliament/utils/config/initializers/filter_parameter_logging'
12
12
  require 'parliament/utils/config/initializers/inflections'
13
13
  require 'parliament/utils/config/initializers/mime_types'
14
+ require 'parliament/utils/config/initializers/sanitize_allowed_html_tags'
14
15
  require 'parliament/utils/config/initializers/session_store'
15
16
  require 'parliament/utils/config/initializers/timeout' if defined?(Rack::Timeout)
16
17
  require 'parliament/utils/config/initializers/wrap_parameters'
@@ -1,5 +1,5 @@
1
1
  module Parliament
2
2
  module Utils
3
- VERSION = '0.9.1'.freeze
3
+ VERSION = '0.10.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliament-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rebecca Appleyard
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-09 00:00:00.000000000 Z
11
+ date: 2018-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parliament-ruby
@@ -326,6 +326,7 @@ files:
326
326
  - lib/parliament/utils/config/initializers/filter_parameter_logging.rb
327
327
  - lib/parliament/utils/config/initializers/inflections.rb
328
328
  - lib/parliament/utils/config/initializers/mime_types.rb
329
+ - lib/parliament/utils/config/initializers/sanitize_allowed_html_tags.rb
329
330
  - lib/parliament/utils/config/initializers/session_store.rb
330
331
  - lib/parliament/utils/config/initializers/timeout.rb
331
332
  - lib/parliament/utils/config/initializers/wrap_parameters.rb