finapps 4.0.11 → 4.0.12

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
  SHA256:
3
- metadata.gz: 446bac7e71f876c3a909d6106f9c97e85ff7b3a8fe82f44cdc6b3a76c09232bf
4
- data.tar.gz: a16edb93cd733e432c02bbdd785103bcfdbf4b196bd3b9f2ef5bdccc8a5d5e40
3
+ metadata.gz: 7c7e01a0cc069279baa7d0c6c6ad4de1de8e19a77bac754f0d091a9b18721574
4
+ data.tar.gz: b9b5441629770d07bd85c65360c8a87e8b41df3b13b1a9ca71fce4cf7dd484d9
5
5
  SHA512:
6
- metadata.gz: d87f1406d037e6f04bb10af5ddf69fe844b27ced831f6f2a912637c2f7489fcf3652233ac19a6c38021c973c39ffad49ea4578a4b8f39001cc8db5e59db4a52d
7
- data.tar.gz: 9acaa86fd1dded684199a33723aefa3b5e3b51e6d861b03a965c2f358620331ee195442c233f47169c604bdd438a3cb7b706d84f22dc4ae60807ca65f27c1872
6
+ metadata.gz: cb60857be1798390f6b5b76c68fdb9d7cbc4b9dbdf273080794a1abe698c99bf2e6aa9b42f492ff2ebe6e911e28db3e8063574f76fe7d062bde97c1d759aa728
7
+ data.tar.gz: 928d032593ed3b44e5bacacc5a925d4142dabf3a8bfcc964d8f25f9dc28a14ff7a7f4e7ae925952cbab53279443fa18cc8a616ff789a323982804162d2da2803
@@ -74,8 +74,7 @@ module FinApps
74
74
  def camelize(term)
75
75
  string = term.to_s
76
76
  string = string.sub(/^[a-z\d]*/) { $&.capitalize }
77
- string.gsub!(%r{(?:_|(/))([a-z\d]*)}) { Regexp.last_match(2).capitalize.to_s }
78
- string
77
+ string.gsub(%r{(?:_|(/))([a-z\d]*)}) { Regexp.last_match(2).capitalize.to_s }
79
78
  end
80
79
  end
81
80
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinApps
4
- VERSION = '4.0.12'
4
+ VERSION = '4.0.13'
5
5
  end
@@ -11,8 +11,12 @@ RSpec.describe FinApps::REST::Client do
11
11
  subject { FinApps::REST::Client.new(:company_token) }
12
12
 
13
13
  FinApps::REST::Client::RESOURCES.each do |method|
14
- it "responds to #{method}" do
15
- expect(subject).to respond_to(method)
14
+ it("responds to #{method}") { expect(subject).to respond_to(method) }
15
+
16
+ it "memoizes the result of #{method}" do
17
+ first = subject.send(method)
18
+ second = subject.send(method)
19
+ expect(first.object_id).to eq(second.object_id)
16
20
  end
17
21
  end
18
22
 
@@ -38,6 +42,12 @@ RSpec.describe FinApps::REST::Client do
38
42
  end
39
43
  end
40
44
 
45
+ describe '#consumer_institution_refresh' do
46
+ it do
47
+ expect(subject.consumer_institution_refresh).to be_an_instance_of FinApps::REST::ConsumerInstitutionRefresh
48
+ end
49
+ end
50
+
41
51
  describe '#sessions' do
42
52
  it { expect(subject.sessions).to be_an_instance_of(FinApps::REST::Sessions) }
43
53
  end
@@ -143,13 +153,5 @@ RSpec.describe FinApps::REST::Client do
143
153
  describe '#tenant_app_settings' do
144
154
  it { expect(subject.tenant_app_settings).to be_an_instance_of(FinApps::REST::TenantAppSettings) }
145
155
  end
146
-
147
- FinApps::REST::Client::RESOURCES.each do |method|
148
- it "memoizes the result of #{method}" do
149
- first = subject.send(method)
150
- second = subject.send(method)
151
- expect(first.object_id).to eq(second.object_id)
152
- end
153
- end
154
156
  end
155
157
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finapps
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.11
4
+ version: 4.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero