Permalink
Browse files

tests now pass on rubinius, but we may want to add some form of rcov …

…back in the future
  • Loading branch information...
1 parent 2880dcd commit 9abfcf976fc2ea964ab3236b24bc50fba1d58432 @joshk joshk committed Apr 14, 2011
Showing with 23 additions and 14 deletions.
  1. +3 −0 .gitignore
  2. +16 −13 Rakefile
  3. +4 −1 multi_json.gemspec
View
@@ -28,4 +28,7 @@ Gemfile.lock
## RCOV
coverage.data
+## RUBINIUS
+.rbc
+
## PROJECT::SPECIFIC
View
@@ -10,19 +10,6 @@ require 'rspec/core/rake_task'
desc "Run all examples"
RSpec::Core::RakeTask.new(:spec)
-task :cleanup_rcov_files do
- rm_rf 'coverage.data'
-end
-
-namespace :spec do
- desc "Run all examples using rcov"
- RSpec::Core::RakeTask.new :rcov => :cleanup_rcov_files do |t|
- t.rcov = true
- t.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,features"]
- t.rcov_opts << %[--text-report --sort coverage --no-html --aggregate coverage.data]
- end
-end
-
task :default => :spec
require 'rake/rdoctask'
@@ -32,3 +19,19 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
+
+task :cleanup_rcov_files do
+ rm_rf 'coverage.data'
+end
+
+begin
+ namespace :spec do
+ desc "Run all examples using rcov"
+ RSpec::Core::RakeTask.new :rcov => :cleanup_rcov_files do |t|
+ t.rcov = true
+ t.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,features"]
+ t.rcov_opts << %[--text-report --sort coverage --no-html --aggregate coverage.data]
+ end
+ end
+rescue LoadError
+end
View
@@ -23,10 +23,13 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.add_development_dependency("rake", "~> 0.8")
- s.add_development_dependency("rcov", "~> 0.9")
s.add_development_dependency("rspec", "~> 2.0")
s.add_development_dependency("json", "~> 1.4")
s.add_development_dependency("json_pure", "~> 1.4")
s.add_development_dependency("yajl-ruby", "~> 0.7")
+
+ unless ENV['RUBY_VERSION'].match(/^rbx-/)
+ s.add_development_dependency("rcov", "~> 0.9")
+ end
end

0 comments on commit 9abfcf9

Please sign in to comment.