Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.1.0
Fetching contributors…

Cannot retrieve contributors at this time

72 lines (57 sloc) 1.925 kb
require 'rubygems'
require "bundler"
Bundler.setup
require 'rake'
desc "Creates a test rails app for the specs to run against"
task :setup do
system("mkdir spec/rails") unless File.exists?("spec/rails")
system "bundle exec rails new spec/rails/rails-3.0.0 -m spec/support/rails_template.rb"
end
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.rcov = true
end
task :default => :spec
namespace :spec do
desc "Run specs for all versions of rails"
task :all do
puts "Runing for Rails 2.3.5"
out = `rake spec`
puts out
puts "Running for Rails 3"
out = `rake spec RAILS=3.0.0`
puts out
end
end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "active_admin #{version}"
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://github.com/gregbell/active_admin"
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
gem.add_dependency 'rails', '>= 3.0.0'
gem.add_dependency 'formtastic', '>= 1.1.0.beta'
gem.add_dependency 'will_paginate', '>= 3.0.pre2'
gem.add_dependency "meta_search", '>= 0.9.2'
gem.add_dependency 'inherited_views'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
Jump to Line
Something went wrong with that request. Please try again.