Rakefile in url_safe_base64-0.2.1 vs Rakefile in url_safe_base64-0.2.2

- old
+ new

@@ -1,36 +1,10 @@ -require 'rake' +require "bundler/gem_tasks" require 'rake/testtask' -require 'rake/rdoctask' - -desc 'Default: run unit tests.' -task :default => :test - -desc 'Test the url_safe_base64 plugin.' -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' - t.pattern = 'test/**/*_test.rb' - t.verbose = true +Rake::TestTask.new(:test) do |test| + test.libs << 'test' + test.warning = true + test.verbose = true + test.pattern = 'test/**/*_test.rb' end -desc 'Generate documentation for the url_safe_base64 plugin.' -Rake::RDocTask.new(:rdoc) do |rdoc| - rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'UrlSafeBase64' - rdoc.options << '--line-numbers' << '--inline-source' - rdoc.rdoc_files.include('README') - rdoc.rdoc_files.include('lib/**/*.rb') -end - -begin - require 'jeweler' - Jeweler::Tasks.new do |gemspec| - gemspec.name = "url_safe_base64" - gemspec.summary = "Converts strings to/from a slightly modified base64 that contains only url-safe characters" - gemspec.description = "Converts strings to/from a slightly modified base64 that contains only url-safe characters" - gemspec.email = "joenoon@gmail.com" - gemspec.homepage = "http://github.com/joenoon/url_safe_base64" - gemspec.authors = ["Joe Noon"] - end -rescue LoadError - puts "Jeweler not available. Install it with: gem install jeweler" -end +task :default => :test