ofx-rb 0.1.0 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fbec719c8f878143842e7ce5a3d5b49901458be06deab41adaa832799b13e90
4
- data.tar.gz: 790aaddf260e8c6a306f3496fdaeb6d81cca8bc4fbba684235c1543ec653dff5
3
+ metadata.gz: 1a7007364843ce6f229a5ea0d40197b876fbb2a7c9c922e88aadef29386fb422
4
+ data.tar.gz: 9ad9d4857e23b0b7cec440c1776a315b8d375f6e28ee38185668187e1b854da2
5
5
  SHA512:
6
- metadata.gz: 16133b8b23709e0734d46c9a685e9ecb2dfd21dd8feaf1d8373218a411b01cdf5729936a8d7b4cd4d632b8834c0cf96b07df151dcc5f8dd0a12083854e979251
7
- data.tar.gz: 821b68bae5262d4b1922b22ff9e7e3ed2927e36092f36ceed876485881385c4d83812b43733c96b48888ba05f5dd5051cc358e834f85c43a31b1803a3e345973
6
+ metadata.gz: c90cfaac086fab2006656aed7cb188693722e11136ff09b6e0405479bc22ebb816c740c85ad6be637447cc7696a2f6d0d64b3b7bf85ac30dabee0cc13d8674a6
7
+ data.tar.gz: c209766779c429b08fda46eb35b7c42ae52ffdbbd952542140d0382451823eb31eeb52304bf1734df036697d6cba37507762b45cbda061a4e725a2ad544092cd
data/lib/ofx.rb CHANGED
@@ -18,7 +18,7 @@ module Ofx
18
18
  attr_accessor :mode
19
19
  attr_accessor :access_token
20
20
  def api_base
21
- @api_base ||= mode == 'live' ? 'https://live.api.ofx.com' : 'https://sandbox.api.ofx.com/v1'
21
+ @api_base ||= mode == 'live' ? 'https://live.api.ofx.com/v1' : 'https://sandbox.api.ofx.com/v1'
22
22
  end
23
23
  end
24
24
  end
@@ -7,7 +7,11 @@ module Ofx
7
7
  end
8
8
 
9
9
  def get_access_token
10
- @access_token ||= fetch_auth_token["access_token"]
10
+ @access_token ||= auth_token_response["access_token"]
11
+ end
12
+
13
+ def auth_token_response
14
+ @auth_token_response ||= JSON.parse(RestClient::Request.execute(auth_request))
11
15
  end
12
16
 
13
17
  private
@@ -23,10 +27,5 @@ module Ofx
23
27
  }
24
28
  end
25
29
 
26
- def fetch_auth_token
27
- response = RestClient::Request.execute(auth_request)
28
- JSON.parse(response)
29
- end
30
-
31
30
  end
32
31
  end
@@ -1,3 +1,3 @@
1
1
  module Ofx
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ofx-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Imran Ahmad
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-03 00:00:00.000000000 Z
11
+ date: 2020-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -75,7 +75,6 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
77
  - Gemfile
78
- - LICENSE.txt
79
78
  - README.md
80
79
  - Rakefile
81
80
  - bin/console
@@ -91,7 +90,6 @@ files:
91
90
  - lib/ofx/ofx_object.rb
92
91
  - lib/ofx/quote.rb
93
92
  - lib/ofx/version.rb
94
- - ofx-0.1.0.gem
95
93
  - ofx.gemspec
96
94
  homepage: https://github.com/Milaap/ofx-rb
97
95
  licenses: []
@@ -113,8 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
111
  - !ruby/object:Gem::Version
114
112
  version: '0'
115
113
  requirements: []
116
- rubyforge_project:
117
- rubygems_version: 2.7.8
114
+ rubygems_version: 3.0.3
118
115
  signing_key:
119
116
  specification_version: 4
120
117
  summary: Ruby gem for OFX APIs
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2019 Milaap Social Ventures
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
Binary file