better_html 1.0.15 → 1.0.16

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
  SHA256:
3
- metadata.gz: e6a028523ef92bb33a8ec5d7c7236086b98057c8f9585b01f40aa33ab10ed6dc
4
- data.tar.gz: ce8b217ae3543b998969a4d9ef03a4ef66d84e1b501724339c1fdf790ee2ecc2
3
+ metadata.gz: e8dc392542e380b0d3cb63c331cf0524f1b016f15fb99c907e8fd951fb22eae7
4
+ data.tar.gz: 3393a92593172019c1180c9ca3ed8dc81c9c043954b9d0a221dd82dcd399f8dd
5
5
  SHA512:
6
- metadata.gz: 233ba0bec33c08fb81b33b2d69783cfe26aac27db4c9487b1a0f6aa78b5d81e8de7982bf09110c8e033eed957b202f5520026070fb21fe4f0a90848e180cc912
7
- data.tar.gz: '08fcd850bed062e0e7fb3d8a9b0e9aa3d3f1df17db101cc9af5a04ecccc2a6aeebe406405684dc31b4d034b585eaeae4357f8248cfff5bbdb9afd539598c73da'
6
+ metadata.gz: d47ab514dcb80da8a3392dd933f4f51ccd88aa538c06fa94d325c8146c4f70250c0e57573d86ed726c58127591a9907f19183e5c640218bcadf5b09e724a83ef
7
+ data.tar.gz: e9d3f1534fa3f9dfad8ff0f2290bf09b9b4b221584c28cb5bc3ec67663cbe739d86d281b544d002eb1666c7772e1f0bb9bd7c67026807cf2719af661bf93cc71
@@ -52,7 +52,7 @@ EOF
52
52
  end
53
53
 
54
54
  testers = tester_classes.map do |tester_klass|
55
- tester = tester_klass.new(parser)
55
+ tester_klass.new(parser)
56
56
  end
57
57
  testers.each(&:validate)
58
58
  errors = testers.map(&:errors).flatten
@@ -49,20 +49,20 @@ module BetterHtml
49
49
  def add_erb_tokens(ltrim, indicator, code, rtrim)
50
50
  pos = current_position
51
51
 
52
- token = add_token(:erb_begin, pos, pos + 2)
52
+ add_token(:erb_begin, pos, pos + 2)
53
53
  pos += 2
54
54
 
55
55
  if ltrim
56
- token = add_token(:trim, pos, pos + ltrim.length)
56
+ add_token(:trim, pos, pos + ltrim.length)
57
57
  pos += ltrim.length
58
58
  end
59
59
 
60
60
  if indicator
61
- token = add_token(:indicator, pos, pos + indicator.length)
61
+ add_token(:indicator, pos, pos + indicator.length)
62
62
  pos += indicator.length
63
63
  end
64
64
 
65
- token = add_token(:code, pos, pos + code.length)
65
+ add_token(:code, pos, pos + code.length)
66
66
  pos += code.length
67
67
 
68
68
  if rtrim
@@ -70,7 +70,7 @@ module BetterHtml
70
70
  pos += rtrim.length
71
71
  end
72
72
 
73
- token = add_token(:erb_end, pos, pos + 2)
73
+ add_token(:erb_end, pos, pos + 2)
74
74
  end
75
75
 
76
76
  def add_token(type, begin_pos, end_pos)
@@ -1,3 +1,3 @@
1
1
  module BetterHtml
2
- VERSION = "1.0.15"
2
+ VERSION = "1.0.16"
3
3
  end
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.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francois Chagnon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-19 00:00:00.000000000 Z
11
+ date: 2021-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ast
@@ -225,7 +225,7 @@ licenses:
225
225
  metadata:
226
226
  bug_tracker_uri: https://github.com/Shopify/better-html/issues
227
227
  changelog_uri: https://github.com/Shopify/better-html/releases
228
- source_code_uri: https://github.com/Shopify/better-html/tree/v1.0.15
228
+ source_code_uri: https://github.com/Shopify/better-html/tree/v1.0.16
229
229
  allowed_push_host: https://rubygems.org
230
230
  post_install_message:
231
231
  rdoc_options: []
@@ -247,54 +247,54 @@ signing_key:
247
247
  specification_version: 4
248
248
  summary: Better HTML for Rails.
249
249
  test_files:
250
- - test/test_helper.rb
251
- - test/better_html/helpers_test.rb
252
- - test/better_html/better_erb/implementation_test.rb
253
250
  - test/better_html/errors_test.rb
