apache-vhosts-parser 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/apache-vhosts-parser.rb +3 -1
  2. metadata +1 -1
@@ -50,7 +50,9 @@ module ApacheVhostsParser
50
50
  }
51
51
 
52
52
  str.split(/\n+/).map(&:strip).each do |line|
53
- if m = line.match(/<\s*(\w+)(.*?)>$/)
53
+ if line = /^$/
54
+ #ignore the line
55
+ elsif m = line.match(/<\s*(\w+)(.*?)>$/)
54
56
  opener, rest = m[1], m[2].to_s.strip.split(/\s+/)
55
57
  new_tag = {
56
58
  name: opener.downcase,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apache-vhosts-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: