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.
- checksums.yaml +4 -4
- data/lib/dittocode/parse.rb +16 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad76c85d145530526207a77964beaec13b3aff34
|
4
|
+
data.tar.gz: 4d4a16e625f51346b9934cfe253e0f048407068a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 021a80e93136749a688cc894450ae11c8df46bcf9185b3e5e9ca3db8c98facafa69982292d8a835506042fd8a26a3f82d3c70521f9dac764b5d5e83a0fee7522
|
7
|
+
data.tar.gz: 1c47116d680a5902b53b6cb100ecf6d3589550683db4e3b85e93710bb498b4c171cf24588468b76c71ff81ef283894f6c42a0d705eeb9a3ef78cd78068e97615
|
data/lib/dittocode/parse.rb
CHANGED
@@ -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
|
|