ruval 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ruval.rb +2 -1
- data/lib/ruval/version.rb +1 -1
- 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: 51d35aa42146e2d865251e44a2469aba31eefcd058b3c4e74014fa770a436258
|
4
|
+
data.tar.gz: 94c389acd01473b8197ae1ce71f9903d4e38b11e0473130aba0e0454c5668dfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9f0df1791fecc145fa4471676035d71ad1ed02bf343bfe370024431d722f0530f1db33a56eb4d37e7a21137f171214fead831009a3b8b2f953293b62cd5ae90
|
7
|
+
data.tar.gz: 265bb7d0bd26d8debc11839946dada99c2064129238bf782db79e136867a0c099ddffba02cd40919cc07c06168bd089eabd5236ceb70f596cf6119d94d6dff5f
|
data/Gemfile.lock
CHANGED
data/lib/ruval.rb
CHANGED
@@ -86,8 +86,9 @@ line_stack = []
|
|
86
86
|
scope = []
|
87
87
|
|
88
88
|
File.read(file).each_line do |l|
|
89
|
+
next if(comment?(l) || l.strip.empty?)
|
89
90
|
update_scope(l, line_stack, scope)
|
90
|
-
next
|
91
|
+
next unless scope.empty?
|
91
92
|
l = if line_stack.empty?
|
92
93
|
opts[:line_spacing] == 0 ? l.remove_comments(longest) : l
|
93
94
|
else
|
data/lib/ruval/version.rb
CHANGED