Rakefile in digest-crc-0.6.1 vs Rakefile in digest-crc-0.6.2

- old
+ new

@@ -21,22 +21,35 @@ CLEAN.include('ext/digest/crc*/extconf.h') CLEAN.include('ext/digest/crc*/Makefile') CLEAN.include('ext/digest/crc*/*.o') CLEAN.include('ext/digest/crc*/*.so') +file 'spec/integration/docker/digest-crc.gem' do |t| + sh "gem build -o #{t.name} digest-crc.gemspec" +end + require 'rspec/core/rake_task' namespace :spec do - RSpec::Core::RakeTask.new(:pure) + RSpec::Core::RakeTask.new(:pure) do |t| + t.exclude_pattern = 'spec/integration/*_spec.rb' + end task :pure => :clean if RUBY_ENGINE == 'ruby' - RSpec::Core::RakeTask.new(:c_exts) + RSpec::Core::RakeTask.new(:c_exts) do |t| + t.exclude_pattern = 'spec/integration/*_spec.rb' + end task :c_exts => 'build:c_exts' end + + RSpec::Core::RakeTask.new(:integration) do |t| + t.pattern = 'spec/integration/*_spec.rb' + end end task :spec => 'spec:pure' task :spec => 'spec:c_exts' if RUBY_ENGINE == 'ruby' + task :test => :spec task :default => :spec require 'yard' YARD::Rake::YardocTask.new