Skip to content

Commit 41fcd5d

Browse files
authored
prepare 5.4.2 release (#117)
1 parent e57425d commit 41fcd5d

File tree

6 files changed

+98
-14
lines changed

6 files changed

+98
-14
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ruby-docker-template: &ruby-docker-template
1919
gem install jruby-openssl; # required by bundler, no effect on Ruby MRI
2020
fi
2121
- run: ruby -v
22-
- run: gem install bundler
22+
- run: gem install bundler -v "~> 1.7"
2323
- run: bundle install
2424
- run: mkdir ./rspec
2525
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o ./rspec/rspec.xml spec
@@ -80,7 +80,7 @@ jobs:
8080
if [[ $i == jruby* ]]; then
8181
gem install jruby-openssl; # required by bundler, no effect on Ruby MRI
8282
fi
83-
gem install bundler;
83+
gem install bundler -v "~> 1.7";
8484
bundle install;
8585
mv Gemfile.lock "Gemfile.lock.$i"
8686
done

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@
1212
*.a
1313
mkmf.log
1414
*.gem
15-
Gemfile.lock
1615
.DS_Store

Gemfile.lock

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

ldclient-rb.gemspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ Gem::Specification.new do |spec|
3434
spec.add_runtime_dependency "json", [">= 1.8", "< 3"]
3535
spec.add_runtime_dependency "faraday", [">= 0.9", "< 2"]
3636
spec.add_runtime_dependency "faraday-http-cache", [">= 1.3.0", "< 3"]
37-
spec.add_runtime_dependency "semantic", "~> 1.6.0"
38-
spec.add_runtime_dependency "thread_safe", "~> 0.3"
37+
spec.add_runtime_dependency "semantic", "~> 1.6"
3938
spec.add_runtime_dependency "net-http-persistent", "~> 2.9"
40-
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0.4"
41-
spec.add_runtime_dependency "hashdiff", "~> 0.2"
39+
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
4240
spec.add_runtime_dependency "http_tools", '~> 0.4.5'
4341
spec.add_runtime_dependency "socketry", "~> 0.5.1"
4442
end

lib/ldclient-rb/cache_store.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
require "thread_safe"
1+
require "concurrent/map"
22

33
module LaunchDarkly
4-
# A thread-safe in-memory store suitable for use
5-
# with the Faraday caching HTTP client. Uses the
6-
# Threadsafe gem as the underlying cache.
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.
77
#
88
# @see https://github.com/plataformatec/faraday-http-cache
9-
# @see https://github.com/ruby-concurrency/thread_safe
9+
# @see https://github.com/ruby-concurrency
1010
#
1111
class ThreadSafeMemoryStore
1212
#
1313
# Default constructor
1414
#
1515
# @return [ThreadSafeMemoryStore] a new store
1616
def initialize
17-
@cache = ThreadSafe::Cache.new
17+
@cache = Concurrent::Map.new
1818
end
1919

2020
#

lib/ldclient-rb/redis_store.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
require "concurrent/atomics"
22
require "json"
3-
require "thread_safe"
43

54
module LaunchDarkly
65
#

0 commit comments

Comments
 (0)