Skip to content

Commit

Permalink
Check for generated jasmine sources before jeweler runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Williams authored and Christian Williams committed Nov 9, 2010
1 parent 61dc808 commit b6e0c27
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Rakefile
Expand Up @@ -73,6 +73,14 @@ namespace :jeweler do
Jeweler::GemcutterTasks.new
end

task :verify_build do
[
'jasmine/lib/jasmine.css',
'jasmine/lib/jasmine.js',
'jasmine/lib/jasmine-html.js',
].each {|f| raise "Missing file #{f}" unless File.exist?(f)}
end

task :setup_filelist do
Rake.application.jeweler_tasks.gemspec.files = FileList.new(
'generators/**/**',
Expand All @@ -88,4 +96,7 @@ namespace :jeweler do
end
end

Rake.application["jeweler:gemspec"].prerequisites.unshift("jeweler:setup_filelist").unshift("jasmine:copy_examples_to_gem")
Rake.application["jeweler:gemspec"].prerequisites.
unshift("jeweler:verify_build").
unshift("jeweler:setup_filelist").
unshift("jasmine:copy_examples_to_gem")

0 comments on commit b6e0c27

Please sign in to comment.