diff --git a/lib/emeril/metadata_chopper.rb b/lib/emeril/metadata_chopper.rb index 9ba2ac2..102b327 100644 --- a/lib/emeril/metadata_chopper.rb +++ b/lib/emeril/metadata_chopper.rb @@ -22,7 +22,7 @@ class MetadataChopper < Hash # @param metadata_file [String] path to a metadata.rb file # def initialize(metadata_file) - eval(IO.read(metadata_file), nil, metadata_file) + instance_eval(IO.read(metadata_file), metadata_file) %w{name version}.map(&:to_sym).each do |attr| next unless self[attr].nil?