ldclient-rb 2.4.0 → 2.4.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
  SHA1:
3
- metadata.gz: a18dfb629edba5ddd3ba6662289a8cf90b54e452
4
- data.tar.gz: ba95bca6cbea4c808fadb06e04e66d3df39ab0a5
3
+ metadata.gz: 96e2f113f163f9d2649f515efc8a16e3d9f01fcd
4
+ data.tar.gz: 9f11bffdc1358b86a3fec18abf62a3e9e927a72e
5
5
  SHA512:
6
- metadata.gz: e5c7b818184d3b961f6894579356f6cd624cf3cf74f109ded02004d5e5ca9c17582a93bfec01316e7fce47de3d6fbfc4618f2967d43d52a94904f70f1db8d67c
7
- data.tar.gz: 3d7126f29afd904557ceb9a0f4f6c115659db399894eb6f8bdf69fe65e1f9b9bb468d9d24a09610d1a1f390f2feb165da54f9400edc0b8e53baf09553ef4375c
6
+ metadata.gz: 3224fce749cbb694334d2b9482991c7de8d3274b8bd31b5bda201c0f594fbc86a1f09ac1b23a319a89d04ed2aba8dfa3d39cb25409352085802d1979c069f0b3
7
+ data.tar.gz: 4391bb0850a0a8affa9c7150838467471eee58848040af851080a9da4a75a5d4f68131e2ae36d9cdefca5a5e165623b9d778d06a60ab9ed89251da5a80bd217e
@@ -2,6 +2,14 @@
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.4.1] - 2018-01-23
6
+ ## Changed
7
+ - Reduce logging level for missing flags
8
+ - Relax json and faraday dependencies
9
+ ## Fixed
10
+ - Wrap redis bulk updates in a transaction
11
+ - Fixed documentation links
12
+
5
13
  ## [2.4.0] - 2018-01-12
6
14
  ## Changed
7
15
  - Will use feature store if already initialized even if connection to service could not be established. This is useful when flags have been initialized in redis.
@@ -1,7 +1,7 @@
1
1
  Contributing to LaunchDarkly SDK for Ruby
2
2
  =========================================
3
3
 
4
- We encourage pull-requests and other contributions from the community. We've also published an [SDK contributor's guide](http://docs.launchdarkly.com/v1.0/docs/sdk-contributors-guide) that provides a detailed explanation of how our SDKs work.
4
+ We encourage pull-requests and other contributions from the community. We've also published an [SDK contributor's guide](http://docs.launchdarkly.com/docs/sdk-contributors-guide) that provides a detailed explanation of how our SDKs work.
5
5
 
6
6
  Dependencies
7
7
  ------------
data/circle.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  machine:
2
2
  environment:
3
- RUBIES: "ruby-2.4.1;ruby-2.2.3;ruby-2.1.7;ruby-2.0.0;ruby-1.9.3;jruby-1.7.22"
3
+ RUBIES: "ruby-2.4.1;ruby-2.2.3;ruby-2.1.7;ruby-2.0.0;ruby-1.9.3;jruby-1.7.22"
4
4
  services:
5
5
  - redis
6
6
 
@@ -18,6 +18,7 @@ dependencies:
18
18
  gem install jruby-openssl; # required by bundler, no effect on Ruby MRI
19
19
  gem install bundler;
20
20
  bundle install;
21
+ mv Gemfile.lock "Gemfile.lock.$i"
21
22
  done
22
23
 
23
24
  test:
@@ -27,5 +28,6 @@ test:
27
28
  for i in "${rubiesArray[@]}";
28
29
  do
29
30
  rvm use $i;
31
+ cp "Gemfile.lock.$i" Gemfile.lock;
30
32
  bundle exec rspec spec;
31
33
  done
@@ -29,9 +29,9 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "connection_pool", ">= 2.1.2"
30
30
  spec.add_development_dependency "moneta", "~> 1.0.0"
31
31
 
32
- spec.add_runtime_dependency "json", "~> 1.8"
33
- spec.add_runtime_dependency "faraday", "~> 0.9"
34
- spec.add_runtime_dependency "faraday-http-cache", "~> 1.3.0"
32
+ spec.add_runtime_dependency "json", [">= 1.8", "< 3"]
33
+ spec.add_runtime_dependency "faraday", [">= 0.9", "< 2"]
34
+ spec.add_runtime_dependency "faraday-http-cache", [">= 1.3.0", "< 3"]
35
35
  spec.add_runtime_dependency "thread_safe", "~> 0.3"
36
36
  spec.add_runtime_dependency "net-http-persistent", "~> 2.9"
37
37
  spec.add_runtime_dependency "concurrent-ruby", "~> 1.0.4"
@@ -133,7 +133,7 @@ module LaunchDarkly
133
133
  feature = @store.get(key)
134
134
 
135
135
  if feature.nil?
136
- @config.logger.error("[LDClient] Unknown feature flag #{key}. Returning default value")
136
+ @config.logger.info("[LDClient] Unknown feature flag #{key}. Returning default value")
137
137
  @event_processor.add_event(kind: "feature", key: key, value: default, default: default, user: user)
138
138
  return default
139
139
  end
@@ -108,10 +108,10 @@ and prefix: #{@prefix}")
108
108
  end
109
109
  end
110
110
  if f.nil?
111
- @logger.warn("RedisFeatureStore: feature #{key} not found")
111
+ @logger.debug("RedisFeatureStore: feature #{key} not found")
112
112
  nil
113
113
  elsif f[:deleted]
114
- @logger.warn("RedisFeatureStore: feature #{key} was deleted, returning nil")
114
+ @logger.debug("RedisFeatureStore: feature #{key} was deleted, returning nil")
115
115
  nil
116
116
  else
117
117
  f
@@ -160,7 +160,7 @@ and prefix: #{@prefix}")
160
160
  @cache.clear
161
161
  with_connection do |redis|
162
162
  redis.multi do |multi|
163
- redis.del(@features_key)
163
+ multi.del(@features_key)
164
164
  fs.each { |k, f| put_redis_and_cache(multi, k, f) }
165
165
  end
166
166
  end
@@ -1,3 +1,3 @@
1
1
  module LaunchDarkly
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.1"
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.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - LaunchDarkly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-12 00:00:00.000000000 Z
11
+ date: 2018-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -112,44 +112,62 @@ dependencies:
112
112
  name: json
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '1.8'
118
+ - - "<"
119
+ - !ruby/object:Gem::Version
120
+ version: '3'
118
121
  type: :runtime
119
122
  prerelease: false
120
123
  version_requirements: !ruby/object:Gem::Requirement
121
124
  requirements:
122
- - - "~>"
125
+ - - ">="
123
126
  - !ruby/object:Gem::Version
124
127
  version: '1.8'
128
+ - - "<"
129
+ - !ruby/object:Gem::Version
130
+ version: '3'
125
131
  - !ruby/object:Gem::Dependency
126
132
  name: faraday
127
133
  requirement: !ruby/object:Gem::Requirement
128
134
  requirements:
129
- - - "~>"
135
+ - - ">="
130
136
  - !ruby/object:Gem::Version
131
137
  version: '0.9'
138
+ - - "<"
139
+ - !ruby/object:Gem::Version
140
+ version: '2'
132
141
  type: :runtime
133
142
  prerelease: false
134
143
  version_requirements: !ruby/object:Gem::Requirement
135
144
  requirements:
136
- - - "~>"
145
+ - - ">="
137
146
  - !ruby/object:Gem::Version
138
147
  version: '0.9'
148
+ - - "<"
149
+ - !ruby/object:Gem::Version
150
+ version: '2'
139
151
  - !ruby/object:Gem::Dependency
140
152
  name: faraday-http-cache
141
153
  requirement: !ruby/object:Gem::Requirement
142
154
  requirements:
143
- - - "~>"
155
+ - - ">="
144
156
  - !ruby/object:Gem::Version
145
157
  version: 1.3.0
158
+ - - "<"
159
+ - !ruby/object:Gem::Version
160
+ version: '3'
146
161
  type: :runtime
147
162
  prerelease: false
148
163
  version_requirements: !ruby/object:Gem::Requirement
149
164
  requirements:
150
- - - "~>"
165
+ - - ">="
151
166
  - !ruby/object:Gem::Version
152
167
  version: 1.3.0
168
+ - - "<"
169
+ - !ruby/object:Gem::Version
170
+ version: '3'
153
171
  - !ruby/object:Gem::Dependency
154
172
  name: thread_safe
155
173
  requirement: !ruby/object:Gem::Requirement