devcycle-ruby-server-sdk 2.3.0 → 2.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3292b534fec4f8c89f4d664af580c470134e26b2850d539ee1772025e83f3f9
|
4
|
+
data.tar.gz: 5a7819b140352a167dc579301760cb94e9b6d37ac3072c7d56424899a1495adb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0cf6025b840e4c49130288f888c0b5ffba60ea00ac4784cb39fadf0e6f0bfe2ce3f6870dc4e8f392a9ca4b28093270ac3a7aecb722f7086240475a172e2a2b2
|
7
|
+
data.tar.gz: 73131a61afa91700b109f00524760521b23624d9a2653411398af60d25d565afa21432b5f494b6b27f6810818004071f81eb090400e024b5d31d35b6a5cca8ae
|
@@ -58,24 +58,27 @@ module DevCycle
|
|
58
58
|
end
|
59
59
|
|
60
60
|
@max_config_retries.times do
|
61
|
+
@logger.debug("Requesting a new config for #{get_config_url}, etag: #{@config_e_tag}")
|
61
62
|
resp = req.run
|
63
|
+
@logger.debug("Config request complete, status: #{resp.code}")
|
62
64
|
case resp.code
|
63
65
|
when 304
|
64
|
-
@logger.debug("Config not modified, using cache, etag: #{
|
65
|
-
|
66
|
+
@logger.debug("Config not modified, using cache, etag: #{@config_e_tag}")
|
67
|
+
break
|
66
68
|
when 200
|
69
|
+
@logger.debug("Config downloaded, etag: #{resp.headers['Etag']}")
|
67
70
|
set_config(resp.body, resp.headers['Etag'])
|
68
|
-
|
71
|
+
break
|
69
72
|
when 403
|
70
73
|
stop_polling
|
71
74
|
@logger.error("Failed to download DevCycle config; Invalid SDK Key.")
|
72
|
-
|
75
|
+
break
|
73
76
|
when 500...599
|
74
77
|
@logger.error("Failed to download DevCycle config. Status: #{resp.code}")
|
75
78
|
else
|
76
79
|
stop_polling
|
77
80
|
@logger.error("Unexpected response code - DevCycle Response: #{Oj.dump(resp)}")
|
78
|
-
|
81
|
+
break
|
79
82
|
end
|
80
83
|
end
|
81
84
|
|
@@ -89,6 +92,7 @@ module DevCycle
|
|
89
92
|
|
90
93
|
@local_bucketing.store_config(config)
|
91
94
|
@config_e_tag = etag
|
95
|
+
@logger.debug("Config stored, etag: #{@config_e_tag}")
|
92
96
|
@local_bucketing.has_config = true
|
93
97
|
end
|
94
98
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devcycle-ruby-server-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DevCycleHQ
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|