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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/erb/formatter.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 923478a0d01b0942755e41fca1f84a656020383d2de0249210462274b8427a1c
4
- data.tar.gz: 8b3304851134b98f48cbf7e716274770f3fb71e3e3121a1a706928fe063eb9c3
3
+ metadata.gz: 5673c7c32218808dc8ab3b9a2e7df06036b99135fe3f0735c82d498feb83e0e4
4
+ data.tar.gz: e4e2a94113a06512eb4ddb8bcdc8408c5488d53b77de5d4813e21d97f5dd7c75
5
5
  SHA512:
6
- metadata.gz: 384b0ff6f0bc9fb286191f54721e2b21c7c6dc30c27fc6d80a2ec6f85e600877aa53b83f27bd0b447bb978f74e1410a22971e66a91b921b14223454fbd745896
7
- data.tar.gz: e2506d5249e000ae0c6318b9baa4f6236e3d35a9a8bab069d43a812a710545f1b2c018f2871b72537c6294abea1f5670832404c9e71b4809b4af7256601e06e8
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.0"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erb-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elia Schito