Sha256: aabd2a984a51ca76d64665a79867d0d87f58e86642ab9e1a726f2b4af7ad16f1

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "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.email = "thieso@gmail.com"
    gem.homepage = "http://github.com/betterplace/acts_as_account"
    gem.authors = ["Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel"]
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

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[access_data.select { |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')
  end  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_account-1.1.1 Rakefile