Skip to content

Commit

Permalink
Use import in Rakefile to defer loading task files until after Rakefi…
Browse files Browse the repository at this point in the history
…le is evaluated
  • Loading branch information
dkubb committed Mar 6, 2010
1 parent e790567 commit 37b1ebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ begin

require File.expand_path('../lib/dm-reflection/version', __FILE__)

FileList['tasks/**/*.rake'].each { |task| load task }

Jeweler::Tasks.new do |gem|

gem.version = DataMapper::Reflection::VERSION
Expand All @@ -30,6 +28,8 @@ begin

Jeweler::GemcutterTasks.new

FileList['tasks/**/*.rake'].each { |task| import task }

rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
Expand Down

0 comments on commit 37b1ebe

Please sign in to comment.