Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (41 sloc) 1.7 KB
require 'rubygems'
require 'bundler'
Bundler.setup(:default, :development)
Bundler.require(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
require 'rake'
require 'jeweler' do |gem| = "acts_as_account"
gem.summary = %Q{acts_as_account implements double entry accounting for Rails models}
gem.description = %Q{acts_as_account implements double entry accounting for Rails models. Your models get accounts and you can do consistent transactions between them. Since the documentation is sparse, see the transfer.feature for usage examples.} = ""
gem.homepage = ""
gem.authors = ["Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel"]
gem.add_dependency 'activerecord'
gem.add_dependency 'actionpack'
gem.add_dependency 'database_cleaner'
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
namespace :features do
desc "create test database out of db/schema.rb"
task :create_database do
require 'rubygems'
require 'active_record'
access_data = YAML.load_file(File.dirname(__FILE__) + '/db/database.yml')['acts_as_account']
conn = ActiveRecord::Base.establish_connection(Hash[ { |k, v| k != 'database'}]).connection
conn.execute('DROP DATABASE IF EXISTS acts_as_account')
conn.execute('CREATE DATABASE acts_as_account')
conn.execute('USE acts_as_account')
load(File.dirname(__FILE__) + '/db/schema.rb')
Jump to Line
Something went wrong with that request. Please try again.