erb-formatter 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/erb/formatter.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5673c7c32218808dc8ab3b9a2e7df06036b99135fe3f0735c82d498feb83e0e4
|
4
|
+
data.tar.gz: e4e2a94113a06512eb4ddb8bcdc8408c5488d53b77de5d4813e21d97f5dd7c75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6a3681798995f41e9295db63ec9c0c2fd948d43ccfd4cefd26a83003baeb67fd9c409b7ad8e0904dfe8adc8b1102a18552902e4ed62453c198f6ac4fdbcfa31
|
7
|
+
data.tar.gz: 5d6e3957f8817519b44baeba7e6ccfbbac3e2baef7ae8479cb016020f454e7df08fe5f43bd72cbc97950eac833b604393b9414760b82cf78ec6dfed85fab5723
|
data/lib/erb/formatter.rb
CHANGED
@@ -10,7 +10,7 @@ require 'pp'
|
|
10
10
|
require 'stringio'
|
11
11
|
|
12
12
|
class ERB::Formatter
|
13
|
-
VERSION = "0.2.
|
13
|
+
VERSION = "0.2.1"
|
14
14
|
autoload :IgnoreList, 'erb/formatter/ignore_list'
|
15
15
|
|
16
16
|
class Error < StandardError; end
|
@@ -291,7 +291,7 @@ class ERB::Formatter
|
|
291
291
|
erb_pre_pos = 0
|
292
292
|
until erb_scanner.eos?
|
293
293
|
if erb_scanner.scan_until(erb_tags_regexp)
|
294
|
-
p PRE_MATCH: [erb_pre_pos, '..', erb_scanner.pre_match]
|
294
|
+
p PRE_MATCH: [erb_pre_pos, '..', erb_scanner.pre_match] if @debug
|
295
295
|
erb_pre_match = erb_scanner.pre_match
|
296
296
|
erb_pre_match = erb_pre_match[erb_pre_pos..]
|
297
297
|
erb_pre_pos = erb_scanner.pos
|