myfinance 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/lib/myfinance/entities/financial_account.rb +2 -1
- data/lib/myfinance/entities/sale.rb +1 -1
- data/lib/myfinance/version.rb +1 -1
- data/spec/lib/myfinance/entities/payable_account_spec.rb +2 -1
- data/spec/lib/myfinance/entities/receivable_account_spec.rb +2 -1
- data/spec/lib/myfinance/entities/sale_spec.rb +1 -1
- data/spec/lib/myfinance/resources/payable_account_spec.rb +2 -1
- data/spec/lib/myfinance/resources/receivable_account_spec.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec920463cf5999546a46af9d396ecf921a6ff371
|
4
|
+
data.tar.gz: a1ab1557e5e85a10689c011fd349ea1993448d3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5017df20951a4193830850c3a87b04f3fba16bd3599f2e9dd1c3797bf4bd5d54e81f50b1281d71760f93bee217ebe3d8de8bb3a0eef81b4274c068d0d8eea30d
|
7
|
+
data.tar.gz: 97223a355291502fae10e73cf81fb60f3b7996c27ba90f417686aed704b016a6111d77259943b8d634050bc4506964075c22db79e81db4697ba36ea471385b83
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
# Changelog
|
2
|
+
## v1.4.1
|
3
|
+
- In v1.4.0 we broke the API by renaming `financial_account_taxes_attributes` to `tax_charges_attributes`.
|
4
|
+
We add `financial_account_taxes_attributes` back. Both can be used for the same purpose.
|
5
|
+
- We also renamed `tax_charges_attributes` to `tax_charges` as an effort to move away from the `_attributes` suffix.
|
2
6
|
## v1.4.0
|
3
7
|
### New attributes
|
4
8
|
- `Sale` now has the following new attributes:
|
data/Gemfile.lock
CHANGED
@@ -22,7 +22,8 @@ module Myfinance
|
|
22
22
|
end
|
23
23
|
[:created_at, :updated_at].each { |k| attribute k, DateTime }
|
24
24
|
|
25
|
-
attribute :
|
25
|
+
attribute :tax_charges, Array[Hash]
|
26
|
+
attribute :financial_account_taxes_attributes, Array[Hash]
|
26
27
|
attribute :reconciliations, Hash[String => Array]
|
27
28
|
attribute :links, Array[Hash[String => String]]
|
28
29
|
end
|
data/lib/myfinance/version.rb
CHANGED
@@ -8,6 +8,7 @@ describe Myfinance::Entities::PayableAccount do
|
|
8
8
|
:discount_amount, :total_amount, :description, :document, :document_emission_date, :observation, :remind,
|
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
|
-
:competency_month, :
|
11
|
+
:competency_month, :financial_account_taxes_attributes, :tax_charges, :reconciliations,
|
12
|
+
:links, :created_at, :updated_at
|
12
13
|
]
|
13
14
|
end
|
@@ -8,6 +8,7 @@ describe Myfinance::Entities::ReceivableAccount do
|
|
8
8
|
:discount_amount, :total_amount, :description, :document, :document_emission_date, :observation, :remind,
|
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
|
-
:competency_month, :
|
11
|
+
:competency_month, :financial_account_taxes_attributes, :tax_charges, :reconciliations,
|
12
|
+
:links, :created_at, :updated_at
|
12
13
|
]
|
13
14
|
end
|
@@ -116,7 +116,8 @@ describe Myfinance::Resources::PayableAccount do
|
|
116
116
|
expect(subject.number_of_parcels).to be_nil
|
117
117
|
expect(subject.current_parcel).to be_nil
|
118
118
|
expect(subject.competency_month).to eq("2015-08")
|
119
|
-
expect(subject.
|
119
|
+
expect(subject.tax_charges).to be_empty
|
120
|
+
expect(subject.financial_account_taxes_attributes).to be_empty
|
120
121
|
end
|
121
122
|
|
122
123
|
context "when the payable_account has occurred_at value defined" do
|
@@ -117,7 +117,8 @@ describe Myfinance::Resources::ReceivableAccount do
|
|
117
117
|
expect(subject.number_of_parcels).to be_nil
|
118
118
|
expect(subject.current_parcel).to be_nil
|
119
119
|
expect(subject.competency_month).to eq("2015-08")
|
120
|
-
expect(subject.
|
120
|
+
expect(subject.tax_charges).to be_empty
|
121
|
+
expect(subject.financial_account_taxes_attributes).to be_empty
|
121
122
|
end
|
122
123
|
|
123
124
|
context "when the receivable_account has occurred_at value defined" do
|
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.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo Hertz
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-07-
|
14
|
+
date: 2017-07-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: typhoeus
|
@@ -413,7 +413,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
413
413
|
version: '0'
|
414
414
|
requirements: []
|
415
415
|
rubyforge_project:
|
416
|
-
rubygems_version: 2.6.
|
416
|
+
rubygems_version: 2.6.11
|
417
417
|
signing_key:
|
418
418
|
specification_version: 4
|
419
419
|
summary: A Ruby client for the Myfinance REST API
|