ditto_code 0.3.4 → 0.3.5

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/dittocode/parse.rb +16 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75baa15d4ccedb928d2183630cdc51f6909ad278
4
- data.tar.gz: 248db2995043667a40c09aadfc624313b1e76d74
3
+ metadata.gz: ad76c85d145530526207a77964beaec13b3aff34
4
+ data.tar.gz: 4d4a16e625f51346b9934cfe253e0f048407068a
5
5
  SHA512:
6
- metadata.gz: ce57a40b866331172e339d87848d45b22ae6e7394bfdb1b88eaa9481a8927a81e3da658de10cbde505ae892223343d509e23e3002d822174b12843cbe833e1e5
7
- data.tar.gz: 7ef82c14f3ae1a0633d2d71caeb8528e8d485986386eec609be4e06c11cdb0ba746e0b2239dca788fa6d4b9882e6573cd2ebac927bdf0d19a4abfce095acd9f7
6
+ metadata.gz: 021a80e93136749a688cc894450ae11c8df46bcf9185b3e5e9ca3db8c98facafa69982292d8a835506042fd8a26a3f82d3c70521f9dac764b5d5e83a0fee7522
7
+ data.tar.gz: 1c47116d680a5902b53b6cb100ecf6d3589550683db4e3b85e93710bb498b4c171cf24588468b76c71ff81ef283894f6c42a0d705eeb9a3ef78cd78068e97615
@@ -100,7 +100,7 @@ module DittoCode
100
100
 
101
101
  end
102
102
 
103
- # Commented
103
+ # Commented
104
104
  elsif !@isView && commented
105
105
 
106
106
  if !actions[:atack] || DittoCode::Environments.isIncluded?(actions[:env])
@@ -219,8 +219,14 @@ module DittoCode
219
219
 
220
220
  # Coincide with an end!
221
221
  if @isView && /[\s]*<%[\s]*(end)[\s]*%>/.match(line)
222
+ if @verbose
223
+ puts "End | Line: #{line}"
224
+ end
222
225
  true
223
- elsif /^[\s]*end[\s]*$/.match(line)
226
+ elsif /^[\s]*end[\.\w]*[\s]*$/.match(line)
227
+ if @verbose
228
+ puts "End | Line: #{line}"
229
+ end
224
230
  true
225
231
  else
226
232
  false
@@ -248,6 +254,14 @@ module DittoCode
248
254
  finals = line.scan(/[\s\t]*(end)[\s]*$/).size
249
255
  end
250
256
 
257
+ if @verbose
258
+
259
+ if initializers + finals != 0
260
+ puts "Initializers: #{initializers} | Finals: #{finals} | Line: #{line}"
261
+ end
262
+
263
+ end
264
+
251
265
  # Return the difference
252
266
  initializers - finals
253
267
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ditto_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel M Miguel