Rakefile in person-name-0.2.10 vs Rakefile in person-name-0.2.11
- old
+ new
@@ -1,51 +1,2 @@
-begin
- # Rspec 1.3.0
- require 'spec/rake/spectask'
-
- desc 'Default: run specs'
- task :default => :spec
- Spec::Rake::SpecTask.new do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
- end
-
- Spec::Rake::SpecTask.new('rcov') do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec']
- end
-
-rescue LoadError
- # Rspec 2.0
- require 'rspec/core/rake_task'
-
- desc 'Default: run specs'
- task :default => :spec
- Rspec::Core::RakeTask.new do |t|
- t.pattern = "spec/**/*_spec.rb"
- end
-
- Rspec::Core::RakeTask.new('rcov') do |t|
- t.pattern = "spec/**/*_spec.rb"
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec']
- end
-
-rescue LoadError
- puts "Rspec not available. Install it with: gem install rspec"
-end
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = "person-name"
- gemspec.summary = "Easy editing of person names."
- gemspec.description = "Manages all person name fields (prefix, first name, middle name, intercalation, last name, suffix)"
- gemspec.email = "matthijs.groen@gmail.com"
- gemspec.homepage = "http://github.com/matthijsgroen/person-name"
- gemspec.authors = ["Matthijs Groen"]
- gemspec.files = FileList["[A-Z]*", "{generators,lib,spec,rails}/**/*"] - FileList["**/*.log"]
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
-end
+require 'bundler'
+Bundler::GemHelper.install_tasks