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: 42297fb42fe333a0f3fac438eb5eee4c81f97216925656c76b23ca651e901dd9
4
- data.tar.gz: 9f7fc47d89abc15233779ba3b013b22edcf4c601b5c0d3aae1a89bef527e4174
3
+ metadata.gz: e3292b534fec4f8c89f4d664af580c470134e26b2850d539ee1772025e83f3f9
4
+ data.tar.gz: 5a7819b140352a167dc579301760cb94e9b6d37ac3072c7d56424899a1495adb
5
5
  SHA512:
6
- metadata.gz: 5cce2a3359646549a09b720e7b515b58b5dd9d4773c7250e87c9cc0ad866695786d296e766ec8e054c2cbfeba4238db08c5a8f694d43dd5c566c2a4352956d06
7
- data.tar.gz: 7396dec5e6cb89732c05ef2a2bc26c8b9abd2d0807fdfe94bbe9072baeee57189dcee936a856dddcb106fb7fc0af9df0b838a0d1e15a46e1f48aff9ff82fa1d5
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: #{this.configEtag}")
65
- return
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
- return
71
+ break
69
72
  when 403
70
73
  stop_polling
71
74
  @logger.error("Failed to download DevCycle config; Invalid SDK Key.")
72
- return
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
- return
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
 
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.3.0
11
11
  =end
12
12
 
13
13
  module DevCycle
14
- VERSION = '2.3.0'
14
+ VERSION = '2.3.1'
15
15
  end
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.0
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-10 00:00:00.000000000 Z
11
+ date: 2023-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus