bunq-client 0.3.0 → 0.4.0

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: 223d75a61a8e2175a424b034343ed91e7e59c0c372f1f5a2d40d6554e8549e67
4
- data.tar.gz: f049a79d1fe5bf45573c5f86bfad370e7c29105262084fc154da49067d007b72
3
+ metadata.gz: f36ef5a7dda47ca8610f7de424d6205a5a37faccfb68eda0f7a4afe242ab857b
4
+ data.tar.gz: b98d106de32dc66a735012826f56d63587b5a49863d5543a54ffc77e16d3d341
5
5
  SHA512:
6
- metadata.gz: 9af617dd19d60bdcd4882d735f82bc891a3d51ffbea1070bc050c276bcd9a0cac3b6b0c3ead27662352b3381ff14c259a1cfc41daed7b71b55640f27221c24a1
7
- data.tar.gz: caecec27519fe2c211345d26f76f1fec68a33198b392143b845b3281a81743fdfcdbf1de081434c45d7d59c0c497fd3c4c07e6f61cdedd4b70147f76c6dd46b6
6
+ metadata.gz: c6b6ecaaf23b4573451ecc0b7698f8271498416265cabdd9721267edad732e280b652f8877eabdae9dab85161aabbae2491cfcc323427f526ad55c6b55fd8774
7
+ data.tar.gz: ddbdca897a57d9c0432fbf2f56a3c4a5b4e40fc404840abe4a4b03dcd68897cd02b0f42c789154a97ea37cd0f6fd0c1f3fec3a8faa72423d4afc9139713a094e
@@ -0,0 +1,6 @@
1
+ # Changelog
2
+
3
+ ## 0.4.0
4
+
5
+ - Each `Bunq.client` call now `.dup`s the `Bunq::Configuration`. This means the `Bunq::Client#configuration` is no longer shared as a global.
6
+ - Add `Bunq::Client#with_local_config` method. Can be useful in a multi-threaded environment.
@@ -54,7 +54,7 @@ module Bunq
54
54
  #
55
55
  def client
56
56
  fail "No configuration! Call Bunq.configure first." unless configuration
57
- Client.new(configuration)
57
+ Client.new(configuration.dup)
58
58
  end
59
59
  end
60
60
 
@@ -221,6 +221,10 @@ module Bunq
221
221
  with_session { user(current_session_user_id) }
222
222
  end
223
223
 
224
+ def with_local_config
225
+ yield(configuration.dup)
226
+ end
227
+
224
228
  def ensure_session!
225
229
  @current_session ||= configuration.session_cache.get { create_session }
226
230
  end
@@ -1,3 +1,3 @@
1
1
  module Bunq
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunq-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Vonk
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2019-06-06 00:00:00.000000000 Z
14
+ date: 2019-06-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client
@@ -139,6 +139,7 @@ files:
139
139
  - ".rspec"
140
140
  - ".ruby-version"
141
141
  - ".travis.yml"
142
+ - CHANGELOG.md
142
143
  - CODE_OF_CONDUCT.md
143
144
  - Gemfile
144
145
  - LICENSE.txt