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

Version Path
souls-0.60.3 lib/souls/api/generate/index.rb
souls-0.60.2 lib/souls/api/generate/index.rb
souls-0.60.1 lib/souls/api/generate/index.rb
souls-0.60.0 lib/souls/api/generate/index.rb
souls-0.59.2 lib/souls/api/generate/index.rb
souls-0.59.1 lib/souls/api/generate/index.rb
souls-0.59.0 lib/souls/api/generate/index.rb
souls-0.58.3 lib/souls/api/generate/index.rb
souls-0.58.2 lib/souls/api/generate/index.rb
souls-0.58.1 lib/souls/api/generate/index.rb
souls-0.58.0 lib/souls/api/generate/index.rb
souls-0.57.1 lib/souls/api/generate/index.rb
souls-0.57.0 lib/souls/api/generate/index.rb
souls-0.56.4 lib/souls/api/generate/index.rb
souls-0.56.3 lib/souls/api/generate/index.rb
souls-0.56.2 lib/souls/api/generate/index.rb