Skip to content

Commit

Permalink
Fix gem task to rebuild properly when source files change
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyball committed Mar 19, 2008
1 parent c09047a commit a17d552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -35,7 +35,7 @@ package_dir_path = "#{package_dir}/#{package_name}"

gem_file = "#{package_name}.gem"

task :gem => SOURCE_FILES + [ "#{package_dir}/#{gem_file}" ]
task :gem => "#{package_dir}/#{gem_file}"

desc "Build all packages"
task :package => [ :gem ]
Expand All @@ -57,7 +57,7 @@ file package_dir_path do
end
end

file "#{package_dir}/#{gem_file}" => package_dir do
file "#{package_dir}/#{gem_file}" => SOURCE_FILES + [ package_dir ] do
spec = Gem::Specification.new do |s|
s.name = PACKAGE_NAME
s.version = PACKAGE_VERSION
Expand Down

0 comments on commit a17d552

Please sign in to comment.