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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43ddb4cd97827b47d98782f74a8787e4ade6359dd7c517ff4c783932e966741b
4
- data.tar.gz: 2008faeca570a7cebd3e911c0c2526e76c6218a7f1a8c12bfdf9f08b3e886561
3
+ metadata.gz: 51d35aa42146e2d865251e44a2469aba31eefcd058b3c4e74014fa770a436258
4
+ data.tar.gz: 94c389acd01473b8197ae1ce71f9903d4e38b11e0473130aba0e0454c5668dfa
5
5
  SHA512:
6
- metadata.gz: dc8f0326c17468d41f7a49f17466b21dfdfd37e6e9b21849cf997f3a888707210e9694cbd4494e6e52c8c27307a1069ecf126bfc4ba72551487e19abacdd3219
7
- data.tar.gz: a302f41c9be53069e9f9bd3603f219c86b049035357eeaad03fced72268c4e177192de8ec015973b2dce7d14487ed46e38ff33e264510f05dc501ab2f9c9df7d
6
+ metadata.gz: e9f0df1791fecc145fa4471676035d71ad1ed02bf343bfe370024431d722f0530f1db33a56eb4d37e7a21137f171214fead831009a3b8b2f953293b62cd5ae90
7
+ data.tar.gz: 265bb7d0bd26d8debc11839946dada99c2064129238bf782db79e136867a0c099ddffba02cd40919cc07c06168bd089eabd5236ceb70f596cf6119d94d6dff5f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruval (0.1.5)
4
+ ruval (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 if(comment?(l) || l.strip.empty? || !scope.empty?)
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
@@ -1,3 +1,3 @@
1
1
  module Ruval
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruval
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - sergio