better_html 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/better_html/config.rb +5 -5
- data/lib/better_html/version.rb +1 -1
- metadata +42 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e08e885addbad48da5ed9cdae2f94901d5bc247edcac8d44cad04102a98705a
|
4
|
+
data.tar.gz: 41557624bb6ed954733257107041b188911682668d9cb488f0e276d8e0e03102
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 845196e964924c3f087b5ad2cc8c4d222ee4ceeb63af4630f5d61ef83b6ae94527456a3db227c27baaaaf4c7f4898cfbfaea54fad8a006c3ab845d3db9783245
|
7
|
+
data.tar.gz: 44409fa0db5a902998d5e08831c167e5955df1d369a99e07b3e1cce5e115f9cc29ee89111be45dd2457525360f4c14e3f2b9b86d0a7348546f072059f5e654d4
|
data/lib/better_html/config.rb
CHANGED
@@ -4,14 +4,14 @@ module BetterHtml
|
|
4
4
|
class Config
|
5
5
|
include SmartProperties
|
6
6
|
|
7
|
-
property :partial_tag_name_pattern, default: /\A[a-z0-9\-\:]+\z/
|
8
|
-
property :partial_attribute_name_pattern, default: /\A[a-zA-Z0-9\-\:]+\z/
|
7
|
+
property :partial_tag_name_pattern, default: -> { /\A[a-z0-9\-\:]+\z/ }
|
8
|
+
property :partial_attribute_name_pattern, default: -> { /\A[a-zA-Z0-9\-\:]+\z/ }
|
9
9
|
property :allow_single_quoted_attributes, default: true
|
10
10
|
property :allow_unquoted_attributes, default: false
|
11
|
-
property :javascript_safe_methods, default: ['to_json']
|
12
|
-
property :javascript_attribute_names, default: [/\Aon/i]
|
11
|
+
property :javascript_safe_methods, default: -> { ['to_json'] }
|
12
|
+
property :javascript_attribute_names, default: -> { [/\Aon/i] }
|
13
13
|
property :template_exclusion_filter
|
14
|
-
property :lodash_safe_javascript_expression, default: [/\AJSON\.stringify\(/]
|
14
|
+
property :lodash_safe_javascript_expression, default: -> { [/\AJSON\.stringify\(/] }
|
15
15
|
|
16
16
|
def javascript_attribute_name?(name)
|
17
17
|
javascript_attribute_names.any?{ |other| other === name.to_s }
|
data/lib/better_html/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: better_html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francois Chagnon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02
|
11
|
+
date: 2019-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|
@@ -244,54 +244,54 @@ signing_key:
|
|
244
244
|
specification_version: 4
|
245
245
|
summary: Better HTML for Rails.
|
246
246
|
test_files:
|
247
|
-
- test/
|
248
|
-
- test/
|
249
|
-
- test/
|
250
|
-
- test/
|
251
|
-
- test/
|
252
|
-
- test/better_html/tokenizer/token_array_test.rb
|
253
|
-
- test/better_html/tokenizer/token_test.rb
|
254
|
-
- test/better_html/tokenizer/html_lodash_test.rb
|
255
|
-
- test/better_html/tokenizer/location_test.rb
|
256
|
-
- test/better_html/tokenizer/html_erb_test.rb
|
257
|
-
- test/better_html/test_helper/safe_erb/script_interpolation_test.rb
|
258
|
-
- test/better_html/test_helper/safe_erb/allowed_script_type_test.rb
|
259
|
-
- test/better_html/test_helper/safe_erb/no_javascript_tag_helper_test.rb
|
260
|
-
- test/better_html/test_helper/safe_erb/no_statements_test.rb
|
261
|
-
- test/better_html/test_helper/safe_erb/tag_interpolation_test.rb
|
262
|
-
- test/better_html/test_helper/ruby_node_test.rb
|
263
|
-
- test/better_html/test_helper/safe_lodash_tester_test.rb
|
264
|
-
- test/dummy/app/controllers/application_controller.rb
|
265
|
-
- test/dummy/app/helpers/application_helper.rb
|
266
|
-
- test/dummy/app/views/layouts/application.html.erb
|
267
|
-
- test/dummy/app/assets/stylesheets/application.css
|
268
|
-
- test/dummy/app/assets/javascripts/application.js
|
269
|
-
- test/dummy/bin/bundle
|
247
|
+
- test/dummy/public/favicon.ico
|
248
|
+
- test/dummy/public/500.html
|
249
|
+
- test/dummy/public/422.html
|
250
|
+
- test/dummy/public/404.html
|
251
|
+
- test/dummy/README.rdoc
|
270
252
|
- test/dummy/bin/rake
|
253
|
+
- test/dummy/bin/bundle
|
271
254
|
- test/dummy/bin/rails
|
272
255
|
- test/dummy/bin/setup
|
256
|
+
- test/dummy/app/views/layouts/application.html.erb
|
257
|
+
- test/dummy/app/assets/stylesheets/application.css
|
258
|
+
- test/dummy/app/assets/javascripts/application.js
|
259
|
+
- test/dummy/app/controllers/application_controller.rb
|
260
|
+
- test/dummy/app/helpers/application_helper.rb
|
261
|
+
- test/dummy/config.ru
|
262
|
+
- test/dummy/Rakefile
|
263
|
+
- test/dummy/config/application.rb
|
264
|
+
- test/dummy/config/database.yml
|
265
|
+
- test/dummy/config/locales/en.yml
|
266
|
+
- test/dummy/config/secrets.yml
|
267
|
+
- test/dummy/config/boot.rb
|
273
268
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
274
|
-
- test/dummy/config/initializers/
|
269
|
+
- test/dummy/config/initializers/session_store.rb
|
275
270
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
271
|
+
- test/dummy/config/initializers/mime_types.rb
|
276
272
|
- test/dummy/config/initializers/cookies_serializer.rb
|
277
|
-
- test/dummy/config/initializers/session_store.rb
|
278
273
|
- test/dummy/config/initializers/assets.rb
|
279
|
-
- test/dummy/config/initializers/
|
274
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
280
275
|
- test/dummy/config/initializers/inflections.rb
|
281
|
-
- test/dummy/config/secrets.yml
|
282
|
-
- test/dummy/config/application.rb
|
283
|
-
- test/dummy/config/database.yml
|
284
276
|
- test/dummy/config/environment.rb
|
285
|
-
- test/dummy/config/
|
286
|
-
- test/dummy/config/locales/en.yml
|
287
|
-
- test/dummy/config/environments/development.rb
|
277
|
+
- test/dummy/config/routes.rb
|
288
278
|
- test/dummy/config/environments/test.rb
|
279
|
+
- test/dummy/config/environments/development.rb
|
289
280
|
- test/dummy/config/environments/production.rb
|
290
|
-
- test/
|
291
|
-
- test/
|
292
|
-
- test/
|
293
|
-
- test/
|
294
|
-
- test/
|
295
|
-
- test/
|
296
|
-
- test/
|
297
|
-
- test/
|
281
|
+
- test/better_html/better_erb/implementation_test.rb
|
282
|
+
- test/better_html/helpers_test.rb
|
283
|
+
- test/better_html/test_helper/safe_erb/allowed_script_type_test.rb
|
284
|
+
- test/better_html/test_helper/safe_erb/no_javascript_tag_helper_test.rb
|
285
|
+
- test/better_html/test_helper/safe_erb/tag_interpolation_test.rb
|
286
|
+
- test/better_html/test_helper/safe_erb/script_interpolation_test.rb
|
287
|
+
- test/better_html/test_helper/safe_erb/no_statements_test.rb
|
288
|
+
- test/better_html/test_helper/safe_lodash_tester_test.rb
|
289
|
+
- test/better_html/test_helper/ruby_node_test.rb
|
290
|
+
- test/better_html/errors_test.rb
|
291
|
+
- test/better_html/tokenizer/token_array_test.rb
|
292
|
+
- test/better_html/tokenizer/token_test.rb
|
293
|
+
- test/better_html/tokenizer/location_test.rb
|
294
|
+
- test/better_html/tokenizer/html_erb_test.rb
|
295
|
+
- test/better_html/tokenizer/html_lodash_test.rb
|
296
|
+
- test/better_html/parser_test.rb
|
297
|
+
- test/test_helper.rb
|