Rakefile in ffi-icu-0.0.2 vs Rakefile in ffi-icu-0.0.3

- old
+ new

@@ -1,40 +1,21 @@ require 'rubygems' require 'rake' -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "ffi-icu" - gem.summary = %Q{Simple FFI wrappers for things I need from ICU.} - gem.description = %Q{Provides charset detection, locale sensitive collation and more.} - gem.email = "jari.bakken@gmail.com" - gem.homepage = "http://github.com/jarib/ffi-icu" - gem.authors = ["Jari Bakken"] +require 'bundler' +Bundler::GemHelper.install_tasks - gem.add_dependency "ffi", ">= 0.6.3" - gem.add_development_dependency "rspec", ">= 1.3.0" - # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings - end - - Jeweler::GemcutterTasks.new -rescue LoadError - puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" +require 'rspec/core/rake_task' +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = 'spec/**/*_spec.rb' end -require 'spec/rake/spectask' -Spec::Rake::SpecTask.new(:spec) do |spec| - spec.libs << 'lib' << 'spec' - spec.spec_files = 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 end -task :spec => :check_dependencies +task :spec task :default => :spec begin require 'yard'