Skip to content

Commit

Permalink
Simplify top-level generate_gemfile_per_gem task
Browse files Browse the repository at this point in the history
  • Loading branch information
dekellum committed Mar 2, 2012
1 parent 919122a commit 0ff4061
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,28 +91,19 @@ end

desc "Generate per-gem Gemfiles and jbundle install each"
task :generate_gemfile_per_gem do

gems.each do |gname|
Dir.chdir( gname ) do

puts "=== Gemfile: #{gname} ==="

File.open( 'Gemfile', 'w' ) do |fout|
fout.write <<RUBY
# -*- ruby -*-
source :rubygems
gemspec :path => '.', :name => '#{gname}'
RJack::TarPit.last_spec.dependencies.each do |d|
gem( d.name, :path => "../\#\{d.name\}" ) if d.name =~ /^iudex/
end
RUBY
end

system "jbundle install --path /home/david/.gem --local" or
raise "Failed with #{$?}"

sh "jbundle install --path #{ENV['HOME']}/.gem --local"
end
end

end

0 comments on commit 0ff4061

Please sign in to comment.