Sha256: e7258d58ed7fe48684cb1b302d095b51a256427794defcd47771c4500dae9e64

Contents?: true

Size: 280 Bytes

Versions: 29

Compression:

Stored size: 280 Bytes

Contents

# clear out rails 2.3's gems tasks if bundler is used for the current project
def bundler_used?
  File.exist? "Gemfile"
end

def is_rails_2?
  Rake::Task.tasks.include?(:gems)
end

if bundler_used? and is_rails_2?
  Rake::Task[:gems].clear
  Rake::Task[:"gems:install"].clear
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
bard-rake-0.9.4 lib/bard/rake/bundler.rb
bard-rake-0.9.3 lib/bard/rake/bundler.rb
bard-rake-0.9.2 lib/bard/rake/bundler.rb
bard-rake-0.9.1 lib/bard/rake/bundler.rb
bard-rake-0.9.0 lib/bard/rake/bundler.rb
bard-rake-0.8.0 lib/bard/rake/bundler.rb
bard-rake-0.7.1 lib/bard/rake/bundler.rb
bard-rake-0.7.0 lib/bard/rake/bundler.rb
bard-rake-0.6.3 lib/bard/rake/bundler.rb
bard-rake-0.6.2 lib/bard/rake/bundler.rb
bard-rake-0.6.1 lib/bard/rake/bundler.rb
bard-rake-0.6.0 lib/bard/rake/bundler.rb
bard-rake-0.5.0 lib/bard/rake/bundler.rb
bard-rake-0.4.3 lib/bard/rake/bundler.rb
bard-rake-0.4.2 lib/bard/rake/bundler.rb
bard-rake-0.4.1 lib/bard/rake/bundler.rb
bard-rake-0.4.0 lib/bard/rake/bundler.rb
bard-rake-0.3.4 lib/bard/rake/bundler.rb
bard-rake-0.3.3 lib/bard/rake/bundler.rb
bard-rake-0.3.2 lib/bard/rake/bundler.rb