lib/secretfile.rb in secretfile-1.0.2 vs lib/secretfile.rb in secretfile-1.0.3

- old
+ new

@@ -63,9 +63,10 @@ VALID_LINE = /\A\w+\s+[\w\-\/]+:\w+\z/ def read_spec raise "Expected Secretfile" unless File.readable?(spec_path) @spec = IO.readlines(spec_path).inject({}) do |memo, line| line.chomp! + next memo if line =~ /\A\s*\z/ next memo if line =~ /\A\s*#/ line.gsub!(/\$(\{)?([A-Z0-9_]+)(\})?/) do if $1 == '{' and $3 != '}' raise "Unmatched brackets in #{line.inspect}" end