ldclient-rb 2.0.5 → 2.0.6

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
  SHA1:
3
- metadata.gz: 82f21d4e659c7c6c1437c83513a85fcbf9726616
4
- data.tar.gz: 2805945abd6094ae4d3a06af898d37f670dcf021
3
+ metadata.gz: f025534640c48706d6ace35b0a75fd9ca2a64d62
4
+ data.tar.gz: ef6d24db138339107345a49a5a760babac7f2937
5
5
  SHA512:
6
- metadata.gz: 8f8bdbe447daba2b31251dac7b48a5f26c5da640aa6f562757b7605f1eb1f78426a5ec2f84b2587615f92416c899a2f5b86796cfb7149b3fae31596a05f42490
7
- data.tar.gz: 4d1595f110688c49a78e198dba899766988a204284039eabdb2e2205647198c8d770d2bf1e754ab84f88003d9c6972e362e979cc5d43b8fd08c0bca8b15e84b8
6
+ metadata.gz: ade40fb83a551632ea24d53b2220e66ef0f11eab356bdd4daeb649488c18dd637ad995b148be5036297179d25da093130cd1fc101e6c68ce3a6f949ddb4d51db
7
+ data.tar.gz: edac706ca27cab4d0c6ac0565dc2cac5956669a0abb9cfe484525fa36cd5dffcb5199f84924863696fdd2ef0933d7b7b896f43b38beda1e2faef384da56feb55
data/CHANGELOG.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  All notable changes to the LaunchDarkly Ruby SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
4
4
 
5
- ## [2.0.4] - 2017-01-31
5
+ ## [2.0.6] - 2017-02-10
6
+ ## Changed
7
+ - Improved handling of http status codes that may not be integers.
8
+
9
+ ## [2.0.5] - 2017-01-31
6
10
  ## Changed
7
11
  - Improved error handling when connected to flag update stream.
8
12
 
@@ -34,7 +34,7 @@ module LaunchDarkly
34
34
  req.options.timeout = @config.read_timeout
35
35
  req.options.open_timeout = @config.connect_timeout
36
36
  end
37
- if res.status / 100 != 2
37
+ if res.status < 200 || res.status >= 300
38
38
  @config.logger.error("[LDClient] Unexpected status code while processing events: #{res.status}")
39
39
  end
40
40
  end
@@ -44,7 +44,7 @@ module LaunchDarkly
44
44
  return nil
45
45
  end
46
46
 
47
- if res.status / 100 != 2
47
+ if res.status < 200 || res.status >= 300
48
48
  @config.logger.error("[LDClient] Unexpected status code #{res.status}")
49
49
  return nil
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module LaunchDarkly
2
- VERSION = "2.0.5"
2
+ VERSION = "2.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ldclient-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - LaunchDarkly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2017-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler