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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f404cf631d8d1063d98e1cb1d84ac87775e6fad2569d1cbdbb4cb09c9d07f788
4
- data.tar.gz: 6f0583a52122d0c07aa5087817524f7dd1b7a1e669231242ba3938ca96891be1
3
+ metadata.gz: f4b95fab3639837e3bb1223ad3ba71405d9f92384fa73dedca9daa83b8069dac
4
+ data.tar.gz: 3fdb770c922f5e82260cac4f53c1134555b85a3fb5ad91f5fd20956d3a42d300
5
5
  SHA512:
6
- metadata.gz: f5a42786a515308365e9e1b8796a5caca4bd67c00c059e094ef87bca6891169ffbf456238b257eaa9abf3fd947e4f963e445782e9fabcb552ea55bf13e4f5c13
7
- data.tar.gz: 01af1ba4be8773a21bf31614dd26aef15151eccebaa17c64d326c45d95ff1785623d89422fff43b8c963845a280907d82ddc2071e8ba0ae6c898ea03f27b5897
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
@@ -1,3 +1,3 @@
1
1
  module AmplitudeExperiment
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
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.0
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-12 00:00:00.000000000 Z
11
+ date: 2023-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby