Sha256: 79be9d34e54919fd08aeec6e2e5e0abaf718329dd4e5ecf9f102653777385454
Contents?: true
Size: 404 Bytes
Versions: 16
Compression:
Stored size: 404 Bytes
Contents
require_paths = [] dev_path = "lib/souls/api/generate/*" souls_path = Dir["#{Gem.dir}/gems/souls-*"].last gem_path = "#{souls_path}/lib/souls/api/generate/*" file_paths = File.exist?("souls.gemspec") ? dev_path : gem_path Dir[file_paths].map do |n| next if n.include?("index.rb") require_paths << n.split("/").last.gsub(".rb", "") end require_paths.each do |path| require_relative "./#{path}" end
Version data entries
16 entries across 16 versions & 1 rubygems