fluxx 0.1.3 → 0.1.4

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: f079d4cf2938f2a7c8094f9b0c2d779f93117b045ce07515ea844a33ba73683c
4
- data.tar.gz: 58ae06e7e112520a53824ceaa9b1afe6417d5161568e5c2d2c91243e2a567feb
3
+ metadata.gz: b7306e15fcba5fde09aed63599751442c8162998186585411834b286d4e19103
4
+ data.tar.gz: 6d6f064e02a287039a07e290a71af9d6e1de255d9067fcb6eaae2bbf66c92fe8
5
5
  SHA512:
6
- metadata.gz: e38cdefc72e0b1411081aaef1a09652baa054061194ef43d15600a8ff79074e383a49a2934a8c57fd3cbcb92419a667a6053e58067d6d61246da1462f69c6c52
7
- data.tar.gz: 5275936f6ef3b8d9584b779c3f2639e805eed3479e6c15726a875b8abd1053b9367bea7064ad18fff85b6dcdd696e4d59d3ba5d68424acd2e2172de32c95f768
6
+ metadata.gz: b3ea664c5026d3d8f075b58ec0b187f4a5913c5f991ecba45ffad7cb8f4de6dec20d77e9053545b2b22c98cf568124e3f280691b4cac3a9ef910997cd4467d17
7
+ data.tar.gz: 5b16ae1fe12be892860e6e50d09db1b17715e0fc49b929433c4a7d004a5b2aa1d1bb7f3b21100a61838c03fce2428516b8a0cf8ffbd29bd7928f36d1ef419e74
@@ -17,6 +17,16 @@ module Fluxx
17
17
  endpoint ENV['FLUXX_INSTANCE_URL']
18
18
  content_type 'application/json'
19
19
 
20
+ # Defines the client endpoint. Thread-safe.
21
+ #
22
+ # @param value [String] the endpoint URI.
23
+ # @return [String]
24
+ def endpoint(value = nil)
25
+ return super(value) unless value.nil?
26
+
27
+ Thread.current.thread_variable_get(:FLUXX_INSTANCE_URL) || super
28
+ end
29
+
20
30
  # Updated request handler with the auto-refreshing token authentication
21
31
  #
22
32
  # @param payload [Hash] request payload.
@@ -1,3 +1,3 @@
1
1
  module Fluxx
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluxx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stas SUȘCOV
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-10-31 00:00:00.000000000 Z
12
+ date: 2019-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: http-rest_client