Sha256: 4baa64d0cc26e50a41d678875ea7d86bcdd3f047bc669cdc6eee83f9ab7866f2
Contents?: true
Size: 1.98 KB
Versions: 1
Compression:
Stored size: 1.98 KB
Contents
# vim: set filetype=ruby et sw=2 ts=2: require 'gem_hadar' GemHadar do name 'acts_as_account' author [ "Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel" ] email 'developers@betterplace.org' homepage "http://github.com/betterplace/acts_as_account" summary 'acts_as_account implements double entry accounting for Rails models' description '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.' test_dir 'tests' ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', 'coverage', '.rvmrc', '.AppleDouble', 'tags', '.byebug_history', '.DS_Store' readme 'README.rdoc' title "#{name.camelize} -- More Math in Ruby" licenses << 'Apache-2.0' dependency 'activerecord', '>= 4.1', '<7' dependency 'actionpack' , '>= 4.1', '<7' dependency 'database_cleaner', '~> 1.3' development_dependency 'cucumber', '~> 1.3' development_dependency 'mysql2' development_dependency 'rspec', '~> 3.1' development_dependency 'simplecov' development_dependency 'complex_config' end def connect_database require 'active_record' require 'complex_config' config = ComplexConfig::Provider.config 'features/db/database.yml' connection_config = config.acts_as_account.to_h connection_config.delete(:database) ActiveRecord::Base.establish_connection(connection_config).connection end namespace :features do desc "create test database out of db/schema.rb" task :create_database do conn = connect_database 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__) + '/features/db/schema.rb') end end desc "Run features" task :features => :'features:create_database' do ruby '-S', 'cucumber' end task :test => :features
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_account-3.2.1 | Rakefile |