myfinance 1.4.0 → 1.4.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: d4e81004a6f6c7920181666ec4fd9bc3781dcdd9
4
- data.tar.gz: 17a3994ee0f04f150d8cc87fd662c0bf6478d98f
3
+ metadata.gz: ec920463cf5999546a46af9d396ecf921a6ff371
4
+ data.tar.gz: a1ab1557e5e85a10689c011fd349ea1993448d3b
5
5
  SHA512:
6
- metadata.gz: 7c24b62f71ca61e76f3392eb32993df9858e1555afa9e01df758a6f547906719f309267d6ae34a845275d28060d16356a426eef0bfc5bebc08d6bd958fbfee85
7
- data.tar.gz: a7ec2973ce7b53ae2a24e0a30a97172f3255006e84859cd56fb42af33f1eaa16481be032cde55053c1ce62a12eccd28b96252da4c25081b3483c8cc7cfca1b84
6
+ metadata.gz: 5017df20951a4193830850c3a87b04f3fba16bd3599f2e9dd1c3797bf4bd5d54e81f50b1281d71760f93bee217ebe3d8de8bb3a0eef81b4274c068d0d8eea30d
7
+ data.tar.gz: 97223a355291502fae10e73cf81fb60f3b7996c27ba90f417686aed704b016a6111d77259943b8d634050bc4506964075c22db79e81db4697ba36ea471385b83
@@ -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:
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- myfinance (1.4.0)
4
+ myfinance (1.4.1)
5
5
  mime-types (~> 2.99)
6
6
  multi_json (~> 1.11)
7
7
  require_all (~> 1.4.0)
@@ -97,4 +97,4 @@ DEPENDENCIES
97
97
  webmock (~> 1.9.3)
98
98
 
99
99
  BUNDLED WITH
100
- 1.14.6
100
+ 1.15.1
@@ -22,7 +22,8 @@ module Myfinance
22
22
  end
23
23
  [:created_at, :updated_at].each { |k| attribute k, DateTime }
24
24
 
25
- attribute :tax_charges_attributes, Array[Hash]
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
@@ -31,7 +31,7 @@ module Myfinance
31
31
  attribute :sale_account_id
32
32
  attribute :status
33
33
  attribute :summary
34
- attribute :tax_charges_attributes
34
+ attribute :tax_charges
35
35
  attribute :ticket_amount
36
36
  attribute :total_amount
37
37
  attribute :updated_at
@@ -1,3 +1,3 @@
1
1
  module Myfinance
2
- VERSION = "1.4.0".freeze
2
+ VERSION = "1.4.1".freeze
3
3
  end
@@ -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, :tax_charges_attributes, :reconciliations, :links, :created_at, :updated_at
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, :tax_charges_attributes, :reconciliations, :links, :created_at, :updated_at
11
+ :competency_month, :financial_account_taxes_attributes, :tax_charges, :reconciliations,
12
+ :links, :created_at, :updated_at
12
13
  ]
13
14
  end
@@ -31,7 +31,7 @@ describe Myfinance::Entities::Sale do
31
31
  sale_account_id
32
32
  status
33
33
  summary
34
- tax_charges_attributes
34
+ tax_charges
35
35
  ticket_amount
36
36
  total_amount
37
37
  updated_at
@@ -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.tax_charges_attributes).to be_empty
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.tax_charges_attributes).to be_empty
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.0
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-08 00:00:00.000000000 Z
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.8
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