Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made some development depencies optional.

  • Loading branch information...
commit daf9bc857079910b98c83567f05b7fe34c020fc1 1 parent 464b87d
@norman norman authored
Showing with 14 additions and 11 deletions.
  1. +14 −8 Rakefile
  2. +0 −3  friendly_id.gemspec
View
22 Rakefile
@@ -3,8 +3,6 @@ require 'rake/testtask'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/clean'
-require 'rcov/rcovtask'
-require 'yard'
CLEAN << "pkg" << "docs" << "coverage"
@@ -18,12 +16,20 @@ Rake::RDocTask.new do |r|
r.rdoc_files.include "README.rdoc", "History.txt", "lib/**/*.rb"
end
-YARD::Rake::YardocTask.new do |t|
- t.options = ["--output-dir=docs"]
+begin
+ require "yard"
+ YARD::Rake::YardocTask.new do |t|
+ t.options = ["--output-dir=docs"]
+ end
+rescue LoadError
end
-Rcov::RcovTask.new do |r|
- r.test_files = FileList['test/*_test.rb']
- r.verbose = true
- r.rcov_opts << "--exclude gems/*"
+begin
+ require 'rcov/rcovtask'
+ Rcov::RcovTask.new do |r|
+ r.test_files = FileList['test/*_test.rb']
+ r.verbose = true
+ r.rcov_opts << "--exclude gems/*"
+ end
+rescue LoadError
end
View
3  friendly_id.gemspec
@@ -26,9 +26,6 @@ spec = Gem::Specification.new do |s|
s.add_dependency 'activerecord', '>= 2.2.3'
s.add_dependency 'activesupport', '>= 2.2.3'
s.add_development_dependency 'contest'
- s.add_development_dependency 'sqlite3-ruby'
- s.add_development_dependency 'rcov'
- s.add_development_dependency 'yard'
s.post_install_message = <<-EOM
Please sign in to comment.
Something went wrong with that request. Please try again.