myfinance 1.8.0 → 1.8.2

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
- SHA1:
3
- metadata.gz: 0b48f44005bc9c3eb890ac3ba4278394f6a38538
4
- data.tar.gz: 756915f57c9bc1ed3e8193555cc74439240464c7
2
+ SHA256:
3
+ metadata.gz: d4e32f53b64ced1629c929dc98336e0b6bca4317a1a334c4c3e98cf797988db7
4
+ data.tar.gz: c4982102eb392da25659d70e8c3f9b3358225ae6342575d1b1ced39d6acc6874
5
5
  SHA512:
6
- metadata.gz: ceb31c745452f4a6b3ba50dc2cbcaf53f8a30b2fcd466313e7d7c1e93b1cb967b05fb411e3309433793cada8117f326ba18bd03406abd4af1a3bacb44213a75d
7
- data.tar.gz: d621809bb4d562d54a7bb5b8e00e976dd6ee9a05ab6d383c5582a911e1d5514188204d5a0a46be4894a74b665d1f22f6a236b0fd9c0b317e79525fe52549e580
6
+ metadata.gz: 52e6c25dd638a6891f6300b4e15ca092d55aec20cb320bed621f65c2d3359144ed8d3834d240ba801bb6abad0a0d0356e4ddeb53c0a2643d1ee2d5d43700ca45
7
+ data.tar.gz: 80f37397d70f6e8d0c90b7bbb493651910a388247ab75f023bbb274de64691be04226e3e2e64cf4a28e0430f3a3d34ff7e391ab6c1346119de96910883521630
data/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
1
  # Changelog
2
+ ## v1.8.2
3
+ ### Added
4
+ - `Sale` now has the following new attribute:
5
+ * `receivable_account_total_amount`
6
+ ## v1.8.1
7
+ ### Fixes
8
+ - Changed URL encoding to support special characters. Ex: '&'
2
9
 
3
10
  ## v1.8.0
4
11
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- myfinance (1.8.0)
4
+ myfinance (1.8.2)
5
5
  mime-types (>= 1.16, < 3.0)
6
6
  multi_json (~> 1.11)
7
7
  require_all (~> 1.4.0)
@@ -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.11.0)
33
+ ethon (0.12.0)
34
34
  ffi (>= 1.3.0)
35
- ffi (1.9.25)
35
+ ffi (1.15.5)
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.13.1)
40
+ multi_json (1.15.0)
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.16.2
100
+ 1.17.3
data/README.md CHANGED
@@ -1392,8 +1392,11 @@ To install this gem onto your local machine, run `bundle exec rake install`.
1392
1392
 
1393
1393
  ## Release
1394
1394
 
1395
+
1395
1396
  To release a new version, update the version number in `lib/myfinance/version.rb`, run `bundle install` and commit & push the changes to the repository.
1396
1397
 
