Rakefile in ffi-libc-0.0.3 vs Rakefile in ffi-libc-0.0.4
- old
+ new
@@ -1,38 +1,35 @@
require 'rubygems'
-require 'bundler'
+require 'rake'
begin
- Bundler.setup(:development, :doc)
-rescue Bundler::BundlerError => e
+ gem 'ore-tasks', '~> 0.3.0'
+ require 'ore/tasks'
+
+ Ore::Tasks.new
+rescue LoadError => e
STDERR.puts e.message
- STDERR.puts "Run `bundle install` to install missing gems"
- exit e.status_code
+ STDERR.puts "Run `gem install ore-tasks` to install 'ore/tasks'."
end
-require 'rake'
-require 'rake/clean'
-require 'jeweler'
+begin
+ gem 'rspec', '~> 2.4.0'
+ require 'rspec/core/rake_task'
-Jeweler::Tasks.new do |gem|
- gem.name = 'ffi-libc'
- gem.licenses = ['MIT']
- gem.summary = %Q{Useful FFI bindings for libc}
- gem.email = 'postmodern.mod3@gmail.com'
- gem.homepage = %Q{http://github.com/postmodern/ffi-libc}
- gem.description = %Q{Useful Ruby FFI bindings for libc.}
- gem.authors = ['Postmodern']
- gem.has_rdoc = 'yard'
+ RSpec::Core::RakeTask.new
+rescue LoadError => e
+ task :spec do
+ abort "Please run `gem install rspec` to install RSpec."
+ end
end
+task :default => :spec
-require 'spec/rake/spectask'
+begin
+ gem 'yard', '~> 0.6.0'
+ require 'yard'
-desc "Run all specifications"
-Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs += ['lib', 'spec']
- spec.spec_files = FileList['spec/**/*_spec.rb']
- spec.spec_opts = ['--options', '.specopts']
+ YARD::Rake::YardocTask.new
+rescue LoadError => e
+ task :yard do
+ abort "Please run `gem install yard` to install YARD."
+ end
end
-task :default => :spec
-
-require 'yard'
-YARD::Rake::YardocTask.new