254
- - test/better_html/parser_test.rb
255
- - test/better_html/tokenizer/token_array_test.rb
256
- - test/better_html/tokenizer/token_test.rb
257
- - test/better_html/tokenizer/html_lodash_test.rb
258
- - test/better_html/tokenizer/location_test.rb
259
- - test/better_html/tokenizer/html_erb_test.rb
260
- - test/better_html/test_helper/safe_erb/script_interpolation_test.rb
251
+ - test/better_html/test_helper/ruby_node_test.rb
261
252
  - test/better_html/test_helper/safe_erb/allowed_script_type_test.rb
262
253
  - test/better_html/test_helper/safe_erb/no_javascript_tag_helper_test.rb
263
- - test/better_html/test_helper/safe_erb/no_statements_test.rb
254
+ - test/better_html/test_helper/safe_erb/script_interpolation_test.rb
264
255
  - test/better_html/test_helper/safe_erb/tag_interpolation_test.rb
265
- - test/better_html/test_helper/ruby_node_test.rb
256
+ - test/better_html/test_helper/safe_erb/no_statements_test.rb
266
257
  - test/better_html/test_helper/safe_lodash_tester_test.rb
258
+ - test/better_html/better_erb/implementation_test.rb
259
+ - test/better_html/tokenizer/location_test.rb
260
+ - test/better_html/tokenizer/token_test.rb
261
+ - test/better_html/tokenizer/token_array_test.rb
262
+ - test/better_html/tokenizer/html_lodash_test.rb
263
+ - test/better_html/tokenizer/html_erb_test.rb
264
+ - test/better_html/parser_test.rb
265
+ - test/better_html/helpers_test.rb
266
+ - test/test_helper.rb
267
+ - test/dummy/app/assets/stylesheets/application.css
268
+ - test/dummy/app/assets/javascripts/application.js
267
269
  - test/dummy/app/controllers/application_controller.rb
268
270
  - test/dummy/app/helpers/application_helper.rb
269
271
  - test/dummy/app/views/layouts/application.html.erb
270
- - test/dummy/app/assets/stylesheets/application.css
271
- - test/dummy/app/assets/javascripts/application.js
272
- - test/dummy/bin/bundle
273
- - test/dummy/bin/rake
274
- - test/dummy/bin/rails
275
- - test/dummy/bin/setup
272
+ - test/dummy/config/secrets.yml
273
+ - test/dummy/config/initializers/cookies_serializer.rb
274
+ - test/dummy/config/initializers/backtrace_silencers.rb
275
+ - test/dummy/config/initializers/mime_types.rb
276
276
  - test/dummy/config/initializers/filter_parameter_logging.rb
277
277
  - test/dummy/config/initializers/wrap_parameters.rb
278
- - test/dummy/config/initializers/backtrace_silencers.rb
279
- - test/dummy/config/initializers/cookies_serializer.rb
278
+ - test/dummy/config/initializers/inflections.rb
280
279
  - test/dummy/config/initializers/session_store.rb
281
280
  - test/dummy/config/initializers/assets.rb
282
- - test/dummy/config/initializers/mime_types.rb
283
- - test/dummy/config/initializers/inflections.rb
284
- - test/dummy/config/secrets.yml
285
- - test/dummy/config/application.rb
281
+ - test/dummy/config/routes.rb
286
282
  - test/dummy/config/database.yml
287
283
  - test/dummy/config/environment.rb
288
- - test/dummy/config/boot.rb
289
284
  - test/dummy/config/locales/en.yml
290
285
  - test/dummy/config/environments/development.rb
291
286
  - test/dummy/config/environments/test.rb
292
287
  - test/dummy/config/environments/production.rb
293
- - test/dummy/config/routes.rb
294
- - test/dummy/public/500.html
295
- - test/dummy/public/favicon.ico
296
- - test/dummy/public/422.html
297
- - test/dummy/public/404.html
298
- - test/dummy/Rakefile
288
+ - test/dummy/config/boot.rb
289
+ - test/dummy/config/application.rb
299
290
  - test/dummy/config.ru
291
+ - test/dummy/bin/rails
292
+ - test/dummy/bin/rake
293
+ - test/dummy/bin/setup
294
+ - test/dummy/bin/bundle
295
+ - test/dummy/Rakefile
296
+ - test/dummy/public/404.html
297
+ - test/dummy/public/422.html
298
+ - test/dummy/public/favicon.ico
299
+ - test/dummy/public/500.html
300
300
  - test/dummy/README.rdoc