myfinance 1.6.1 → 1.6.3

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: 7a7c0308bdb879859a3f747a955041128e952501
4
- data.tar.gz: 0ac16a5ad1d8b58af1233b6af6157976d30b6a91
3
+ metadata.gz: 781a84bd31389b8d69d873da030851965902aafa
4
+ data.tar.gz: 7c23572e2f4557a92249d1758cc38e304c9aa1b6
5
5
  SHA512:
6
- metadata.gz: bc9326e8efbb17adc6e8bccd939948469e9ca8af22fb8e816d0e76e8f0a4f2f790ef2a0d3804fcaf40db79f249aca3c25270a5ffc22e423de7939a7dd0f5dbde
7
- data.tar.gz: 07eeffd310eb8e1bb51b6e5ce8b3902821613c60fbe427863ce58af47b6b1df1e05dd8078126dc591828617e4caa15a3e544f8fe8f8dc3380a5cad06bc524841
6
+ metadata.gz: 05112cd8549d2af448f1c8564bb616598384ff12e17570373318a43a2327b1a889fbb150cfb4dfc411b45be282eb666b5d3c0e205a29b8d2be7185836ef39bad
7
+ data.tar.gz: 56dc5b199580f075176b226e7467b8c1aa6974e2ce00c655aa07e070f4d16d9204b5a03a833c5110a4dc6e0172d0aa0fa6ada3841dda48220ee4d3ed15344775
@@ -1,7 +1,12 @@
1
1
  # Changelog
2
+ ## v1.6.3
3
+ - Change `mime-types` dependency to allow a broader range of versions so as to continue supporting Rails 3
4
+ ## v1.6.2
5
+ - `SaleAccount` now has the following new attribute:
6
+ - `consolidate`, which represents wether associated `sales` will be consolidated into one `ReceivableAccount` per date or one per `Sale`
2
7
  ## v1.6.1
3
8
  - `Sale` now has the following new attribute:
4
- - `net_amount`, total_amount - withholding tax_charges
9
+ - `net_amount`, which represents the `total_amount` - withholded `tax_charges`
5
10
  ## v1.6.0
6
11
  - `Sale` can now receive `attachments` and `links` from Myfinance app
7
12
  - `attachments` returns the attachments of the `Sale`
@@ -2,7 +2,7 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  myfinance (1.6.1)
5
- mime-types (~> 2.99)
5
+ mime-types (>= 1.16, < 3.0)
6
6
  multi_json (~> 1.11)
7
7
  require_all (~> 1.4.0)
8
8
  typhoeus (~> 0.8)
@@ -30,14 +30,14 @@ GEM
30
30
  diff-lcs (1.3)
31
31
  docile (1.1.5)
32
32
  equalizer (0.0.11)
33
- ethon (0.10.1)
33
+ ethon (0.11.0)
34
34
  ffi (>= 1.3.0)
35
- ffi (1.9.18)
35
+ ffi (1.9.23)
36
36
  ice_nine (0.11.2)
37
37
  json (2.0.3)
38
38
  method_source (0.8.2)
39
39
  mime-types (2.99.3)
40
- multi_json (1.12.1)
40
+ multi_json (1.13.1)
41
41
  pry (0.10.4)
42
42
  coderay (~> 1.1.0)
43
43
  method_source (~> 0.8.1)
@@ -97,4 +97,4 @@ DEPENDENCIES
97
97
  webmock (~> 1.9.3)
98
98
 
99
99
  BUNDLED WITH
100
- 1.15.3
100
+ 1.16.1
@@ -1,17 +1,18 @@
1
1
  module Myfinance
2
2
  module Entities
3
3
  class SaleAccount < Base
4
+ attribute :category_id
5
+ attribute :classification_center_id
6
+ attribute :consolidate
7
+ attribute :created_at
8
+ attribute :custom_classifications
9
+ attribute :description
10
+ attribute :entity_id
4
11
  attribute :id
5
12
  attribute :name
6
- attribute :entity_id
7
- attribute :description
8
- attribute :provider
9
13
  attribute :payment_methods
10
- attribute :category_id
11
14
  attribute :person_id
12
- attribute :classification_center_id
13
- attribute :custom_classifications
14
- attribute :created_at
15
+ attribute :provider
15
16
  attribute :updated_at
16
17
  end
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module Myfinance
2
- VERSION = "1.6.1".freeze
2
+ VERSION = "1.6.3".freeze
3
3
  end
@@ -43,7 +43,7 @@ Gem::Specification.new do |spec|
43
43
  spec.add_dependency "typhoeus", "~> 0.8"
44
44
  spec.add_dependency "multi_json", "~> 1.11"
45
45
  spec.add_dependency "virtus", "~> 1.0.5"
46
- spec.add_dependency "mime-types", "~> 2.99"
46
+ spec.add_dependency "mime-types", ">= 1.16", "< 3.0"
47
47
  spec.add_dependency "require_all", "~> 1.4.0"
48
48
 
49
49
  spec.add_development_dependency "bundler", "~> 1.10"
@@ -2,17 +2,18 @@ require "spec_helper"
2
2
 
3
3
  describe Myfinance::Entities::SaleAccount do
4
4
  it_behaves_like "entity_attributes", %i[
5
+ category_id
6
+ classification_center_id
7
+ consolidate
8
+ created_at
9
+ custom_classifications
10
+ description
11
+ entity_id
5
12
  id
6
13
  name
7
- entity_id
8
- description
9
- provider
10
14
  payment_methods
11
- category_id
12
15
  person_id
13
- classification_center_id
14
- custom_classifications
15
- created_at
16
+ provider
16
17
  updated_at
17
18
  ]
18
19
  end
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.1
4
+ version: 1.6.3
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: 2017-09-19 00:00:00.000000000 Z
15
+ date: 2018-04-12 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: typhoeus
@@ -60,16 +60,22 @@ dependencies:
60
60
  name: mime-types
61
61
  requirement: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - "~>"
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '1.16'
66
+ - - "<"
64
67
  - !ruby/object:Gem::Version
65
- version: '2.99'
68
+ version: '3.0'
66
69
  type: :runtime
67
70
  prerelease: false
68
71
  version_requirements: !ruby/object:Gem::Requirement
69
72
  requirements:
70
- - - "~>"
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '1.16'
76
+ - - "<"
71
77
  - !ruby/object:Gem::Version
72
- version: '2.99'
78
+ version: '3.0'
73
79
  - !ruby/object:Gem::Dependency
74
80
  name: require_all
75
81
  requirement: !ruby/object:Gem::Requirement
@@ -427,7 +433,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
427
433
  version: '0'
428
434
  requirements: []
429
435
  rubyforge_project:
430
- rubygems_version: 2.4.8
436
+ rubygems_version: 2.5.2.2
431
437
  signing_key:
432
438
  specification_version: 4
433
439
  summary: A Ruby client for the Myfinance REST API