ldclient-rb 5.4.1 → 5.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -2
- data/.gitignore +0 -1
- data/CHANGELOG.md +6 -1
- data/Gemfile.lock +88 -0
- data/ldclient-rb.gemspec +2 -4
- data/lib/ldclient-rb/cache_store.rb +6 -6
- data/lib/ldclient-rb/redis_store.rb +0 -1
- data/lib/ldclient-rb/version.rb +1 -1
- metadata +7 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78ef7a89415e91506e95949229103e823e4ceec9
|
4
|
+
data.tar.gz: e3be2f3e7d88f7f7b1bc9b25ec7d99ce87932e19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17a0304ea17a4974d862d33f6d429720f755ef6ac96aecd049e719ff38000c798e727861fb0b50cba4afea02c6dfb2aef30eea0943291b47766fcc56f2c9c803
|
7
|
+
data.tar.gz: b9abfeeaa3271ae1fb3f56c7384cd6b490b37a626b777ac0f046c78d7cce03c53810fc575cc567a2c5015ad41be9958186ac996563b92303680dfe9ad7280b48
|
data/.circleci/config.yml
CHANGED
@@ -19,7 +19,7 @@ ruby-docker-template: &ruby-docker-template
|
|
19
19
|
gem install jruby-openssl; # required by bundler, no effect on Ruby MRI
|
20
20
|
fi
|
21
21
|
- run: ruby -v
|
22
|
-
- run: gem install bundler
|
22
|
+
- run: gem install bundler -v "~> 1.7"
|
23
23
|
- run: bundle install
|
24
24
|
- run: mkdir ./rspec
|
25
25
|
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o ./rspec/rspec.xml spec
|
@@ -80,7 +80,7 @@ jobs:
|
|
80
80
|
if [[ $i == jruby* ]]; then
|
81
81
|
gem install jruby-openssl; # required by bundler, no effect on Ruby MRI
|
82
82
|
fi
|
83
|
-
gem install bundler;
|
83
|
+
gem install bundler -v "~> 1.7";
|
84
84
|
bundle install;
|
85
85
|
mv Gemfile.lock "Gemfile.lock.$i"
|
86
86
|
done
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,9 +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
|
+
## [5.4.2] - 2019-01-04
|
6
|
+
### Fixed:
|
7
|
+
- Fixed overly specific dependency versions of `concurrent-ruby` and `semantic`. ([#115](https://github.com/launchdarkly/ruby-client/issues/115))
|
8
|
+
- Removed obsolete dependencies on `hashdiff` and `thread_safe`.
|
9
|
+
|
5
10
|
## [5.4.1] - 2018-11-05
|
6
11
|
### Fixed:
|
7
|
-
|
12
|
+
- Fixed a `LoadError` in `file_data_source.rb`, which was added in 5.4.0. (Thanks, [kbarrette](https://github.com/launchdarkly/ruby-client/pull/110)!)
|
8
13
|
|
9
14
|
|
10
15
|
## [5.4.0] - 2018-11-02
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ldclient-rb (5.4.1)
|
5
|
+
concurrent-ruby (~> 1.0)
|
6
|
+
faraday (>= 0.9, < 2)
|
7
|
+
faraday-http-cache (>= 1.3.0, < 3)
|
8
|
+
http_tools (~> 0.4.5)
|
9
|
+
json (>= 1.8, < 3)
|
10
|
+
net-http-persistent (~> 2.9)
|
11
|
+
semantic (~> 1.6)
|
12
|
+
socketry (~> 0.5.1)
|
13
|
+
|
14
|
+
GEM
|
15
|
+
remote: https://rubygems.org/
|
16
|
+
specs:
|
17
|
+
codeclimate-test-reporter (0.6.0)
|
18
|
+
simplecov (>= 0.7.1, < 1.0.0)
|
19
|
+
concurrent-ruby (1.1.4)
|
20
|
+
connection_pool (2.2.1)
|
21
|
+
diff-lcs (1.3)
|
22
|
+
docile (1.1.5)
|
23
|
+
faraday (0.15.4)
|
24
|
+
multipart-post (>= 1.2, < 3)
|
25
|
+
faraday-http-cache (2.0.0)
|
26
|
+
faraday (~> 0.8)
|
27
|
+
ffi (1.9.25)
|
28
|
+
ffi (1.9.25-java)
|
29
|
+
hitimes (1.3.0)
|
30
|
+
hitimes (1.3.0-java)
|
31
|
+
http_tools (0.4.5)
|
32
|
+
json (1.8.6)
|
33
|
+
json (1.8.6-java)
|
34
|
+
listen (3.1.5)
|
35
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
36
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
37
|
+
ruby_dep (~> 1.2)
|
38
|
+
multipart-post (2.0.0)
|
39
|
+
net-http-persistent (2.9.4)
|
40
|
+
rake (10.5.0)
|
41
|
+
rb-fsevent (0.10.3)
|
42
|
+
rb-inotify (0.9.10)
|
43
|
+
ffi (>= 0.5.0, < 2)
|
44
|
+
redis (3.3.5)
|
45
|
+
rspec (3.7.0)
|
46
|
+
rspec-core (~> 3.7.0)
|
47
|
+
rspec-expectations (~> 3.7.0)
|
48
|
+
rspec-mocks (~> 3.7.0)
|
49
|
+
rspec-core (3.7.1)
|
50
|
+
rspec-support (~> 3.7.0)
|
51
|
+
rspec-expectations (3.7.0)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.7.0)
|
54
|
+
rspec-mocks (3.7.0)
|
55
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
56
|
+
rspec-support (~> 3.7.0)
|
57
|
+
rspec-support (3.7.0)
|
58
|
+
rspec_junit_formatter (0.3.0)
|
59
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
60
|
+
ruby_dep (1.5.0)
|
61
|
+
semantic (1.6.1)
|
62
|
+
simplecov (0.15.1)
|
63
|
+
docile (~> 1.1.0)
|
64
|
+
json (>= 1.8, < 3)
|
65
|
+
simplecov-html (~> 0.10.0)
|
66
|
+
simplecov-html (0.10.2)
|
67
|
+
socketry (0.5.1)
|
68
|
+
hitimes (~> 1.2)
|
69
|
+
timecop (0.9.1)
|
70
|
+
|
71
|
+
PLATFORMS
|
72
|
+
java
|
73
|
+
ruby
|
74
|
+
|
75
|
+
DEPENDENCIES
|
76
|
+
bundler (~> 1.7)
|
77
|
+
codeclimate-test-reporter (~> 0)
|
78
|
+
connection_pool (>= 2.1.2)
|
79
|
+
ldclient-rb!
|
80
|
+
listen (~> 3.0)
|
81
|
+
rake (~> 10.0)
|
82
|
+
redis (~> 3.3.5)
|
83
|
+
rspec (~> 3.2)
|
84
|
+
rspec_junit_formatter (~> 0.3.0)
|
85
|
+
timecop (~> 0.9.1)
|
86
|
+
|
87
|
+
BUNDLED WITH
|
88
|
+
1.17.3
|
data/ldclient-rb.gemspec
CHANGED
@@ -34,11 +34,9 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.add_runtime_dependency "json", [">= 1.8", "< 3"]
|
35
35
|
spec.add_runtime_dependency "faraday", [">= 0.9", "< 2"]
|
36
36
|
spec.add_runtime_dependency "faraday-http-cache", [">= 1.3.0", "< 3"]
|
37
|
-
spec.add_runtime_dependency "semantic", "~> 1.6
|
38
|
-
spec.add_runtime_dependency "thread_safe", "~> 0.3"
|
37
|
+
spec.add_runtime_dependency "semantic", "~> 1.6"
|
39
38
|
spec.add_runtime_dependency "net-http-persistent", "~> 2.9"
|
40
|
-
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0
|
41
|
-
spec.add_runtime_dependency "hashdiff", "~> 0.2"
|
39
|
+
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
|
42
40
|
spec.add_runtime_dependency "http_tools", '~> 0.4.5'
|
43
41
|
spec.add_runtime_dependency "socketry", "~> 0.5.1"
|
44
42
|
end
|
@@ -1,12 +1,12 @@
|
|
1
|
-
require "
|
1
|
+
require "concurrent/map"
|
2
2
|
|
3
3
|
module LaunchDarkly
|
4
|
-
#
|
5
|
-
# with the Faraday caching HTTP client. Uses the
|
6
|
-
#
|
4
|
+
#
|
5
|
+
# A thread-safe in-memory store suitable for use with the Faraday caching HTTP client. Uses the
|
6
|
+
# concurrent-ruby gem's Map as the underlying cache.
|
7
7
|
#
|
8
8
|
# @see https://github.com/plataformatec/faraday-http-cache
|
9
|
-
# @see https://github.com/ruby-concurrency
|
9
|
+
# @see https://github.com/ruby-concurrency
|
10
10
|
#
|
11
11
|
class ThreadSafeMemoryStore
|
12
12
|
#
|
@@ -14,7 +14,7 @@ module LaunchDarkly
|
|
14
14
|
#
|
15
15
|
# @return [ThreadSafeMemoryStore] a new store
|
16
16
|
def initialize
|
17
|
-
@cache =
|
17
|
+
@cache = Concurrent::Map.new
|
18
18
|
end
|
19
19
|
|
20
20
|
#
|
data/lib/ldclient-rb/version.rb
CHANGED
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: 5.4.
|
4
|
+
version: 5.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LaunchDarkly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -202,28 +202,14 @@ dependencies:
|
|
202
202
|
requirements:
|
203
203
|
- - "~>"
|
204
204
|
- !ruby/object:Gem::Version
|
205
|
-
version: 1.6
|
205
|
+
version: '1.6'
|
206
206
|
type: :runtime
|
207
207
|
prerelease: false
|
208
208
|
version_requirements: !ruby/object:Gem::Requirement
|
209
209
|
requirements:
|
210
210
|
- - "~>"
|
211
211
|
- !ruby/object:Gem::Version
|
212
|
-
version: 1.6
|
213
|
-
- !ruby/object:Gem::Dependency
|
214
|
-
name: thread_safe
|
215
|
-
requirement: !ruby/object:Gem::Requirement
|
216
|
-
requirements:
|
217
|
-
- - "~>"
|
218
|
-
- !ruby/object:Gem::Version
|
219
|
-
version: '0.3'
|
220
|
-
type: :runtime
|
221
|
-
prerelease: false
|
222
|
-
version_requirements: !ruby/object:Gem::Requirement
|
223
|
-
requirements:
|
224
|
-
- - "~>"
|
225
|
-
- !ruby/object:Gem::Version
|
226
|
-
version: '0.3'
|
212
|
+
version: '1.6'
|
227
213
|
- !ruby/object:Gem::Dependency
|
228
214
|
name: net-http-persistent
|
229
215
|
requirement: !ruby/object:Gem::Requirement
|
@@ -244,28 +230,14 @@ dependencies:
|
|
244
230
|
requirements:
|
245
231
|
- - "~>"
|
246
232
|
- !ruby/object:Gem::Version
|
247
|
-
version: 1.0
|
248
|
-
type: :runtime
|
249
|
-
prerelease: false
|
250
|
-
version_requirements: !ruby/object:Gem::Requirement
|
251
|
-
requirements:
|
252
|
-
- - "~>"
|
253
|
-
- !ruby/object:Gem::Version
|
254
|
-
version: 1.0.4
|
255
|
-
- !ruby/object:Gem::Dependency
|
256
|
-
name: hashdiff
|
257
|
-
requirement: !ruby/object:Gem::Requirement
|
258
|
-
requirements:
|
259
|
-
- - "~>"
|
260
|
-
- !ruby/object:Gem::Version
|
261
|
-
version: '0.2'
|
233
|
+
version: '1.0'
|
262
234
|
type: :runtime
|
263
235
|
prerelease: false
|
264
236
|
version_requirements: !ruby/object:Gem::Requirement
|
265
237
|
requirements:
|
266
238
|
- - "~>"
|
267
239
|
- !ruby/object:Gem::Version
|
268
|
-
version: '0
|
240
|
+
version: '1.0'
|
269
241
|
- !ruby/object:Gem::Dependency
|
270
242
|
name: http_tools
|
271
243
|
requirement: !ruby/object:Gem::Requirement
|
@@ -312,6 +284,7 @@ files:
|
|
312
284
|
- CODEOWNERS
|
313
285
|
- CONTRIBUTING.md
|
314
286
|
- Gemfile
|
287
|
+
- Gemfile.lock
|
315
288
|
- LICENSE.txt
|
316
289
|
- README.md
|
317
290
|
- Rakefile
|