Rakefile in vidibus-user-0.0.10 vs Rakefile in vidibus-user-1.0.0

- old
+ new

@@ -1,35 +1,17 @@ -require "rubygems" -require "rake" -require "rake/rdoctask" -require "rspec" -require "rspec/core/rake_task" +$:.unshift File.expand_path('../lib/', __FILE__) -begin - require "jeweler" - Jeweler::Tasks.new do |gem| - gem.name = "vidibus-user" - gem.summary = %Q{Single sign-on for Vidibus applications.} - gem.description = %Q{Provides single sign-on and a local user model.} - gem.email = "andre@vidibus.com" - gem.homepage = "http://github.com/vidibus/vidibus-user" - gem.authors = ["Andre Pankratz"] - end - Jeweler::GemcutterTasks.new -rescue LoadError - puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" -end +require 'bundler' +require 'rdoc/task' +require 'rspec' +require 'rspec/core/rake_task' +require 'vidibus/user/version' -Rspec::Core::RakeTask.new(:rcov) do |t| - t.pattern = "spec/**/*_spec.rb" - t.rcov = true - t.rcov_opts = ["--exclude", "^spec,/gems/"] -end +Bundler::GemHelper.install_tasks Rake::RDocTask.new do |rdoc| - version = File.exist?("VERSION") ? File.read("VERSION") : "" - rdoc.rdoc_dir = "rdoc" - rdoc.title = "vidibus-user #{version}" - rdoc.rdoc_files.include("README*") - rdoc.rdoc_files.include("lib/**/*.rb") - rdoc.options << "--charset=utf-8" + rdoc.rdoc_dir = 'rdoc' + rdoc.title = "vidibus-user #{Vidibus::User::VERSION}" + rdoc.rdoc_files.include('README*') + rdoc.rdoc_files.include('lib/**/*.rb') + rdoc.options << '--charset=utf-8' end