Sha256: 66bcd493f3b1029a3c48dfbf86772eae4438c4d176141c34e84800a066e287c5

Contents?: true

Size: 606 Bytes

Versions: 11

Compression:

Stored size: 606 Bytes

Contents

#

require 'pathname'

envname_default_task = 'BIORUBY_RAKE_DEFAULT_TASK'

gem_dir = Pathname.new(File.join(File.dirname(__FILE__), '..')).realpath

case t = ENV[envname_default_task]
when 'gem-test'
  # do nothing
else
  $stderr.print "#{$0}: skipped: ENV[#{envname_default_task}]=#{t.inspect}\n"
  exit(0)
end

target = ENV['BUNDLE_GEMFILE']
unless target then
  $stderr.puts("Error: env BUNDLE_GEMFILE is not set.")
end

File.open(target, 'a') do |w|
  $stderr.puts "Add a line to #{target}"
  $stderr.puts "gem 'bio', :path => '#{gem_dir}'"
  w.puts ""
  w.puts "gem 'bio', :path => '#{gem_dir}'"
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bio-2.0.4 gemfiles/modify-Gemfile.rb
bio-2.0.3 gemfiles/modify-Gemfile.rb
bio-2.0.2 gemfiles/modify-Gemfile.rb
bio-2.0.1 gemfiles/modify-Gemfile.rb
bio-2.0.0 gemfiles/modify-Gemfile.rb
bio-1.6.0.pre.20181210 gemfiles/modify-Gemfile.rb
bio-1.5.2 gemfiles/modify-Gemfile.rb
bio-1.5.1 gemfiles/modify-Gemfile.rb
bio-1.5.0 gemfiles/modify-Gemfile.rb
bio-1.4.3.0001 gemfiles/modify-Gemfile.rb
bio-1.4.3 gemfiles/modify-Gemfile.rb