amplitude-experiment 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/experiment/remote/client.rb +2 -2
- data/lib/experiment/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4b95fab3639837e3bb1223ad3ba71405d9f92384fa73dedca9daa83b8069dac
|
4
|
+
data.tar.gz: 3fdb770c922f5e82260cac4f53c1134555b85a3fb5ad91f5fd20956d3a42d300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e3ba791304dc10b7d27d34806d3a6b85b195a86035a0f5656410b0e541280fbf82053b06b8f1a13dd2bd8966d2cfa390b723733d73ce138cc8c4542d5431d29
|
7
|
+
data.tar.gz: 5eb707da5065fd9c8399d42967aa02c2f1705e944033e346579a01c4e66fe591c77cbfd812a0f6d1267be25995993a150014334727f80005f0114439a1562c30
|
@@ -77,7 +77,7 @@ module AmplitudeExperiment
|
|
77
77
|
delay_millis = @config.fetch_retry_backoff_min_millis
|
78
78
|
err = nil
|
79
79
|
@config.fetch_retries.times do
|
80
|
-
sleep(delay_millis / 1000.0)
|
80
|
+
sleep(delay_millis.to_f / 1000.0)
|
81
81
|
begin
|
82
82
|
return do_fetch(user, @config.fetch_retry_timeout_millis)
|
83
83
|
rescue StandardError => e
|
@@ -98,7 +98,7 @@ module AmplitudeExperiment
|
|
98
98
|
'Authorization' => "Api-Key #{@api_key}",
|
99
99
|
'Content-Type' => 'application/json;charset=utf-8'
|
100
100
|
}
|
101
|
-
read_timeout = timeout_millis / 1000 if (timeout_millis / 1000) > 0
|
101
|
+
read_timeout = timeout_millis.to_f / 1000 if (timeout_millis.to_f / 1000) > 0
|
102
102
|
http = PersistentHttpClient.get(@uri, { read_timeout: read_timeout }, @api_key)
|
103
103
|
request = Net::HTTP::Post.new(@uri, headers)
|
104
104
|
request.body = user_context.to_json
|
data/lib/experiment/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amplitude-experiment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amplitude
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|