lib/secretfile.rb in secretfile-1.0.3 vs lib/secretfile.rb in secretfile-1.0.4
- old
+ new
@@ -60,10 +60,9 @@
ENV.fetch('SECRETFILE_PATH', 'Secretfile')
end
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