Rakefile in be9-acl9-0.9.3 vs Rakefile in be9-acl9-0.9.4

- old
+ new

@@ -1,37 +1,29 @@ require 'rubygems' -require File.join(File.dirname(__FILE__), 'lib', 'acl9', 'version') require 'rake' require 'spec/rake/spectask' desc 'Default: run specs.' task :default => :spec begin - require 'echoe' - - Echoe.new 'acl9' do |p| - p.version = Acl9::Version::STRING - p.author = "Oleg Dashevskii" - p.email = 'olegdashevskii@gmail.com' - p.project = 'acl9' - p.summary = "Yet another role-based authorization system for Rails with a nice DSL for access control lists." - p.url = "http://github.com/be9/acl9" - p.ignore_pattern = ["spec/db/*.sqlite3", "spec/debug.log"] - p.development_dependencies = ["rspec >=1.1.12", "rspec-rails >=1.1.12"] + require 'jeweler' + Jeweler::Tasks.new do |s| + s.name = "acl9" + s.summary = "Yet another role-based authorization system for Rails with a nice DSL for access control lists." + s.email = "olegdashevskii@gmail.com" + s.homepage = "http://github.com/be9/acl9" + s.description = "Yet another role-based authorization system for Rails with a nice DSL for access control lists." + s.authors = ["oleg dashevskii"] + s.files = FileList["[A-Z]*", "{lib,spec}/**/*.rb"] + s.add_development_dependency "rspec", ">= 1.1.12" + s.add_development_dependency "rspec-rails", ">= 1.1.12" end -rescue LoadError => boom - puts "You are missing a dependency required for meta-operations on this gem." - puts "#{boom.to_s.capitalize}." +rescue LoadError + puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end desc 'Run the specs' Spec::Rake::SpecTask.new(:spec) do |t| t.spec_opts = ['--colour --format progress --loadby mtime --reverse'] t.spec_files = FileList['spec/**/*_spec.rb'] -end - -desc 'Regenerate the .gemspec' -task :gemspec => :package do - gemspec = Dir["pkg/**/*.gemspec"].first - FileUtils.cp gemspec, "." end