Permalink
Browse files

Goodbye Jeweler, hello Bundler and gemspec

  • Loading branch information...
1 parent 446402b commit 5f5e859eb83df3f04fcc7253477dda679979af75 @gregbell gregbell committed Jun 10, 2011
Showing with 32 additions and 420 deletions.
  1. +5 −31 Gemfile
  2. +1 −22 Rakefile
  3. +21 −361 activeadmin.gemspec
  4. +5 −6 spec/spec_helper.rb
View
36 Gemfile
@@ -1,40 +1,15 @@
-# These resources are needed to setup the test env
source 'http://rubygems.org'
-# Set the RAILS env variable to test against diffirent versions of rails
+gemspec
+
+# Set the RAILS env variable to test with a specific version of rails
case ENV["RAILS"]
-when "3.0.0"
- gem 'rails', '= 3.0.0'
-when "3.0.1"
- gem 'rails', '= 3.0.1'
-when "3.0.2"
- gem 'rails', '= 3.0.2'
-when "3.0.3"
- gem 'rails', '= 3.0.3'
-when "3.0.4"
- gem 'rails', '= 3.0.4'
-when "3.0.5"
- gem 'rails', '= 3.0.5'
-when "3.0.6"
- gem 'rails', '= 3.0.6'
-when "3.0.7"
- gem 'rails', '= 3.0.7'
-else
- # Default gems for in the gemspec
- gem 'rails', '>= 3.0.0'
+when /3.0.(\d)*/
+ gem 'rails', "= 3.0.#{$1}"
end
-gem "meta_search", '>= 0.9.2'
-gem 'devise', '>= 1.1.2'
-gem 'formtastic', '>= 1.1.0'
-gem 'inherited_resources'
-gem 'kaminari', '>= 0.12.4'
-gem 'sass', '>= 3.1.0'
-gem 'fastercsv'
-
group :development, :test do
gem 'sqlite3-ruby', :require => 'sqlite3'
- gem 'jeweler', '1.5.2'
gem 'rake', '0.8.7', :require => false
gem 'haml', '~> 3.1.1', :require => false
end
@@ -49,4 +24,3 @@ group :test do
gem 'shoulda', '2.11.2', :require => nil
gem 'launchy'
end
-
View
@@ -1,6 +1,6 @@
-require 'rubygems'
require "bundler"
Bundler.setup
+Bundler::GemHelper.install_tasks
require 'rake'
@@ -98,24 +98,3 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "activeadmin"
- gem.summary = "The administration framework for Ruby on Rails."
- gem.description = "The administration framework for Ruby on Rails."
- gem.email = "gregdbell@gmail.com"
- gem.homepage = "http://activeadmin.info"
- gem.authors = ["Greg Bell"]
-
- gem.files.exclude 'spec/rails'
- gem.test_files.exclude 'spec/rails'
-
- require File.join(File.dirname(File.expand_path(__FILE__)), 'lib', 'active_admin', 'version')
- gem.version = ActiveAdmin::VERSION
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
-end
Oops, something went wrong.

0 comments on commit 5f5e859

Please sign in to comment.