Permalink
Browse files

added rcov for 1.8.7 and simplecov for 1.9.2 to Gemfile

  • Loading branch information...
1 parent feac327 commit a83fc1e5c0d4025795e2ef1c0db365db3e4b11fd @cored cored committed Apr 4, 2012
Showing with 15 additions and 12 deletions.
  1. +2 −0 Gemfile
  2. +7 −0 Gemfile.lock
  3. +6 −12 Rakefile
View
@@ -7,4 +7,6 @@ gem 'hashie', "~> 1.2"
group :test, :development do
gem 'rspec', '~> 2.0'
gem 'jeweler', "~> 1.8"
+ gem "simplecov", "~> 0.5", :platform => :ruby_19
+ gem "rcov", "~> 1.0", :platform => :ruby_18
end
View
@@ -23,6 +23,7 @@ GEM
json (1.6.5)
multi_json (1.1.0)
rake (0.9.2.2)
+ rcov (1.0.0)
rdoc (3.12)
json (~> 1.4)
rspec (2.9.0)
@@ -33,6 +34,10 @@ GEM
rspec-expectations (2.9.1)
diff-lcs (~> 1.1.3)
rspec-mocks (2.9.0)
+ simplecov (0.6.1)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.5.3)
+ simplecov-html (0.5.3)
PLATFORMS
ruby
@@ -42,4 +47,6 @@ DEPENDENCIES
activesupport (~> 3.0)
hashie (~> 1.2)
jeweler (~> 1.8)
+ rcov (~> 1.0)
rspec (~> 2.0)
+ simplecov (~> 0.5)
View
@@ -16,31 +16,25 @@ rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
-require 'spec/rake/spectask'
-Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.spec_files = FileList['spec/**/*_spec.rb']
+require 'rspec/core'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = FileList['spec/**/*_spec.rb']
end
-Spec::Rake::SpecTask.new(:rcov) do |spec|
- spec.libs << 'lib' << 'spec'
+RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
- spec.rcov_opts = lambda do
- IO.readlines("spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
- end
end
-#task :spec => :check_dependencies
-
task :default => :spec
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "ticketmaster #{version}"
+ rdoc.title = "ticketmaster-kanbanpad#{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end

0 comments on commit a83fc1e

Please sign in to comment.