Sha256: f9fdd9cbcb6f4eeb39f4529a4ac7a58d5dc52d6e15cda4c128079dc4ce4b9b71
Contents?: true
Size: 767 Bytes
Versions: 16
Compression:
Stored size: 767 Bytes
Contents
module TestHelper module Ruby def call super File.open(path, 'w') do |f| content = <<-EOT require 'rubygems' require 'bundler' Bundler.setup Bundler.require(:default) EOT requires = project.requires_with_rr(@requires) require_lines = project.require_lines(requires). map { |str| "#{str}\n" }. join content << "\n" + require_lines + "\n" content << @prelude if RR.debug? puts "~ Content of #{File.basename(path)} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" puts content puts "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" end f.write(content) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems