ldclient-rb 3.0.3 → 4.0.0
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 +90 -0
- data/CHANGELOG.md +10 -0
- data/README.md +0 -1
- data/ldclient-rb.gemspec +8 -2
- data/lib/ldclient-rb.rb +5 -1
- data/lib/ldclient-rb/config.rb +41 -1
- data/lib/ldclient-rb/evaluation.rb +33 -17
- data/lib/ldclient-rb/event_summarizer.rb +52 -0
- data/lib/ldclient-rb/events.rb +383 -51
- data/lib/ldclient-rb/expiring_cache.rb +76 -0
- data/lib/ldclient-rb/ldclient.rb +44 -23
- data/lib/ldclient-rb/non_blocking_thread_pool.rb +46 -0
- data/lib/ldclient-rb/redis_store.rb +13 -17
- data/lib/ldclient-rb/simple_lru_cache.rb +24 -0
- data/lib/ldclient-rb/{event_serializer.rb → user_filter.rb} +17 -23
- data/lib/ldclient-rb/version.rb +1 -1
- data/spec/evaluation_spec.rb +44 -9
- data/spec/event_summarizer_spec.rb +63 -0
- data/spec/events_spec.rb +506 -0
- data/spec/expiring_cache_spec.rb +76 -0
- data/spec/fixtures/feature.json +1 -0
- data/spec/ldclient_spec.rb +94 -17
- data/spec/simple_lru_cache_spec.rb +24 -0
- data/spec/{event_serializer_spec.rb → user_filter_spec.rb} +23 -44
- metadata +49 -23
- data/circle.yml +0 -35
data/circle.yml
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
machine:
|
2
|
-
environment:
|
3
|
-
RUBIES: "ruby-2.4.2 ruby-2.2.7 ruby-2.1.9 ruby-2.0.0 ruby-1.9.3 jruby-1.7.22 jruby-9.0.5.0 jruby-9.1.13.0"
|
4
|
-
services:
|
5
|
-
- redis
|
6
|
-
|
7
|
-
dependencies:
|
8
|
-
cache_directories:
|
9
|
-
- '/opt/circleci/.rvm/rubies'
|
10
|
-
|
11
|
-
override:
|
12
|
-
- |
|
13
|
-
set -e
|
14
|
-
for i in $RUBIES;
|
15
|
-
do
|
16
|
-
rvm install $i;
|
17
|
-
rvm use $i;
|
18
|
-
if [[ $i == jruby* ]]; then
|
19
|
-
gem install jruby-openssl; # required by bundler, no effect on Ruby MRI
|
20
|
-
fi
|
21
|
-
gem install bundler;
|
22
|
-
bundle install;
|
23
|
-
mv Gemfile.lock "Gemfile.lock.$i"
|
24
|
-
done
|
25
|
-
|
26
|
-
test:
|
27
|
-
override:
|
28
|
-
- |
|
29
|
-
set -e
|
30
|
-
for i in $RUBIES;
|
31
|
-
do
|
32
|
-
rvm use $i;
|
33
|
-
cp "Gemfile.lock.$i" Gemfile.lock;
|
34
|
-
bundle exec rspec spec;
|
35
|
-
done
|