Reporting on Double Entry accounts and transfers
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
script
spec
.gitignore
.rspec
.travis.yml
.yardopts
CHANGELOG.md
Gemfile
LICENSE.md
README.md
Rakefile
double_entry-reporting.gemspec

README.md

DoubleEntry Reporting

License MIT Gem Version Build Status

Installation

In your application's Gemfile, add:

gem 'double_entry-reporting'

Download and install the gem with Bundler:

bundle

Generate Rails schema migrations for the required tables:

rails generate double_entry:reporting:install

Update the local database:

rake db:migrate

Development Environment Setup

  1. Clone this repo.

    git clone git@github.com:envato/double_entry-reporting.git && cd double_entry-reporting
  2. Run the included setup script to install the gem dependencies.

    ./script/setup.sh
  3. Install MySQL, PostgreSQL and SQLite. We run tests against all three databases.

  4. Create a database in MySQL.

    mysql -u root -e 'create database double_entry_reporting_test;'
  5. Create a database in PostgreSQL.

    psql -c 'create database double_entry_reporting_test;' -U postgres
  6. Specify how the tests should connect to the database

    cp spec/support/{database.example.yml,database.yml}
    vim spec/support/database.yml
  7. Run the tests

    bundle exec rake