Permalink
Browse files

using new jeweler structure for rakefile and Gemfile - updated depend…

…encies incl sugar-high and bumped version
  • Loading branch information...
1 parent fd1ccb2 commit ab5d4eeac683cdfde5eb76cd0b29514e0039c898 @kristianmandrup committed Aug 17, 2011
Showing with 68 additions and 54 deletions.
  1. +23 −18 Gemfile
  2. +44 −35 Rakefile
  3. +1 −1 VERSION
View
41 Gemfile
@@ -1,18 +1,23 @@
-# source :rubygems
-#
-# gem "activerecord", ">= 3.0.1"
-# gem "activesupport", ">= 3.0.1"
-# gem "arel", ">= 2.0"
-# gem "meta_where", ">= 1.0.1"
-# gem "sugar-high", "~> 0.3.5"
-# gem "require_all", '~> 1.2.0'
-# gem "roles_generic", '>= 0.3.7'
-#
-# gem 'rails_artifactor', '>= 0.3.3'
-# gem 'logging_assist', '>= 0.2.0'
-#
-# group :test do
-# gem "rspec", ">= 2.0.1"
-# gem 'database_cleaner'
-# gem "generator_spec", '>= 0.7.2'
-# end
+source :rubygems
+
+gem "activerecord", ">= 3.0.1"
+gem "activesupport", ">= 3.0.1"
+gem "arel", ">= 2.0"
+gem "meta_where", ">= 1.0.1"
+gem "sugar-high", ">= 0.5.0"
+gem "require_all", '~> 1.2.0'
+gem "roles_generic", '>= 0.3.9'
+gem 'rails_artifactor', '>= 0.4.0'
+
+group :development, :test do
+ gem "rspec", '>= 2.5.0'
+ gem 'generator-spec', '>= 0.7.5'
+ gem 'database_cleaner'
+end
+
+group :development do
+ gem "jeweler", ">= 1.6.4"
+ gem "bundler", "~> 1.0.10"
+ gem "rdoc"
+end
+
View
79 Rakefile
@@ -1,38 +1,47 @@
-require 'psych'
+# encoding: utf-8
+require 'rubygems'
+require 'bundler'
begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "roles_active_record"
- gem.summary = %Q{Implementation of Roles generic API for Active Record}
- gem.description = %Q{Makes it easy to set a role strategy on your User model in Active Record}
- gem.email = "kmandrup@gmail.com"
- gem.homepage = "http://github.com/kristianmandrup/roles_active_record"
- gem.authors = ["Kristian Mandrup"]
- gem.rubygems_version = '1.6.0'
-
- # See Gemfile for regular dependencies
- # COMMENTED OUT TO AVOID DUPLICATION WITH GEMFILE:
- # https://github.com/technicalpickles/jeweler/issues#issue/152
-
- gem.add_development_dependency 'database_cleaner', '>= 0.6'
- gem.add_development_dependency "rspec", '>= 2.4.1'
- gem.add_development_dependency "generator-spec", '>= 0.7.3'
- gem.add_development_dependency 'migration_assist', '~> 0.2.0'
-
- gem.add_dependency 'roles_generic', '>= 0.3.8'
- gem.add_dependency 'require_all', '~> 1.2.0'
- gem.add_dependency 'sugar-high', '~> 0.4.1'
-
- # gem.add_dependency 'arel', '~> 2.0.7'
- # gem.add_dependency 'active_record', '~> 3.0.7'
- # gem.add_dependency 'active_support','~> 3.0.7'
-
- gem.add_dependency 'meta_where', '~> 1.0.4'
-
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+ Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
end
+require 'rake'
+
+require 'jeweler'
+Jeweler::Tasks.new do |gem|
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
+ gem.name = "roles_active_record"
+ gem.summary = %Q{Implementation of Roles generic API for Active Record}
+ gem.description = %Q{Makes it easy to set a role strategy on your User model in Active Record}
+ gem.email = "kmandrup@gmail.com"
+ gem.homepage = "http://github.com/kristianmandrup/roles_active_record"
+ gem.email = "kmandrup@gmail.com"
+ gem.authors = ["Kristian Mandrup"]
+ # dependencies defined in Gemfile
+end
+Jeweler::RubygemsDotOrgTasks.new
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+end
+
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "cantango #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+
View
2 VERSION
@@ -1 +1 @@
-0.4.9
+0.5.0

0 comments on commit ab5d4ee

Please sign in to comment.