1398
+ Before releasing the gem, remember to update de CHANGELOG.md, describing the changes made in this version.
1399
+
1397
1400
  If this is your first time publishing a RubyGem in your local device, you will have to download your credentials. To do this, follow the instructions in your [profile page in RubyGems](https://rubygems.org/profile/edit) or just type the following in your command line, replacing `$username` with your RubyGems username.
1398
1401
 
1399
1402
  ```bash
@@ -46,6 +46,7 @@ module Myfinance
46
46
  attribute :ticket_amount
47
47
  attribute :total_amount
48
48
  attribute :updated_at
49
+ attribute :receivable_account_total_amount
49
50
  end
50
51
  end
51
52
  end
@@ -1,7 +1,6 @@
1
1
  module Myfinance
2
2
  module Resources
3
3
  class Base
4
-
5
4
  attr_accessor :http
6
5
 
7
6
  def initialize(http)
@@ -12,12 +11,12 @@ module Myfinance
12
11
 
13
12
  def build_search_endpoint(params)
14
13
  query_string = query(params).join("&")
15
- URI.encode("#{endpoint}?#{query_string}")
14
+ "#{endpoint}?#{query_string}"
16
15
  end
17
16
 
18
17
  def query(params)
19
18
  page = params.delete(:page)
20
- query = params.map { |key, value| "search[#{key}]=#{value}" }
19
+ query = params.map { |key, value| "search[#{key}]=#{CGI.escape(value.to_s)}" }
21
20
  query << "page=#{page}" if page
22
21
  query
23
22
  end
@@ -91,13 +91,15 @@ module Myfinance
91
91
 
92
92
  def build_search_endpoint(params)
93
93
  query_string = query(params).join("&")
94
- URI.encode("#{endpoint}?#{query_string}")
94
+ "#{endpoint}?#{query_string}"
95
95
  end
96
96
 
97
97
  def query(params)
98
98
  page = params.delete(:page)
99
99
  per_page = params.delete(:per_page)
100
- query = params.map { |key, value| "search[#{key}]=#{value}" }
100
+ query = params.map do |key, value|
101
+ "search[#{key}]=#{CGI.escape(value.to_s)}"
102
+ end
101
103
  query << "page=#{page}" if page
102
104
  query << "per_page=#{per_page}" if per_page
103
105
  query
@@ -81,7 +81,7 @@ module Myfinance
81
81
  query_string = query(params).join("&")
82
82
  custom_classifier_endpoint = endpoint(custom_classifier_id)
83
83
 
84
- URI.encode("#{custom_classifier_endpoint}?#{query_string}")
84
+ "#{custom_classifier_endpoint}?#{query_string}"
85
85
  end
86
86
 
87
87
  def endpoint(custom_classifier_id)
@@ -85,7 +85,7 @@ module Myfinance
85
85
  query_string = query(params).join("&")
86
86
  deposit_endpoint = endpoint(entity_id)
87
87
 
88
- URI.encode("#{deposit_endpoint}?#{query_string}")
88
+ "#{deposit_endpoint}?#{query_string}"
89
89
  end
90
90
 
91
91
  def endpoint(entity_id)
@@ -1,3 +1,3 @@
1
1
  module Myfinance
2
- VERSION = "1.8.0".freeze
2
+ VERSION = "1.8.2".freeze
3
3
  end
data/myfinance.gemspec CHANGED
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
22
22
  spec.required_ruby_version = ">= 2.0.0"
23
23
 
24
24
  spec.summary = %q{A Ruby client for the Myfinance REST API}
25
- spec.description = %q{A Ruby client for the Myfinance REST API: https://app.myfinance.com.br/docs/api}
26
- spec.homepage = "https://github.com/myfreecomm/myfinance-client-ruby"
25
+ spec.description = %q{A Ruby client for the Myfinance REST API: https://financeiro.fintera.com.br/docs/api}
26
+ spec.homepage = "https://github.com/Myfc-github/myfinance-client-ruby/pulls"
27
27
  spec.license = "MIT"
28
28
 
29
29
  # Prevent pushing this gem to RubyGems.org by setting "allowed_push_host", or
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.8.0
4
+ version: 1.8.2
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-09-20 00:00:00.000000000 Z
15
+ date: 2023-06-28 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: typhoeus
@@ -230,7 +230,7 @@ dependencies:
230
230
  - - "~>"
231
231
  - !ruby/object:Gem::Version
232
232
  version: '0.4'
233
- description: 'A Ruby client for the Myfinance REST API: https://app.myfinance.com.br/docs/api'
233
+ description: 'A Ruby client for the Myfinance REST API: https://financeiro.fintera.com.br/docs/api'
234
234
  email:
235
235
  - eduardohertz@gmail.com
236
236
  - g.francosilva@gmail.com
@@ -412,7 +412,7 @@ files:
412
412
  - spec/support/shared_examples/entity_collection.rb
413
413
  - spec/support/shared_examples/http_request_methods.rb
414
414
  - spec/support/vcr.rb
415
- homepage: https://github.com/myfreecomm/myfinance-client-ruby
415
+ homepage: https://github.com/Myfc-github/myfinance-client-ruby/pulls
416
416
  licenses:
417
417
  - MIT
418
418
  metadata:
@@ -432,8 +432,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
432
432
  - !ruby/object:Gem::Version
433
433
  version: '0'
434
434
  requirements: []
435
- rubyforge_project:
436
- rubygems_version: 2.5.2.3
435
+ rubygems_version: 3.2.3
437
436
  signing_key:
438
437
  specification_version: 4
439
438
  summary: A Ruby client for the Myfinance REST API