Permalink
Browse files

Make tests not run on gem install. Unsuck VERSION.

  • Loading branch information...
jbarnette committed Nov 26, 2008
1 parent 7a0a7b8 commit d987b51557c9847196d5a6cbbb39e513e45e1866
Showing with 15 additions and 9 deletions.
  1. +1 −0 MANIFEST
  2. +9 −1 Rakefile
  3. +4 −4 johnson.gemspec
  4. +1 −4 lib/johnson/version.rb
View
@@ -283,6 +283,7 @@ vendor/spidermonkey/js.c
vendor/spidermonkey/js.mak
vendor/spidermonkey/js.mdp
vendor/spidermonkey/js.msg
+vendor/spidermonkey/js.pkg
vendor/spidermonkey/js3240.rc
vendor/spidermonkey/jsOS240.def
vendor/spidermonkey/jsapi.c
View
@@ -37,6 +37,7 @@ end
namespace :gem do
task :spec do
File.open("#{HOE.name}.gemspec", "w") do |f|
+ HOE.spec.version = "#{HOE.version}.#{Time.now.strftime("%Y%m%d%H%M%S")}"
f.puts(HOE.spec.to_ruby)
end
end
@@ -77,7 +78,7 @@ task :install_expat do
end
task :build => :extensions
-task :extension => :build
+task :extension => :build # FIXME: why is this here?
task :extensions => ["lib/johnson/spidermonkey.#{kind}"]
@@ -220,3 +221,10 @@ namespace :test do
system cmdline
end
end
+
+# Evil evil hack. Do not run tests when gem installs
+if ENV['RUBYARCHDIR']
+ prereqs = Rake::Task[:default].prerequisites
+ prereqs.clear
+ prereqs << :build
+end
Oops, something went wrong.

0 comments on commit d987b51

Please sign in to comment.