Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update Rakefile for use with Bundler

  • Loading branch information...
commit 8fe173af043d56ae3749373c5f7383232a900d0b 1 parent 836e9fd
@jherdman jherdman authored
Showing with 9 additions and 26 deletions.
  1. +9 −26 Rakefile
View
35 Rakefile
@@ -1,28 +1,11 @@
-require 'rake'
-require 'rake/rdoctask'
-require 'rake/gempackagetask'
-require 'spec/rake/spectask'
-
-spec = eval(File.read(File.join(File.dirname(__FILE__), "em-jack.gemspec")))
-
-task :default => :gem
-
-Spec::Rake::SpecTask.new do |t|
- t.libs << 'lib'
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ["-colour"]
-end
-
-desc 'Generate RDoc documentation for EMJack'
-Rake::RDocTask.new(:rdoc) do |rdoc|
- rdoc.rdoc_files.include('README.rdoc', 'COPYING', 'lib/**/*.rb')
- rdoc.main = 'README.rdoc'
- rdoc.title = 'EM Jack Documentation'
-
- rdoc.rdoc_dir = 'doc'
- rdoc.options << '--line-numbers'
-end
+require 'bundler'
+require 'bundler/setup'
+require 'bundler/gem_helper'
+
+Bundler::GemHelper.install_tasks
+
+require 'rspec/core/rake_task'
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.need_tar = true
+RSpec::Core::RakeTask.new('spec') do |t|
+ t.verbose = false
end
Please sign in to comment.
Something went wrong with that request. Please try again.