splitclient-rb 4.3.0 → 4.3.1
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 +4 -4
- data/CHANGES.txt +3 -0
- data/lib/splitclient-rb/clients/split_client.rb +10 -2
- data/lib/splitclient-rb/split_config.rb +7 -4
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 323e8842262a2e84362ffe4285dd367d4c879eec
|
4
|
+
data.tar.gz: 2522f07752a4e4400c93e475d24443d7abfdbf34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69702cb3ca471b8a737ca473baa94fe1bfca33826cede3c28d1b74d7cce2cb9118d74d34ef4731508e409954a5366ea262368382edd279dcc850982c63dda1a8
|
7
|
+
data.tar.gz: e984e96c245b6c46069b85aa5d380101371d61a470b202fa6b712175bf2dfd80d40ccfc11c5fd055cc54e36750369490e388eed57a1ee89e9b4f9346ec45cca9
|
data/CHANGES.txt
CHANGED
@@ -90,7 +90,10 @@ module SplitIoClient
|
|
90
90
|
|
91
91
|
store_impression(
|
92
92
|
split_name, matching_key, bucketing_key,
|
93
|
-
{
|
93
|
+
{
|
94
|
+
treatment: SplitIoClient::Engine::Models::Treatment::CONTROL,
|
95
|
+
label: SplitIoClient::Engine::Models::Label::EXCEPTION
|
96
|
+
},
|
94
97
|
store_impressions, attributes
|
95
98
|
)
|
96
99
|
|
@@ -109,7 +112,10 @@ module SplitIoClient
|
|
109
112
|
|
110
113
|
store_impression(
|
111
114
|
split_name, matching_key, bucketing_key,
|
112
|
-
{
|
115
|
+
{
|
116
|
+
treatment: SplitIoClient::Engine::Models::Treatment::CONTROL,
|
117
|
+
label: SplitIoClient::Engine::Models::Label::EXCEPTION
|
118
|
+
},
|
113
119
|
store_impressions, attributes
|
114
120
|
)
|
115
121
|
|
@@ -148,6 +154,8 @@ module SplitIoClient
|
|
148
154
|
'time' => time,
|
149
155
|
'changeNumber' => treatment[:change_number]
|
150
156
|
)
|
157
|
+
rescue StandardError => error
|
158
|
+
@config.log_found_exception(__method__.to_s, error)
|
151
159
|
end
|
152
160
|
|
153
161
|
def route_impression(split_name, matching_key, bucketing_key, time, treatment, attributes)
|
@@ -313,10 +313,13 @@ module SplitIoClient
|
|
313
313
|
# custom logger of exceptions
|
314
314
|
#
|
315
315
|
# @return [void]
|
316
|
-
def log_found_exception(caller,
|
317
|
-
|
318
|
-
|
319
|
-
|
316
|
+
def log_found_exception(caller, error)
|
317
|
+
message = ''
|
318
|
+
|
319
|
+
message << "[splitclient-rb] Unexpected exception in #{caller}: #{error.inspect} #{error}"
|
320
|
+
message << "\n\t#{error.backtrace.join("\n\t")}" if @debug_enabled
|
321
|
+
|
322
|
+
@logger.warn(message)
|
320
323
|
end
|
321
324
|
|
322
325
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: splitclient-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Split Software
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|