public
Rubygem
Description: Johnson wraps JavaScript in a loving Ruby embrace.
Homepage: http://github.com/jbarnette/johnson/wikis
Clone URL: git://github.com/jbarnette/johnson.git
Search Repo:
Added test:todo for known broken things.
jbarnette (author)
Tue Apr 29 20:26:13 -0700 2008
commit  bdaf1704fb2cd1a4e0e593e5e3447313fb44bdb5
tree    19fab5904752468313153573131de601a8e61ddd
parent  cc8359114f3ce5fe6c08c530b9b7dab2a57fdcf2
...
29
30
31
 
 
 
 
 
 
 
32
33
 
 
34
35
36
...
41
42
43
44
 
45
46
47
48
49
50
 
51
52
53
54
55
56
57
 
 
58
59
60
...
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
...
50
51
52
 
53
54
55
56
57
58
59
60
61
62
63
64
65
66
 
67
68
69
70
71
0
@@ -29,8 +29,17 @@ Hoe.new("johnson", Johnson::VERSION) do |p|
0
   p.spec_extras = { :extensions => ["ext/spidermonkey/extconf.rb"] }
0
 end
0
 
0
+namespace :test do
0
+ Rake::TestTask.new("todo") do |t|
0
+ t.test_files = FileList['todo/**/*_test.rb']
0
+ t.verbose = true
0
+ end
0
+end
0
+
0
 # make sure the C bits are up-to-date when testing
0
 Rake::Task[:test].prerequisites << :extensions
0
+Rake::Task["test:todo"].prerequisites << :extensions
0
+
0
 Rake::Task[:check_manifest].prerequisites << GENERATED_NODE
0
 
0
 task :build => :extensions
0
@@ -41,20 +50,22 @@ Rake::Task[:gem].prerequisites << :extensions
0
 desc "Our johnson requires extensions."
0
 task :extensions => ["lib/johnson/spidermonkey.#{kind}"]
0
 
0
-task :spidermonkey => :submodules do
0
+task :spidermonkey => "vendor/spidermonkey/jsapi.h" do
0
   if ENV['CROSS']
0
     Dir.chdir("vendor/spidermonkey") { sh "make -f Makefile.ref OS_CONFIG=#{ENV['CROSS']}" }
0
   else
0
     Dir.chdir("vendor/spidermonkey") { sh "make -f Makefile.ref" }
0
   end
0
 end
0
+
0
 task :spidermonkey => "vendor/spidermonkey/config/#{ENV['CROSS']}.mk" if ENV['CROSS']
0
 
0
 file "vendor/spidermonkey/config/MINGW32.mk" => "MINGW32.mk" do |t|
0
   cp t.prerequisites.first, t.name
0
 end
0
 
0
-task :submodules do
0
+file "vendor/spidermonkey/jsapi.h" do
0
+ # if this file's missing, pull in the submodule
0
   sh "git submodule init && git submodule update"
0
 end
0
 

Comments

    No one has commented yet.