better_html 2.0.0 → 2.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
  SHA256:
3
- metadata.gz: d6b9f2275b7aaaf6375f643a430e8bf16612078e9c28f24d3148d1606bb599a0
4
- data.tar.gz: 6a239818ba87d563497936f0c0dd5aa5fbe9ede118ac7f2171211f1a257a87cb
3
+ metadata.gz: ac75570144a95e0a5a28f54dc99f265192ec4727d96b960ada7a97fd47851194
4
+ data.tar.gz: a29a57f1969999dd394336dd785facc3ca5432e326397e0c4dcfb745f7df79b9
5
5
  SHA512:
6
- metadata.gz: 223d459a69405ae02d1de61a403fa92d19ed5dd468b509a68f1687c6aa7f8fc47165231965a2ce2c326f20addab0de356cc63c8d49d678aab9d3abb3c6888c97
7
- data.tar.gz: 2ede27f18ee91fd2381b8be5b90253895a797164ebc6304e2031cdd59769111a1d5f53efb000d3a09cee82bb6bb2917d63525910d70be9a4fcf838f6b7fa4539
6
+ metadata.gz: 0341b84eb8f09fe099f3aefe91edad0e99064113070336d76ebc6d4ffbd341189ee6c8cb41b2011c89ca1e42c63227d2fc41db736e3c3f3ac0474db071c02cf5
7
+ data.tar.gz: 725880baa643e0589c6a781dcb28f8437e3ccab29b58d7a460ea1ec4e4bb3320dc6d9ef1b1a770a40909a8c3adaacda623bdb163ef4fa96819a7ec3f40ebca0f
@@ -6,19 +6,6 @@ require "better_html_ext"
6
6
  require "better_html/better_erb/erubi_implementation"
7
7
  require "better_html/better_erb/validated_output_buffer"
8
8
 
9
- module BetterHtml
10
- class ParserError < RuntimeError
11
- attr_reader :position, :line, :column
12
-
13
- def initialize(message, position, line, column)
14
- super(message)
15
- @position = position
16
- @line = line
17
- @column = column
18
- end
19
- end
20
- end
21
-
22
9
  module BetterHtml
23
10
  class BetterErb
24
11
  cattr_accessor :content_types
@@ -12,4 +12,15 @@ module BetterHtml
12
12
  class Errors < Array
13
13
  alias_method :add, :<<
14
14
  end
15
+
16
+ class ParserError < RuntimeError
17
+ attr_reader :position, :line, :column
18
+
19
+ def initialize(message, position, line, column)
20
+ super(message)
21
+ @position = position
22
+ @line = line
23
+ @column = column
24
+ end
25
+ end
15
26
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "better_html_ext"
3
4
  require_relative "tokenizer/javascript_erb"
4
5
  require_relative "tokenizer/html_erb"
5
6
  require_relative "tokenizer/html_lodash"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BetterHtml
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_html
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francois Chagnon
@@ -168,7 +168,7 @@ licenses:
168
168
  metadata:
169
169
  bug_tracker_uri: https://github.com/Shopify/better-html/issues
170
170
  changelog_uri: https://github.com/Shopify/better-html/releases
171
- source_code_uri: https://github.com/Shopify/better-html/tree/v2.0.0
171
+ source_code_uri: https://github.com/Shopify/better-html/tree/v2.0.1
172
172
  allowed_push_host: https://rubygems.org
173
173
  post_install_message:
174
174
  rdoc_options: []