debitcredit 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0adbf3aea2d75c75e6a73e79ab55714f07ddb76
4
- data.tar.gz: 17b30338b6134d6f03b4be289cbbce731f5692a3
3
+ metadata.gz: 6cfcdb2b31ab7056ea1dd628dda187da43281c4c
4
+ data.tar.gz: f507fc2e81e79a87938ae214d96701867dfe5bd1
5
5
  SHA512:
6
- metadata.gz: 4508bfa2c7d9d45d5d6bbdda550c9a91922f87ede097a87f2899083f9de20852398646dc30d12ce2d8684097a8ac35fc195c5510738a5debec9a9393c0473d20
7
- data.tar.gz: a031a87bfc4d32ff90ff752d9305f62acde430272e041064770decbf8c2de65a9ea0951e9ac4fb4cefbee2a11529999e011cc3b86b1b73769ec854f8914411aa
6
+ metadata.gz: f59d1cd9b5e394b8e467749e973508cd493a403775e335104130f66554034f3bc1b791b81433c8ab1f33ef84748dad476b31bdb21002114e29326eda7f4c5de1
7
+ data.tar.gz: 6ad0c2cb0b0bd1fe2815095d2ac4888a986b8a18d8ee725a7357fe7d5c9d4140f3256f68b6ed0a1812eb54192a55809aa842daa052399955db6a07b60283ed50
data/README.md CHANGED
@@ -5,6 +5,17 @@
5
5
 
6
6
  Double Entry Accounting for Rails Applications
7
7
 
8
+ ## Installation
9
+
10
+ * add `get 'debitcredit'` to your `Gemfile`
11
+ * and run `bundle install`
12
+ * run `rake debitcredit:install:migrations db:migrate`
13
+
14
+ ## Installation
15
+
16
+ * and run `bundle update debitcredit`
17
+ * run `rake debitcredit:install:migrations db:migrate`
18
+
8
19
  ## Account Types, Debits and Credits
9
20
 
10
21
  <http://en.wikipedia.org/wiki/Debits_and_credits>
@@ -3,6 +3,7 @@ module Debitcredit
3
3
  class Transaction < ActiveRecord::Base
4
4
  belongs_to :reference, polymorphic: true
5
5
  belongs_to :parent_transaction, class_name: 'Debitcredit::Transaction'
6
+ has_many :child_transactions, class_name: 'Debitcredit::Transaction', foreign_key: 'parent_transaction_id'
6
7
  belongs_to :inverse_transaction, class_name: 'Debitcredit::Transaction'
7
8
  has_many :items, dependent: :destroy, autosave: true
8
9
 
@@ -1,3 +1,3 @@
1
1
  module Debitcredit
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debitcredit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Kushner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-12 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -213,7 +213,7 @@ files:
213
213
  - MIT-LICENSE
214
214
  - Rakefile
215
215
  - README.md
216
- homepage: http://github.com/astrails/debitcredit
216
+ homepage: http://github.com/vitaly/debitcredit
217
217
  licenses: []
218
218
  metadata: {}
219
219
  post_install_message: