lib/usps_flags.rb in usps_flags-0.5.3 vs lib/usps_flags.rb in usps_flags-0.5.4
- old
+ new
@@ -8,10 +8,10 @@
require 'fileutils'
require 'zip'
require 'mini_magick'
require 'yaml'
- MODULES ||= ::YAML.safe_load(File.read('lib/modules.yml')).freeze
+ MODULES ||= ::YAML.safe_load(File.read("#{__dir__}/modules.yml")).freeze
MODULES.each do |parent, bases|
bases.each do |base|
res = require("#{parent}/#{base}")
puts "#{parent}/#{base}: #{res}" if ENV['VERBOSE_REQUIRE'] == 'true'