myfinance 1.6.5 → 1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/myfinance/entities/financial_account.rb +2 -1
- data/lib/myfinance/entities/sale.rb +3 -1
- data/lib/myfinance/entities/sale_account.rb +1 -0
- data/lib/myfinance/version.rb +1 -1
- data/spec/lib/myfinance/entities/payable_account_spec.rb +1 -1
- data/spec/lib/myfinance/entities/receivable_account_spec.rb +1 -1
- data/spec/lib/myfinance/entities/sale_account_spec.rb +1 -0
- data/spec/lib/myfinance/entities/sale_spec.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f3b148965ed5f6faf627d5eab0ec21655ff970d
|
4
|
+
data.tar.gz: bad3d4d6661684a439110b5a4f0bfd640c1c14c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35c0fe588ee18cfbe1475ed54fa3dcd3d07e98ec03a151b14cdd1b104587cc701e686cdb7a33d7649ac58330e7f3b8550e6f8d065cf1ff4ee64716758f258865
|
7
|
+
data.tar.gz: bc2db51d5f9efd4c1d3e0d4fabb59d2a752b44db597492287afd8b7a02f1904da46f6066fb0dd05ff1b9bd528c8bf3e3d660c04d2881854a6726cfca67313ad8
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,18 @@
|
|
1
1
|
# Changelog
|
2
|
+
## v1.6.6
|
3
|
+
### Added
|
4
|
+
- `Sale` now has the following new attributes:
|
5
|
+
* `amount_difference`
|
6
|
+
* `competency_month`
|
7
|
+
* `installments`
|
8
|
+
- `SaleAccount` now has the following new attribute:
|
9
|
+
* `expected_deposit_account_id`
|
10
|
+
- `FinancialAccount` now has the following new attributes:
|
11
|
+
* `sale_account_id`
|
12
|
+
* `sale_ids`
|
13
|
+
### Removed
|
14
|
+
- `Sale` no longer has the followng new attributes:
|
15
|
+
* `api_related`
|
2
16
|
## v1.6.5
|
3
17
|
### Added
|
4
18
|
- `Sale` now has the following new attributes:
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1402,7 +1402,7 @@ $ curl -u $username https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credential
|
|
1402
1402
|
|
1403
1403
|
Then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). Make sure you have publishing rights for the gem on RubyGems beforehand, though.
|
1404
1404
|
|
1405
|
-
After publishing the new version, add a
|
1405
|
+
After publishing the new version, add a `released` label to each pull request included in the release and write a comment like this:
|
1406
1406
|
|
1407
1407
|
```
|
1408
1408
|
:shipit: released on [version x.y.z](https://rubygems.org/gems/myfinance/versions/x.y.z)
|
@@ -2,7 +2,7 @@ module Myfinance
|
|
2
2
|
module Entities
|
3
3
|
class FinancialAccount < Base
|
4
4
|
[:id, :entity_id, :status, :category_id, :person_id, :recurrence_id, :number_of_parcels,
|
5
|
-
|
5
|
+
:current_parcel, :classification_center_id, :expected_deposit_account_id, :sale_account_id].each do |k|
|
6
6
|
attribute k, Integer
|
7
7
|
end
|
8
8
|
|
@@ -22,6 +22,7 @@ module Myfinance
|
|
22
22
|
end
|
23
23
|
[:created_at, :updated_at].each { |k| attribute k, DateTime }
|
24
24
|
|
25
|
+
attribute :sale_ids, Array[Integer]
|
25
26
|
attribute :tax_charges, Array[Hash]
|
26
27
|
attribute :financial_account_taxes_attributes, Array[Hash]
|
27
28
|
attribute :custom_classifications, Array[Hash]
|
@@ -1,11 +1,12 @@
|
|
1
1
|
module Myfinance
|
2
2
|
module Entities
|
3
3
|
class Sale < Base
|
4
|
-
attribute :
|
4
|
+
attribute :amount_difference
|
5
5
|
attribute :attachments
|
6
6
|
attribute :attachments_count
|
7
7
|
attribute :category_id
|
8
8
|
attribute :classification_center_id
|
9
|
+
attribute :competency_month
|
9
10
|
attribute :confirmed_at
|
10
11
|
attribute :created_at
|
11
12
|
attribute :custom_classifications
|
@@ -22,6 +23,7 @@ module Myfinance
|
|
22
23
|
attribute :id
|
23
24
|
attribute :installment_count
|
24
25
|
attribute :installment_number
|
26
|
+
attribute :installments, Array[Hash]
|
25
27
|
attribute :interest_amount
|
26
28
|
attribute :issuer
|
27
29
|
attribute :links
|
data/lib/myfinance/version.rb
CHANGED
@@ -9,6 +9,6 @@ describe Myfinance::Entities::PayableAccount do
|
|
9
9
|
reminded_at income_tax_relevant category_id classification_center_id expected_deposit_account_id
|
10
10
|
recurrence_id person_id recurrent parcelled recurrence_period number_of_parcels current_parcel
|
11
11
|
competency_month financial_account_taxes_attributes tax_charges reconciliations
|
12
|
-
links created_at updated_at custom_classifications
|
12
|
+
links created_at updated_at custom_classifications sale_account_id sale_ids
|
13
13
|
]
|
14
14
|
end
|
@@ -9,6 +9,6 @@ describe Myfinance::Entities::ReceivableAccount do
|
|
9
9
|
reminded_at income_tax_relevant category_id classification_center_id expected_deposit_account_id
|
10
10
|
recurrence_id person_id recurrent parcelled recurrence_period number_of_parcels current_parcel
|
11
11
|
competency_month financial_account_taxes_attributes tax_charges reconciliations
|
12
|
-
links created_at updated_at custom_classifications
|
12
|
+
links created_at updated_at custom_classifications sale_account_id sale_ids
|
13
13
|
]
|
14
14
|
end
|
@@ -2,11 +2,12 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
describe Myfinance::Entities::Sale do
|
4
4
|
it_behaves_like "entity_attributes", %i[
|
5
|
-
|
5
|
+
amount_difference
|
6
6
|
attachments
|
7
7
|
attachments_count
|
8
8
|
category_id
|
9
9
|
classification_center_id
|
10
|
+
competency_month
|
10
11
|
confirmed_at
|
11
12
|
created_at
|
12
13
|
custom_classifications
|
@@ -23,13 +24,14 @@ describe Myfinance::Entities::Sale do
|
|
23
24
|
id
|
24
25
|
installment_count
|
25
26
|
installment_number
|
27
|
+
installments
|
26
28
|
interest_amount
|
27
29
|
issuer
|
28
30
|
links
|
29
31
|
liquidated_at
|
30
32
|
liquidation_weekday
|
31
|
-
nominal_amount
|
32
33
|
net_amount
|
34
|
+
nominal_amount
|
33
35
|
observation
|
34
36
|
occurred_at
|
35
37
|
original_sale_id
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myfinance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo Hertz
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2018-06-
|
15
|
+
date: 2018-06-25 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: typhoeus
|