Sha256: 4b392f59a0fae5d8f9b1f7535bcd66ea544b583427b42ff60798e698ef05e0cf

Contents?: true

Size: 1.69 KB

Versions: 24

Compression:

Stored size: 1.69 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "samuel"
    gem.summary = %Q{An automatic logger for HTTP requests in Ruby}
    gem.description = %Q{An automatic logger for HTTP requests in Ruby. Adds Net::HTTP request logging to your Rails logs, and more.}
    gem.email = "chris@kampers.net"
    gem.homepage = "http://github.com/chrisk/samuel"
    gem.authors = ["Chris Kampmeier"]
    gem.rubyforge_project = "samuel"
    gem.add_development_dependency "thoughtbot-shoulda"
    gem.add_development_dependency "yard"
    gem.add_development_dependency "mocha"
    gem.add_development_dependency "fakeweb"
  end
  Jeweler::GemcutterTasks.new
  Jeweler::RubyforgeTasks.new do |rubyforge|
    rubyforge.doc_task = "yardoc"
  end
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = false
  test.warning = true
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/*_test.rb'
    test.rcov_opts << "--sort coverage"
    test.rcov_opts << "--exclude gems"
    test.verbose = false
    test.warning = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

task :test => :check_dependencies

task :default => :test

begin
  require 'yard'
  YARD::Rake::YardocTask.new
rescue LoadError
  task :yardoc do
    abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
  end
end

Version data entries

24 entries across 24 versions & 8 rubygems

Version Path
chrisk-samuel-0.2.0 Rakefile
chrisk-samuel-0.2.1 Rakefile
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/Rakefile
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/Rakefile
putio-0.0.1.pre2 development/ruby/1.8/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/Rakefile
putio-0.0.1.pre development/ruby/1.8/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/Rakefile
cotweet-fakeweb-1.3.0 test/vendor/samuel-0.2.1/Rakefile
fakeweb-1.3.0 test/vendor/samuel-0.2.1/Rakefile
corntrace-fakeweb-1.2.9 test/vendor/samuel-0.2.1/Rakefile
webmock-1.0.0 spec/vendor/samuel-0.2.1/Rakefile
webmock-0.9.1 spec/vendor/samuel-0.2.1/Rakefile
webmock-0.9.0 spec/vendor/samuel-0.2.1/Rakefile
webmock-0.8.2 spec/vendor/samuel-0.2.1/Rakefile
webmock-0.8.1 spec/vendor/samuel-0.2.1/Rakefile
fakeweb-1.2.8 test/vendor/samuel-0.2.1/Rakefile
webmock-0.8.0 spec/vendor/samuel-0.2.1/Rakefile
webmock-0.7.3 spec/vendor/samuel-0.2.1/Rakefile
webmock-0.7.2 spec/vendor/samuel-0.2.1/Rakefile
webmock-0.7.1 spec/vendor/samuel-0.2.1/Rakefile
webmock-0.7.0 spec/vendor/samuel-0.2.1/Rakefile