splitclient-rb 1.0.2.wip → 8.11.1.pre.rc1-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/CODEOWNERS +1 -0
- data/.github/pull_request_template.md +9 -0
- data/.github/workflows/ci.yml +90 -0
- data/.github/workflows/update-license-year.yml +45 -0
- data/.gitignore +20 -0
- data/.rubocop.yml +76 -0
- data/.simplecov +1 -0
- data/CHANGES.txt +361 -2
- data/CONTRIBUTORS-GUIDE.md +49 -0
- data/Gemfile +2 -0
- data/LICENSE +3 -36
- data/NOTICE.txt +5 -0
- data/README.md +59 -127
- data/Rakefile +27 -3
- data/ext/murmurhash/MurmurHash3.java +302 -0
- data/gemfiles/faraday_after_0.13.gemfile +7 -0
- data/gemfiles/faraday_before_0.13.gemfile +8 -0
- data/lib/murmurhash/base.rb +58 -0
- data/lib/murmurhash/murmurhash.jar +0 -0
- data/lib/murmurhash/murmurhash_mri.rb +3 -0
- data/lib/splitclient-rb/cache/adapters/cache_adapter.rb +130 -0
- data/lib/splitclient-rb/cache/adapters/memory_adapter.rb +12 -0
- data/lib/splitclient-rb/cache/adapters/memory_adapters/map_adapter.rb +137 -0
- data/lib/splitclient-rb/cache/adapters/memory_adapters/queue_adapter.rb +53 -0
- data/lib/splitclient-rb/cache/adapters/redis_adapter.rb +178 -0
- data/lib/splitclient-rb/cache/fetchers/segment_fetcher.rb +83 -0
- data/lib/splitclient-rb/cache/fetchers/split_fetcher.rb +70 -0
- data/lib/splitclient-rb/cache/filter/bloom_filter.rb +67 -0
- data/lib/splitclient-rb/cache/filter/filter_adapter.rb +32 -0
- data/lib/splitclient-rb/cache/filter/flag_set_filter.rb +40 -0
- data/lib/splitclient-rb/cache/hashers/impression_hasher.rb +34 -0
- data/lib/splitclient-rb/cache/observers/impression_observer.rb +22 -0
- data/lib/splitclient-rb/cache/observers/noop_impression_observer.rb +10 -0
- data/lib/splitclient-rb/cache/repositories/events/memory_repository.rb +45 -0
- data/lib/splitclient-rb/cache/repositories/events/redis_repository.rb +35 -0
- data/lib/splitclient-rb/cache/repositories/events_repository.rb +61 -0
- data/lib/splitclient-rb/cache/repositories/flag_sets/memory_repository.rb +40 -0
- data/lib/splitclient-rb/cache/repositories/flag_sets/redis_repository.rb +49 -0
- data/lib/splitclient-rb/cache/repositories/impressions/memory_repository.rb +56 -0
- data/lib/splitclient-rb/cache/repositories/impressions/redis_repository.rb +57 -0
- data/lib/splitclient-rb/cache/repositories/impressions_repository.rb +23 -0
- data/lib/splitclient-rb/cache/repositories/repository.rb +24 -0
- data/lib/splitclient-rb/cache/repositories/rule_based_segments_repository.rb +136 -0
- data/lib/splitclient-rb/cache/repositories/segments_repository.rb +124 -0
- data/lib/splitclient-rb/cache/repositories/splits_repository.rb +296 -0
- data/lib/splitclient-rb/cache/routers/impression_router.rb +60 -0
- data/lib/splitclient-rb/cache/senders/events_sender.rb +42 -0
- data/lib/splitclient-rb/cache/senders/impressions_adapter/memory_sender.rb +71 -0
- data/lib/splitclient-rb/cache/senders/impressions_adapter/redis_sender.rb +69 -0
- data/lib/splitclient-rb/cache/senders/impressions_count_sender.rb +43 -0
- data/lib/splitclient-rb/cache/senders/impressions_formatter.rb +95 -0
- data/lib/splitclient-rb/cache/senders/impressions_sender.rb +52 -0
- data/lib/splitclient-rb/cache/senders/impressions_sender_adapter.rb +21 -0
- data/lib/splitclient-rb/cache/senders/localhost_repo_cleaner.rb +47 -0
- data/lib/splitclient-rb/cache/stores/localhost_split_builder.rb +95 -0
- data/lib/splitclient-rb/cache/stores/localhost_split_store.rb +110 -0
- data/lib/splitclient-rb/cache/stores/store_utils.rb +13 -0
- data/lib/splitclient-rb/clients/split_client.rb +530 -0
- data/lib/splitclient-rb/constants.rb +16 -0
- data/lib/splitclient-rb/engine/api/client.rb +87 -0
- data/lib/splitclient-rb/engine/api/events.rb +57 -0
- data/lib/splitclient-rb/engine/api/faraday_middleware/gzip.rb +58 -0
- data/lib/splitclient-rb/engine/api/impressions.rb +79 -0
- data/lib/splitclient-rb/engine/api/segments.rb +78 -0
- data/lib/splitclient-rb/engine/api/splits.rb +139 -0
- data/lib/splitclient-rb/engine/api/telemetry_api.rb +47 -0
- data/lib/splitclient-rb/engine/auth_api_client.rb +100 -0
- data/lib/splitclient-rb/engine/back_off.rb +26 -0
- data/lib/splitclient-rb/engine/common/impressions_counter.rb +45 -0
- data/lib/splitclient-rb/engine/common/impressions_manager.rb +165 -0
- data/lib/splitclient-rb/engine/common/noop_impressions_counter.rb +27 -0
- data/lib/{splitclient-engine → splitclient-rb/engine}/evaluator/splitter.rb +35 -22
- data/lib/splitclient-rb/engine/events/events_delivery.rb +20 -0
- data/lib/splitclient-rb/engine/events/events_manager.rb +194 -0
- data/lib/splitclient-rb/engine/events/events_manager_config.rb +96 -0
- data/lib/splitclient-rb/engine/events/events_task.rb +50 -0
- data/lib/splitclient-rb/engine/events/noop_events_queue.rb +13 -0
- data/lib/splitclient-rb/engine/fallback_treatment_calculator.rb +48 -0
- data/lib/splitclient-rb/engine/impressions/noop_unique_keys_tracker.rb +17 -0
- data/lib/splitclient-rb/engine/impressions/unique_keys_tracker.rb +144 -0
- data/lib/{splitclient-engine → splitclient-rb/engine}/matchers/all_keys_matcher.rb +10 -21
- data/lib/splitclient-rb/engine/matchers/between_matcher.rb +47 -0
- data/lib/splitclient-rb/engine/matchers/between_semver_matcher.rb +33 -0
- data/lib/{splitclient-engine → splitclient-rb/engine}/matchers/combiners.rb +4 -6
- data/lib/splitclient-rb/engine/matchers/combining_matcher.rb +80 -0
- data/lib/splitclient-rb/engine/matchers/contains_all_matcher.rb +20 -0
- data/lib/splitclient-rb/engine/matchers/contains_any_matcher.rb +16 -0
- data/lib/splitclient-rb/engine/matchers/contains_matcher.rb +43 -0
- data/lib/splitclient-rb/engine/matchers/dependency_matcher.rb +26 -0
- data/lib/splitclient-rb/engine/matchers/ends_with_matcher.rb +42 -0
- data/lib/splitclient-rb/engine/matchers/equal_to_boolean_matcher.rb +37 -0
- data/lib/splitclient-rb/engine/matchers/equal_to_matcher.rb +44 -0
- data/lib/splitclient-rb/engine/matchers/equal_to_semver_matcher.rb +28 -0
- data/lib/splitclient-rb/engine/matchers/equal_to_set_matcher.rb +16 -0
- data/lib/splitclient-rb/engine/matchers/greater_than_or_equal_to_matcher.rb +43 -0
- data/lib/splitclient-rb/engine/matchers/greater_than_or_equal_to_semver_matcher.rb +28 -0
- data/lib/splitclient-rb/engine/matchers/in_list_semver_matcher.rb +36 -0
- data/lib/splitclient-rb/engine/matchers/less_than_or_equal_to_matcher.rb +43 -0
- data/lib/splitclient-rb/engine/matchers/less_than_or_equal_to_semver_matcher.rb +28 -0
- data/lib/splitclient-rb/engine/matchers/matcher.rb +52 -0
- data/lib/splitclient-rb/engine/matchers/matches_string_matcher.rb +29 -0
- data/lib/splitclient-rb/engine/matchers/negation_matcher.rb +47 -0
- data/lib/splitclient-rb/engine/matchers/part_of_set_matcher.rb +22 -0
- data/lib/splitclient-rb/engine/matchers/prerequisites_matcher.rb +31 -0
- data/lib/splitclient-rb/engine/matchers/rule_based_segment_matcher.rb +78 -0
- data/lib/splitclient-rb/engine/matchers/semver.rb +201 -0
- data/lib/splitclient-rb/engine/matchers/set_matcher.rb +27 -0
- data/lib/splitclient-rb/engine/matchers/starts_with_matcher.rb +40 -0
- data/lib/splitclient-rb/engine/matchers/user_defined_segment_matcher.rb +28 -0
- data/lib/splitclient-rb/engine/matchers/whitelist_matcher.rb +66 -0
- data/lib/splitclient-rb/engine/metrics/binary_search_latency_tracker.rb +66 -0
- data/lib/splitclient-rb/engine/models/evaluation_options.rb +9 -0
- data/lib/splitclient-rb/engine/models/event_active_subscriptions.rb +14 -0
- data/lib/splitclient-rb/engine/models/events_metadata.rb +10 -0
- data/lib/splitclient-rb/engine/models/fallback_treatment.rb +11 -0
- data/lib/splitclient-rb/engine/models/fallback_treatments_configuration.rb +36 -0
- data/lib/splitclient-rb/engine/models/label.rb +10 -0
- data/lib/splitclient-rb/engine/models/sdk_event.rb +4 -0
- data/lib/splitclient-rb/engine/models/sdk_event_type.rb +4 -0
- data/lib/splitclient-rb/engine/models/sdk_internal_event.rb +8 -0
- data/lib/splitclient-rb/engine/models/sdk_internal_event_notification.rb +16 -0
- data/lib/splitclient-rb/engine/models/segment_type.rb +4 -0
- data/lib/splitclient-rb/engine/models/split.rb +17 -0
- data/lib/splitclient-rb/engine/models/split_http_response.rb +19 -0
- data/lib/splitclient-rb/engine/models/treatment.rb +3 -0
- data/lib/splitclient-rb/engine/models/valid_sdk_event.rb +14 -0
- data/lib/splitclient-rb/engine/parser/condition.rb +271 -0
- data/lib/splitclient-rb/engine/parser/evaluator.rb +112 -0
- data/lib/{splitclient-engine → splitclient-rb/engine}/parser/partition.rb +2 -4
- data/lib/splitclient-rb/engine/push_manager.rb +66 -0
- data/lib/splitclient-rb/engine/status_manager.rb +39 -0
- data/lib/splitclient-rb/engine/sync_manager.rb +183 -0
- data/lib/splitclient-rb/engine/synchronizer.rb +231 -0
- data/lib/splitclient-rb/exceptions.rb +26 -0
- data/lib/splitclient-rb/helpers/decryption_helper.rb +25 -0
- data/lib/splitclient-rb/helpers/evaluator_helper.rb +37 -0
- data/lib/splitclient-rb/helpers/repository_helper.rb +61 -0
- data/lib/splitclient-rb/helpers/thread_helper.rb +24 -0
- data/lib/splitclient-rb/helpers/util.rb +26 -0
- data/lib/splitclient-rb/managers/split_manager.rb +121 -0
- data/lib/splitclient-rb/spec.rb +9 -0
- data/lib/splitclient-rb/split_config.rb +591 -47
- data/lib/splitclient-rb/split_factory.rb +284 -0
- data/lib/splitclient-rb/split_factory_builder.rb +7 -0
- data/lib/splitclient-rb/split_factory_registry.rb +63 -0
- data/lib/splitclient-rb/split_logger.rb +23 -0
- data/lib/splitclient-rb/sse/event_source/client.rb +264 -0
- data/lib/splitclient-rb/sse/event_source/event_parser.rb +65 -0
- data/lib/splitclient-rb/sse/event_source/event_types.rb +15 -0
- data/lib/splitclient-rb/sse/event_source/stream_data.rb +22 -0
- data/lib/splitclient-rb/sse/notification_manager_keeper.rb +84 -0
- data/lib/splitclient-rb/sse/notification_processor.rb +48 -0
- data/lib/splitclient-rb/sse/sse_handler.rb +44 -0
- data/lib/splitclient-rb/sse/workers/segments_worker.rb +62 -0
- data/lib/splitclient-rb/sse/workers/splits_worker.rb +153 -0
- data/lib/splitclient-rb/telemetry/domain/constants.rb +48 -0
- data/lib/splitclient-rb/telemetry/domain/structs.rb +35 -0
- data/lib/splitclient-rb/telemetry/evaluation_consumer.rb +14 -0
- data/lib/splitclient-rb/telemetry/evaluation_producer.rb +21 -0
- data/lib/splitclient-rb/telemetry/init_consumer.rb +14 -0
- data/lib/splitclient-rb/telemetry/init_producer.rb +19 -0
- data/lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb +32 -0
- data/lib/splitclient-rb/telemetry/memory/memory_evaluation_producer.rb +24 -0
- data/lib/splitclient-rb/telemetry/memory/memory_init_consumer.rb +28 -0
- data/lib/splitclient-rb/telemetry/memory/memory_init_producer.rb +34 -0
- data/lib/splitclient-rb/telemetry/memory/memory_runtime_consumer.rb +119 -0
- data/lib/splitclient-rb/telemetry/memory/memory_runtime_producer.rb +87 -0
- data/lib/splitclient-rb/telemetry/memory/memory_synchronizer.rb +213 -0
- data/lib/splitclient-rb/telemetry/redis/redis_evaluation_producer.rb +38 -0
- data/lib/splitclient-rb/telemetry/redis/redis_init_producer.rb +37 -0
- data/lib/splitclient-rb/telemetry/redis/redis_synchronizer.rb +27 -0
- data/lib/splitclient-rb/telemetry/runtime_consumer.rb +25 -0
- data/lib/splitclient-rb/telemetry/runtime_producer.rb +25 -0
- data/lib/splitclient-rb/telemetry/storages/memory.rb +159 -0
- data/lib/splitclient-rb/telemetry/sync_task.rb +36 -0
- data/lib/splitclient-rb/telemetry/synchronizer.rb +33 -0
- data/lib/splitclient-rb/utilitites.rb +49 -0
- data/lib/splitclient-rb/validators.rb +361 -0
- data/lib/splitclient-rb/version.rb +1 -1
- data/lib/splitclient-rb.rb +177 -25
- data/sonar-project.properties +6 -0
- data/splitclient-rb.gemspec +53 -26
- data/tasks/benchmark_get_treatment.rake +31 -17
- data/tasks/irb.rake +6 -0
- metadata +411 -86
- data/NEWS +0 -9
- data/lib/splitclient-cache/local_store.rb +0 -45
- data/lib/splitclient-engine/impressions/impressions.rb +0 -79
- data/lib/splitclient-engine/matchers/between_matcher.rb +0 -48
- data/lib/splitclient-engine/matchers/combining_matcher.rb +0 -94
- data/lib/splitclient-engine/matchers/equal_to_matcher.rb +0 -48
- data/lib/splitclient-engine/matchers/greater_than_or_equal_to_matcher.rb +0 -48
- data/lib/splitclient-engine/matchers/less_than_or_equal_to_matcher.rb +0 -48
- data/lib/splitclient-engine/matchers/negation_matcher.rb +0 -54
- data/lib/splitclient-engine/matchers/user_defined_segment_matcher.rb +0 -61
- data/lib/splitclient-engine/matchers/whitelist_matcher.rb +0 -64
- data/lib/splitclient-engine/metrics/binary_search_latency_tracker.rb +0 -122
- data/lib/splitclient-engine/metrics/metrics.rb +0 -158
- data/lib/splitclient-engine/parser/condition.rb +0 -143
- data/lib/splitclient-engine/parser/segment.rb +0 -84
- data/lib/splitclient-engine/parser/segment_parser.rb +0 -46
- data/lib/splitclient-engine/parser/split.rb +0 -68
- data/lib/splitclient-engine/parser/split_adapter.rb +0 -433
- data/lib/splitclient-engine/parser/split_parser.rb +0 -139
- data/lib/splitclient-engine/partitions/treatments.rb +0 -40
- data/lib/splitclient-rb/split_client.rb +0 -156
- data/lib/splitclient-rb_utilitites.rb +0 -26
- data/tasks/console.rake +0 -4
- data/tasks/rspec.rake +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: fa72e6febcfebdd1571db001701ff1ff09ee710e55cd23f0426f9af9930aced2
|
|
4
|
+
data.tar.gz: 429f8b7bd743faebe5c162cfeb7783843bd07cc8cd51f20f8549e4ffbfbc9755
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 360996c5a1e3e5902d5b71713ed6092df144370fa22a9ffe4456834d0350d7f7e3e04d558fe74cc6833ace13db48a248139024b91efd923ed7a8a62c599d4b83
|
|
7
|
+
data.tar.gz: 45cb3c63979482e66976dbdf2eae62512cbb30310ba4b7809934e397e1e8548c009170471d0765ebd9f12711530a764bd40683f557e2d1b3e3ff848be161b9bd
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @splitio/sdk
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
branches:
|
|
5
|
+
- development
|
|
6
|
+
- master
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- development
|
|
10
|
+
- master
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
test:
|
|
18
|
+
name: Test
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
services:
|
|
21
|
+
redis:
|
|
22
|
+
image: redis
|
|
23
|
+
ports:
|
|
24
|
+
- 6379:6379
|
|
25
|
+
strategy:
|
|
26
|
+
fail-fast: false
|
|
27
|
+
matrix:
|
|
28
|
+
version:
|
|
29
|
+
- '2.5.0'
|
|
30
|
+
- '3.2.2'
|
|
31
|
+
|
|
32
|
+
steps:
|
|
33
|
+
- name: Checkout code
|
|
34
|
+
uses: actions/checkout@v3
|
|
35
|
+
with:
|
|
36
|
+
fetch-depth: 0
|
|
37
|
+
|
|
38
|
+
- name: Set up Java
|
|
39
|
+
uses: actions/setup-java@v2
|
|
40
|
+
with:
|
|
41
|
+
java-version: 17
|
|
42
|
+
distribution: "temurin"
|
|
43
|
+
|
|
44
|
+
- name: Setup Ruby ${{ matrix.version }}
|
|
45
|
+
uses: ruby/setup-ruby@v1
|
|
46
|
+
with:
|
|
47
|
+
ruby-version: ${{ matrix.version }}
|
|
48
|
+
|
|
49
|
+
- name: Install dependencies
|
|
50
|
+
run: bundle install
|
|
51
|
+
|
|
52
|
+
- name: Run tests
|
|
53
|
+
run: bundle exec rake
|
|
54
|
+
|
|
55
|
+
- name: Fix code coverage paths
|
|
56
|
+
working-directory: coverage
|
|
57
|
+
run: |
|
|
58
|
+
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' .resultset.json
|
|
59
|
+
ruby -rjson -e 'sqube = JSON.load(File.read(".resultset.json"))["RSpec"]["coverage"].transform_values {|lines| lines["lines"]}; total = { "RSpec" => { "coverage" => sqube, "timestamp" => Time.now.to_i }}; puts JSON.dump(total)' > .resultset.sonarqube.json
|
|
60
|
+
|
|
61
|
+
- name: Set VERSION env
|
|
62
|
+
run: echo "VERSION=$(cat lib/splitclient-rb/version.rb | grep VERSION | awk -F "'" '{print $2}')" >> $GITHUB_ENV
|
|
63
|
+
|
|
64
|
+
- name: SonarQube Scan (Push)
|
|
65
|
+
if: matrix.version == '3.2.2' && github.event_name == 'push'
|
|
66
|
+
uses: SonarSource/sonarcloud-github-action@v5.0.0
|
|
67
|
+
env:
|
|
68
|
+
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
|
69
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
70
|
+
with:
|
|
71
|
+
projectBaseDir: .
|
|
72
|
+
args: >
|
|
73
|
+
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
|
|
74
|
+
-Dsonar.projectVersion=${{ env.VERSION }}
|
|
75
|
+
|
|
76
|
+
- name: SonarQube Scan (Pull Request)
|
|
77
|
+
if: matrix.version == '3.2.2' && github.event_name == 'pull_request'
|
|
78
|
+
uses: SonarSource/sonarcloud-github-action@v5.0.0
|
|
79
|
+
env:
|
|
80
|
+
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
|
81
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
82
|
+
with:
|
|
83
|
+
projectBaseDir: .
|
|
84
|
+
args: >
|
|
85
|
+
-Dsonar.java.source=17
|
|
86
|
+
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
|
|
87
|
+
-Dsonar.projectVersion=${{ env.VERSION }}
|
|
88
|
+
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
|
|
89
|
+
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
|
|
90
|
+
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: Update License Year
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "0 3 1 1 *" # 03:00 AM on January 1
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
pull-requests: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout
|
|
16
|
+
uses: actions/checkout@v2
|
|
17
|
+
with:
|
|
18
|
+
fetch-depth: 0
|
|
19
|
+
|
|
20
|
+
- name: Set Current year
|
|
21
|
+
run: "echo CURRENT=$(date +%Y) >> $GITHUB_ENV"
|
|
22
|
+
|
|
23
|
+
- name: Set Previous Year
|
|
24
|
+
run: "echo PREVIOUS=$(($CURRENT-1)) >> $GITHUB_ENV"
|
|
25
|
+
|
|
26
|
+
- name: Update LICENSE
|
|
27
|
+
uses: jacobtomlinson/gha-find-replace@v2
|
|
28
|
+
with:
|
|
29
|
+
find: ${{ env.PREVIOUS }}
|
|
30
|
+
replace: ${{ env.CURRENT }}
|
|
31
|
+
include: "LICENSE"
|
|
32
|
+
regex: false
|
|
33
|
+
|
|
34
|
+
- name: Commit files
|
|
35
|
+
run: |
|
|
36
|
+
git config user.name 'github-actions[bot]'
|
|
37
|
+
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
|
38
|
+
git commit -m "Updated License Year" -a
|
|
39
|
+
|
|
40
|
+
- name: Create Pull Request
|
|
41
|
+
uses: peter-evans/create-pull-request@v3
|
|
42
|
+
with:
|
|
43
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
44
|
+
title: Update License Year
|
|
45
|
+
branch: update-license
|
data/.gitignore
CHANGED
|
@@ -36,3 +36,23 @@ Gemfile.lock
|
|
|
36
36
|
|
|
37
37
|
# Ignore Byebug command history file.
|
|
38
38
|
.byebug_history
|
|
39
|
+
|
|
40
|
+
# Ignore built extensions
|
|
41
|
+
lib/murmurhash/murmurhash.bundle
|
|
42
|
+
lib/murmurhash/murmurhash.so
|
|
43
|
+
|
|
44
|
+
ext/murmurhash/murmurhash.bundle
|
|
45
|
+
ext/murmurhash/murmurhash.so
|
|
46
|
+
|
|
47
|
+
# Ignore dump.rdb
|
|
48
|
+
dump.rdb
|
|
49
|
+
|
|
50
|
+
# Ignore Mac OS generated files
|
|
51
|
+
.DS_Store
|
|
52
|
+
|
|
53
|
+
# Ignore Appraisal gemfile.lock files
|
|
54
|
+
/gemfiles/*.gemfile.lock
|
|
55
|
+
|
|
56
|
+
release.sh
|
|
57
|
+
|
|
58
|
+
.scannerwork
|
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Documentation:
|
|
2
|
+
Enabled: false
|
|
3
|
+
|
|
4
|
+
Metrics/AbcSize:
|
|
5
|
+
Max: 26
|
|
6
|
+
Exclude:
|
|
7
|
+
- lib/splitclient-rb/telemetry/memory/memory_synchronizer.rb
|
|
8
|
+
|
|
9
|
+
Metrics/MethodLength:
|
|
10
|
+
Max: 20
|
|
11
|
+
Exclude:
|
|
12
|
+
- lib/splitclient-rb/telemetry/memory/memory_synchronizer.rb
|
|
13
|
+
- lib/splitclient-rb/engine/sync_manager.rb
|
|
14
|
+
|
|
15
|
+
Metrics/ClassLength:
|
|
16
|
+
Max: 150
|
|
17
|
+
Exclude:
|
|
18
|
+
- lib/splitclient-rb/telemetry/memory/memory_synchronizer.rb
|
|
19
|
+
|
|
20
|
+
Metrics/CyclomaticComplexity:
|
|
21
|
+
Max: 11
|
|
22
|
+
|
|
23
|
+
Metrics/ParameterLists:
|
|
24
|
+
Max: 8
|
|
25
|
+
Exclude:
|
|
26
|
+
- lib/splitclient-rb/engine/sync_manager.rb
|
|
27
|
+
|
|
28
|
+
Metrics/LineLength:
|
|
29
|
+
Max: 135
|
|
30
|
+
|
|
31
|
+
Metrics/BlockLength:
|
|
32
|
+
Exclude:
|
|
33
|
+
- spec/**/*
|
|
34
|
+
- splitclient-rb.gemspec
|
|
35
|
+
|
|
36
|
+
Naming/FileName:
|
|
37
|
+
Exclude:
|
|
38
|
+
- splitclient-rb.gemspec
|
|
39
|
+
|
|
40
|
+
Style/OptionalBooleanParameter:
|
|
41
|
+
Exclude:
|
|
42
|
+
- lib/splitclient-rb/engine/matchers/between_matcher.rb
|
|
43
|
+
- lib/splitclient-rb/engine/matchers/combining_matcher.rb
|
|
44
|
+
- lib/splitclient-rb/engine/matchers/equal_to_matcher.rb
|
|
45
|
+
- lib/splitclient-rb/engine/matchers/less_than_or_equal_to_matcher.rb
|
|
46
|
+
- lib/splitclient-rb/engine/matchers/greater_than_or_equal_to_matcher.rb
|
|
47
|
+
|
|
48
|
+
Style/HashTransformKeys:
|
|
49
|
+
Exclude:
|
|
50
|
+
- lib/splitclient-rb/engine/matchers/combining_matcher.rb
|
|
51
|
+
|
|
52
|
+
Style/RedundantReturn:
|
|
53
|
+
Exclude:
|
|
54
|
+
- lib/splitclient-rb/engine/common/impressions_manager.rb
|
|
55
|
+
|
|
56
|
+
AllCops:
|
|
57
|
+
TargetRubyVersion: 2.5
|
|
58
|
+
Exclude:
|
|
59
|
+
- gemfiles/* # excluded as appraisal generates them with errors
|
|
60
|
+
- lib/*
|
|
61
|
+
- lib/murmurhash/**/*
|
|
62
|
+
- lib/splitclient-rb/*
|
|
63
|
+
- lib/splitclient-rb/cache/**/*
|
|
64
|
+
- lib/splitclient-rb/clients/**/*
|
|
65
|
+
- lib/splitclient-rb/managers/**/*
|
|
66
|
+
- lib/splitclient-rb/engine/api/**/*
|
|
67
|
+
- lib/splitclient-rb/engine/evaluator/**/*
|
|
68
|
+
- lib/splitclient-rb/engine/metrics/**/*
|
|
69
|
+
- lib/splitclient-rb/engine/models/**/*
|
|
70
|
+
- lib/splitclient-rb/engine/parser/**/*
|
|
71
|
+
- spec/telemetry/synchronizer_spec.rb
|
|
72
|
+
- lib/splitclient-rb/engine/synchronizer.rb
|
|
73
|
+
- tmp/**/*
|
|
74
|
+
- lib/splitclient-rb/sse/event_source/client.rb
|
|
75
|
+
- spec/**/*
|
|
76
|
+
- .simplecov
|
data/.simplecov
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
SimpleCov.start { add_filter %r{^/spec/} }
|
data/CHANGES.txt
CHANGED
|
@@ -1,8 +1,367 @@
|
|
|
1
|
-
|
|
1
|
+
CHANGES
|
|
2
|
+
|
|
3
|
+
8.11.0 (Mar, 12, 2026)
|
|
4
|
+
- Added the ability to listen to different events triggered by the SDK. Read more in our docs.
|
|
5
|
+
- SDK_UPDATE notify when a flag or user segment has changed
|
|
6
|
+
- SDK_READY notify when the SDK is ready to evaluate
|
|
7
|
+
|
|
8
|
+
8.10.1 (Jan 28, 2025)
|
|
9
|
+
- Fixed rule-based segment matcher to exit when a conition is met.
|
|
10
|
+
- Fixed impressions properties format in redis mode.
|
|
11
|
+
|
|
12
|
+
8.10.0 (Nov 28, 2025)
|
|
13
|
+
- Updated socketry gem used in streaming feature with built-in socket lib.
|
|
14
|
+
|
|
15
|
+
8.9.0 (Oct 8, 2025)
|
|
16
|
+
- Added new configuration for Fallback Treatments, which allows setting a treatment value and optional config to be returned in place of "control", either globally or by flag. Read more in our docs.
|
|
17
|
+
|
|
18
|
+
8.8.0 (Sep 26, 2025)
|
|
19
|
+
- Added a maximum size payload when posting unique keys telemetry in batches
|
|
20
|
+
|
|
21
|
+
8.7.0 (Aug 1, 2025)
|
|
22
|
+
- Added a new optional argument to the client `getTreatment` methods to allow passing additional evaluation options, such as a map of properties to append to the generated impressions sent to Split backend. Read more in our docs.
|
|
23
|
+
|
|
24
|
+
8.6.0 (Jun 17, 2025)
|
|
25
|
+
- Added support for rule-based segments. These segments determine membership at runtime by evaluating their configured rules against the user attributes provided to the SDK.
|
|
26
|
+
- Added support for feature flag prerequisites. This allows customers to define dependency conditions between flags, which are evaluated before any allowlists or targeting rules.
|
|
27
|
+
|
|
28
|
+
8.5.0 (Jan 17, 2025)
|
|
29
|
+
- Fixed high cpu usage when unique keys are cleared every 24 hours.
|
|
30
|
+
- Added support for the new impressions tracking toggle available on feature flags, both respecting the setting and including the new field being returned on SplitView type objects. Read more in our docs.
|
|
31
|
+
|
|
32
|
+
8.4.0 (May 3, 2024)
|
|
33
|
+
- Fixed issue preventing Impressopns and Events posting if client.destroy is called before the post threads started
|
|
34
|
+
- Added support for targeting rules based on semantic versions (https://semver.org/).
|
|
35
|
+
|
|
36
|
+
8.3.1 (Mar 22, 2024)
|
|
37
|
+
- Fixed ruby process hanging due to failed thread.join command, when calling destroy and a http request still active.
|
|
38
|
+
- Fixed streaming notification parser. Issue ref: https://github.com/splitio/ruby-client/issues/511
|
|
39
|
+
|
|
40
|
+
8.3.0 (Dec 11, 2023)
|
|
41
|
+
- Added support for Flag Sets on the SDK, which enables grouping feature flags and interacting with the group rather than individually (more details in our documentation):
|
|
42
|
+
- Added new variations of the get treatment methods to support evaluating flags in given flag set/s.
|
|
43
|
+
- get_treatments_by_flag_set and get_treatments_by_flag_sets
|
|
44
|
+
- get_treatments_with_config_by_flag_set and get_treatments_with_config_by_flag_sets
|
|
45
|
+
- Added a new optional Split Filter configuration option. This allows the SDK and Split services to only synchronize the flags in the specified flag sets, avoiding unused or unwanted flags from being synced on the SDK instance, bringing all the benefits from a reduced payload.
|
|
46
|
+
- Note: Only applicable when the SDK is in charge of the rollout data synchronization. When not applicable, the SDK will log a warning on init.
|
|
47
|
+
- Added `default_treatment` and `sets` property to the `split_view` object returned by the `split` and `splits` methods of the SDK manager.
|
|
48
|
+
|
|
49
|
+
8.2.0 (Jul 18, 2023)
|
|
50
|
+
- Improved streaming architecture implementation to apply feature flag updates from the notification received which is now enhanced, improving efficiency and reliability of the whole update system.
|
|
51
|
+
|
|
52
|
+
8.1.2 (May 15, 2023)
|
|
53
|
+
- Updated terminology on the SDKs codebase to be more aligned with current standard without causing a breaking change. The core change is the term split for feature flag on things like logs and IntelliSense comments.
|
|
54
|
+
|
|
55
|
+
8.1.1 (Mar 17, 2023)
|
|
56
|
+
- Added retries with backoff when the sdk tries to connect to the Streaming service and it is not available.
|
|
57
|
+
- Updated the way that the sdk write mtks in redis.
|
|
58
|
+
- Fixed calculation of timeUntilReady in telemetry.
|
|
59
|
+
|
|
60
|
+
8.1.0 (Oct 5, 2022)
|
|
61
|
+
- Added a new impressions mode for the SDK called NONE , to be used in factory when there is no desire to capture impressions on an SDK factory to feed Split's analytics engine. Running NONE mode, the SDK will only capture unique keys evaluated for a particular feature flag instead of full blown impressions.
|
|
62
|
+
|
|
63
|
+
8.0.1 (Jul 20, 2022)
|
|
64
|
+
- Updated dependencies to support faraday > 2.0
|
|
65
|
+
|
|
66
|
+
8.0.0 (May 10, 2022)
|
|
67
|
+
- BREAKING CHANGE: Deprecated support for ruby 2.3 and 2.4 versions. The minimum ruby version required is 2.5 now.
|
|
68
|
+
- Updated redis command for config telemetry, using hset instead of rpush now.
|
|
69
|
+
- Updated dependencies:
|
|
70
|
+
- rake to ~> 13.0
|
|
71
|
+
- faraday to >= 1.1, < 2.0
|
|
72
|
+
|
|
73
|
+
7.3.4 (Feb 21, 2022)
|
|
74
|
+
- Updated streaming events architecture with a new queue logic.
|
|
75
|
+
- Fixed redis integration Pipelining command deprecation warning.
|
|
76
|
+
|
|
77
|
+
7.3.3 (Jan 28, 2022)
|
|
78
|
+
- Fixed edge cases where the sdk lost streaming connection.
|
|
79
|
+
- Updated default auth service url to https://auth.split.io/api/v2/auth
|
|
80
|
+
- Updated dependencies:
|
|
81
|
+
- faraday to >= 0.8, < 2.0
|
|
82
|
+
- net-http-persistent to >= 2.9, < 5.0
|
|
83
|
+
- redis to >= 4.0.0, < 5.0
|
|
84
|
+
- socketry to >= 0.4, < 1.0
|
|
85
|
+
- thread_safe to ~> 0.3
|
|
86
|
+
|
|
87
|
+
7.3.2 (Dec 10, 2021)
|
|
88
|
+
- Updated the readiness flow to be more consistent with the other sdks and improve the readiness time.
|
|
89
|
+
- Updated the name of telemety key latencies in Redis.
|
|
90
|
+
|
|
91
|
+
7.3.1 (Jul 26, 2021)
|
|
92
|
+
- Updated the synchronization flow to be more reliable in the event of an edge case generating delay in cache purge propagation, keeping the SDK cache properly synced.
|
|
93
|
+
|
|
94
|
+
7.3.0 (Jul 12, 2021)
|
|
95
|
+
- Updated SDK telemetry storage, metrics and updater to be more effective and send less often.
|
|
96
|
+
- Fixed high cpu usage when api key is wrong.
|
|
97
|
+
|
|
98
|
+
7.2.3 (Feb 24, 2021)
|
|
99
|
+
- Fixed missing segment fetch after an SPLIT_UPDATE.
|
|
100
|
+
- Updated streaming logic to support multiregion.
|
|
101
|
+
- Updated sse client connection logic to read confirmation event.
|
|
102
|
+
- Updated naming of retryable erros.
|
|
103
|
+
|
|
104
|
+
7.2.2 (Dec 18, 2020)
|
|
105
|
+
- Fixed issue: undefined local variable or method post_impressions_count
|
|
106
|
+
|
|
107
|
+
7.2.1 (Oct 23, 2020)
|
|
108
|
+
- Updated redis dependency to >= 4.2.2.
|
|
109
|
+
- Updated ably error handling.
|
|
110
|
+
|
|
111
|
+
7.2.0 (Sep 25, 2020)
|
|
112
|
+
- Added impressions dedupe logic to avoid sending duplicated impressions:
|
|
113
|
+
- Added `OPTIMIZED` and `DEBUG` modes in order to enabling/disabling how impressions are going to be sent into Split servers,
|
|
114
|
+
- `OPTIMIZED`: will send unique impressions in a timeframe in order to reduce how many times impressions are posted to Split.
|
|
115
|
+
- `DEBUG`: will send every impression generated to Split.
|
|
116
|
+
|
|
117
|
+
7.1.3 (Jul 31, 2020)
|
|
118
|
+
- Updated rake development dependency to ~> 12.3.3.
|
|
119
|
+
|
|
120
|
+
7.1.2 (Jun 15, 2020)
|
|
121
|
+
- Fixed uninitialized constant LocalhostSplitStore::YAML for console apps.
|
|
122
|
+
- Updated default_streaming_enabled to true.
|
|
123
|
+
|
|
124
|
+
7.1.1 (May 19, 2020)
|
|
125
|
+
- Updated streaming domain.
|
|
126
|
+
|
|
127
|
+
7.1.0 (Apr 30, 2020)
|
|
128
|
+
- Added support for the new Split streaming architecture. When enabled, the SDK will not poll for updates but instead receive notifications every time there's a change in your environments, allowing to process those much quicker. If disabled (default) or in the event of an issue, the SDK will fallback to the known polling mechanism to provide a seamless experience.
|
|
129
|
+
|
|
130
|
+
7.0.3 (Jan 20, 2020)
|
|
131
|
+
- Added integration tests.
|
|
132
|
+
- Fixed impressions labels.
|
|
133
|
+
|
|
134
|
+
7.0.2 (Nov 11, 2019)
|
|
135
|
+
- Fixed an issue about empty logs.
|
|
136
|
+
- Fixed an issue about reducing scan commands in redis.
|
|
137
|
+
|
|
138
|
+
7.0.1 (Oct 31, 2019)
|
|
139
|
+
- Updated localhost mode so that parsing of test files results in JSON data for splits analogous to that returned by the Split backend.
|
|
140
|
+
- Updated localhost mode to parse the mock data into Split objects to keep differences in operation to a minimum.
|
|
141
|
+
- Removed specific spare code dealing with localhost operations.
|
|
142
|
+
- Removed the disable_impressions configuration param.
|
|
143
|
+
- Fixed an issue about Event properties were not sent to be.
|
|
144
|
+
- Added ip_addresses_enabled to enable/disable sending MachineName and MachineIP headers when data is posted to Split Servers.
|
|
145
|
+
- Fixed an issue about attributes in matchers.
|
|
146
|
+
- Fixed an issue about trying to access a nil property when sending telemetry metrics.
|
|
147
|
+
|
|
148
|
+
7.0.0 (Aug 23, 2019)
|
|
149
|
+
- BREAKING CHANGE: block_until_ready is now a method in both split_client and split_manager that needs to be explicitly called. The block_until_ready parameter is now ignored if passed in the configuration, and defaults to 15s unless passed as a parameter of the block_until_ready method.
|
|
150
|
+
- Added warning to track calls when traffic type does not belong to an existing split (only issued in the online client and when SDK is ready).
|
|
151
|
+
- Added warning to the get_treatment's method family when split does not exist in the current environment (only issued by online client and when SDK is ready).
|
|
152
|
+
- Added warning to the split_manager's split method when split does not exist in the current environment (only issued by online client and when SDK is ready).
|
|
153
|
+
- Added ability to create multiple split_factory instances. Added factory counts and warnings.
|
|
154
|
+
- Added SDK not ready impressions label.
|
|
155
|
+
- Changed the splits method implementation in the splits_repository to make use of get_splits, which outperforms the current implementation.
|
|
156
|
+
|
|
157
|
+
6.4.1 (Jul 26, 2019)
|
|
158
|
+
- Fixed an issue in the latency metrics format preventing the synchronizer from correctly picking them up (consumer mode only). Old keys will be deleted on SDK startup.
|
|
159
|
+
|
|
160
|
+
6.4.0 (Jul 05, 2019)
|
|
161
|
+
- Added properties to track method.
|
|
162
|
+
|
|
163
|
+
6.3.0 (Apr 30, 2019)
|
|
164
|
+
- Added Dynamic Configurations support through two new methods that mimick the regular ones, changing the type of what is returned.
|
|
165
|
+
- get_treatment_with_config: Same as get_treatment but returning the treatment with it's config.
|
|
166
|
+
- get_treatments_with_config: Same as get_treatments, but instead of a map of string it returns a map of treatments with config.
|
|
167
|
+
- Added configs to SplitViews returned by the manager module.
|
|
168
|
+
- Updated localhost mode. Now besides supporting the old text files with `.split` extension (to be deprecated soon), we support YAML (.yaml/.yml) files where you can
|
|
169
|
+
define configurations for your treatments and also whitelisted keys. Read more in our docs!
|
|
170
|
+
|
|
171
|
+
6.2.0 (Mar 7th, 2019)
|
|
172
|
+
- Reworked SplitClient#destroy to ensure events, impressions and metrics are sent to Split backend when called.
|
|
173
|
+
- Ensured destroy is called when keyboard interrupts are sent to the application
|
|
174
|
+
- Changed SDK blocker (and block_until_ready) to have no effect in consumer mode
|
|
175
|
+
- Added support for applications tied to Faraday < 0.13 and net-http-persistent 3 using a patched Faraday adapter
|
|
176
|
+
- Added documentation for input validation in detailed readme
|
|
177
|
+
- Changed SplitConfig#default_features_refresh_rate value to 5 seconds
|
|
178
|
+
|
|
179
|
+
6.1.0 (Feb 8th, 2019)
|
|
180
|
+
- Review input validation for client API methods. Better control and logging over nil, empty, numeric, and NaN parameters
|
|
181
|
+
- Added logging when block_until_ready is not set or api key is not provided
|
|
182
|
+
- Reviewed client API methods to log an error and return nil / empty when called after client was destroyed
|
|
183
|
+
- Update track regex and fix an error causing a partial match to pass as a valid event_type
|
|
184
|
+
- Add logging to #match? in matcher subclasses
|
|
185
|
+
- Fix simplecov configuration issue causing errors in coverage calculation
|
|
186
|
+
- Improve code coverage and decrease rubocop violation count
|
|
187
|
+
- Fix for issue causing redis_url parameter to be ignored and Redis to always default to REDIS_ENV environment variable
|
|
188
|
+
|
|
189
|
+
6.0.1 (Jan 7th, 2019)
|
|
190
|
+
- Fix an issue in events and impressions API calls log messages caused by a wrong variable name introduced in 6.0.0
|
|
191
|
+
|
|
192
|
+
6.0.0 (December 17th, 2018)
|
|
193
|
+
- BREAKING CHANGE: Change format used to store impressions in repositories to reduce the number of Redis operations. It requires an update of the Split Synchronizer to >2.0.0 if you're using Redis mode.
|
|
194
|
+
- Change `sender` and `store` classes to reuse Faraday connections, preventing issues with net-http-persistent 3.0
|
|
195
|
+
- Remove producer mode and make `memory + standalone` and `Redis + consumer` the only valid SDK modes. This is a breaking change
|
|
196
|
+
- Fix `evaluator` bucket calculation when traffic allocation is set to 1%
|
|
197
|
+
- Add cache wrapper to `segments_repository` and `splits_repository` to reduce the number of Redis operations
|
|
198
|
+
- Add `cache_ttl` and `max_cache_size` options to setup the memory cache wrapper when using redis
|
|
2
199
|
|
|
200
|
+
5.1.2 (October 26th, 2018)
|
|
201
|
+
- Add input validation for client API methods
|
|
202
|
+
|
|
203
|
+
5.1.1 (October 4th, 2018)
|
|
204
|
+
- Change get_treatments so that it sends a single latency metric
|
|
205
|
+
- Removed unused call to Redis#scan when adding latencies
|
|
206
|
+
- Removed Redis calls on initialization when SDK is set to consumer mode
|
|
207
|
+
- Change split_config approach so that every property has an accessor
|
|
208
|
+
- Removed @config parameter on most initializers
|
|
209
|
+
|
|
210
|
+
5.1.0 (September 10th, 2018)
|
|
211
|
+
- Change `get_api` to return only a Faraday response.
|
|
212
|
+
- Add `SplitLogger` to clean up logging code and reduce the complexity in several methods.
|
|
213
|
+
|
|
214
|
+
5.0.3 (August 13th, 2018)
|
|
215
|
+
- Add `impressions_bulk_size` option to set the max number of impressions to be sent to the Split backend on each post.
|
|
216
|
+
|
|
217
|
+
5.0.2 (July 31st, 2018)
|
|
218
|
+
- Prevents the impression thread from being started if a listener is not in place
|
|
219
|
+
|
|
220
|
+
5.0.1 (July 19th, 2018)
|
|
221
|
+
- Adds stop! method to the factory for gracefully stopping the SDK.
|
|
222
|
+
|
|
223
|
+
5.0.0 (May 18th, 2018)
|
|
224
|
+
- Fix bug where the sdk picked the wrong hashing algo. This is a breaking change.
|
|
225
|
+
|
|
226
|
+
4.5.2 (May 16th, 2018)
|
|
227
|
+
- do not return control when a split has custom attr and I don't pass attributes to get_treatment
|
|
228
|
+
|
|
229
|
+
4.5.1 (Mar 23rd, 2018)
|
|
230
|
+
- Fix Forwardable load issue
|
|
231
|
+
- Fix native extension path issue
|
|
232
|
+
- Add .jar executable to the gem
|
|
233
|
+
|
|
234
|
+
4.5.0 (Mar 2nd, 2018)
|
|
235
|
+
|
|
236
|
+
- Move MurmurHash3 implementation inside the gem
|
|
237
|
+
- Add native Java MurmurHash3 implementation -> now support JRuby
|
|
238
|
+
|
|
239
|
+
4.4.0 (Feb 5th, 2018)
|
|
240
|
+
- Add track API
|
|
241
|
+
|
|
242
|
+
4.3.3 (Feb 22th, 2018)
|
|
243
|
+
- Allow usage of Redis >= 3.2, not only ~> 3.2
|
|
244
|
+
|
|
245
|
+
4.3.2 (Dec 19th, 2017)
|
|
246
|
+
- Add DEFINITION_NOT_FOUND and rename NO_RULE_MATCHED labels
|
|
247
|
+
|
|
248
|
+
4.3.1 (Nov 10th, 2017)
|
|
249
|
+
- Do not throw exception when storing impressions on reids and it is not available. Returns CONTROL instead.
|
|
250
|
+
|
|
251
|
+
4.3.0 (Oct 13th, 2017)
|
|
252
|
+
- Add impression listener
|
|
253
|
+
- Add support for client shutdown (destroy())
|
|
254
|
+
- Add "time" to the routed impressions
|
|
255
|
+
- Add support to apply attribute matcher to the traffic type
|
|
256
|
+
- Add support for string matchers to match on matching keys
|
|
257
|
+
|
|
258
|
+
4.2.3 (August 4, 2017)
|
|
259
|
+
- Use ENV vars in producer
|
|
260
|
+
|
|
261
|
+
4.2.2 (July 28, 2017)
|
|
262
|
+
- Fix treatments array in SplitManager
|
|
263
|
+
|
|
264
|
+
4.2.1 (July 20, 2017)
|
|
265
|
+
- Coerce string to regexp for Regexp matcher
|
|
266
|
+
|
|
267
|
+
4.2.0 (July 18, 2017)
|
|
268
|
+
- Add new boolean/regexp matchers
|
|
269
|
+
- Add support for split dependency on other splits
|
|
270
|
+
- Pass bucketing_key to `match?` method
|
|
271
|
+
- Fix IP address fetching
|
|
272
|
+
- Remove unneeded dependencies (faraday_middleware, faraday-http-cache)
|
|
273
|
+
|
|
274
|
+
4.1.0 (April 16, 2017)
|
|
275
|
+
- Add new string/set matchers
|
|
276
|
+
- Use Rails logger if available. Now we do not pollute STDOUT by default
|
|
277
|
+
|
|
278
|
+
4.0.0
|
|
279
|
+
- Add support for murmur3 algo
|
|
280
|
+
- Optimize memory usage
|
|
281
|
+
|
|
282
|
+
3.3.0
|
|
283
|
+
- Add support for traffic allocation
|
|
284
|
+
|
|
285
|
+
3.2.4
|
|
286
|
+
- Fix Faraday compability issue (now compatible with Faraday 0.8.9)
|
|
287
|
+
- Provide an interface to run SplitAdapter(start and resume), can be used to resurrect threads in Unicorn and Passenger servers
|
|
288
|
+
- Allow passing non-string values to get_treatment/get_treatments
|
|
289
|
+
- Better logging when returning CONTROL and label:Exception as well as when restarting threads
|
|
290
|
+
- Add exception logging when failed to clear impressions keys or fetch impressions keys
|
|
291
|
+
- Fix Redis naming issues (key_name -> keyName)
|
|
292
|
+
- Fix negation matcher. Negation had not effect and was ignored.
|
|
293
|
+
|
|
294
|
+
3.2.3
|
|
295
|
+
- Fix Redis namespace issue to align with the spec
|
|
296
|
+
- Allocate less memory by not creating Split model to check if Split is archived
|
|
297
|
+
|
|
298
|
+
3.2.2
|
|
299
|
+
- Fix issue when segment_store was never invoked
|
|
300
|
+
|
|
301
|
+
3.2.0
|
|
302
|
+
- Add impression labeling
|
|
303
|
+
|
|
304
|
+
3.1.3
|
|
305
|
+
- Refactor SplitFactory - split it into separate mangers and client classes
|
|
306
|
+
- Refactor Utilities to comply style guide
|
|
307
|
+
- Allow to store block until ready flag in Redis
|
|
308
|
+
- rescue exception when posting impressions threads failed to prevent it to die
|
|
309
|
+
|
|
310
|
+
3.1.2
|
|
311
|
+
- Fix issue with complex key where get_treatment and get_treatments return different values.
|
|
312
|
+
|
|
313
|
+
3.1.1
|
|
314
|
+
- Fix variable not found when posting impression
|
|
315
|
+
- Fix infinite loop when posting impression if there is a network glitch
|
|
316
|
+
|
|
317
|
+
3.1.0
|
|
318
|
+
- Add RedisAdapter
|
|
319
|
+
- adds manager.split_names()
|
|
320
|
+
- add impressions_queue_size to prevent memory leak when Threads pauses due to 'smart' fork.
|
|
321
|
+
- do not report latencies for get_treatment is array is all zeros
|
|
322
|
+
- Fix deduplication problem when posting impressions
|
|
323
|
+
- Change in how factory is construct.
|
|
324
|
+
- Detach implementation for local factory and regular one.
|
|
325
|
+
|
|
326
|
+
3.0.3
|
|
327
|
+
- Fix nil ref in manager
|
|
328
|
+
|
|
329
|
+
3.0.2
|
|
330
|
+
- add ability to provide different bucketing/matching keys
|
|
331
|
+
|
|
332
|
+
3.0.1
|
|
333
|
+
- fix segments not deleting from the cache
|
|
334
|
+
|
|
335
|
+
3.0.0
|
|
336
|
+
- add new caching interface
|
|
337
|
+
- add replaceable adapters to store cache in
|
|
338
|
+
- add first cache adapter: MemoryAdapter
|
|
339
|
+
- refactoring
|
|
340
|
+
|
|
341
|
+
2.0.1
|
|
342
|
+
- Supress warnings cause by Net::HTTP when it already exists.
|
|
343
|
+
|
|
344
|
+
2.0.0
|
|
345
|
+
- Add Factory for creation of Client and Manager interface.
|
|
346
|
+
|
|
347
|
+
1.0.4
|
|
348
|
+
- added support for AND combiner on conditions
|
|
349
|
+
- added events_uri as config param which defines the metrics post url
|
|
350
|
+
- updated metrics post default endpoint to be https://events.split.io/api/
|
|
351
|
+
|
|
352
|
+
1.0.3
|
|
353
|
+
- fixed refresh rate intervals issue
|
|
354
|
+
- fixed datetime bug for split definitions created directly from api
|
|
355
|
+
|
|
356
|
+
1.0.2
|
|
357
|
+
- created between_matcher, equal_to_matcher, greater_than_or_equal_to_matcher, less_than_or_equal_to_matcher to support attributes
|
|
358
|
+
- refactored whitelist_matcher to support attributes
|
|
359
|
+
- tweaked to drop analytics data if the POST get an error response
|
|
360
|
+
- added condition to return CONTROL on the deleted features
|
|
361
|
+
|
|
362
|
+
1.0.1
|
|
3
363
|
- .splits to .split for local env
|
|
4
364
|
- isTreatment was removed from the API.
|
|
5
365
|
|
|
6
366
|
1.0.0
|
|
7
|
-
|
|
8
367
|
- Support multivariate treatment
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Contributing to the Split Ruby SDK
|
|
2
|
+
|
|
3
|
+
Split SDK is an open source project and we welcome feedback and contribution. The information below describes how to build the project with your changes, run the tests, and send the Pull Request(PR).
|
|
4
|
+
|
|
5
|
+
## Development
|
|
6
|
+
|
|
7
|
+
### Development process
|
|
8
|
+
|
|
9
|
+
1. Fork the repository and create a topic branch from `development` branch. Please use a descriptive name for your branch.
|
|
10
|
+
2. While developing, use descriptive messages in your commits. Avoid short or meaningless sentences like "fix bug".
|
|
11
|
+
3. Make sure to add tests for both positive and negative cases.
|
|
12
|
+
4. Run the linter script of the project and fix any issues you find.
|
|
13
|
+
5. Run the build script and make sure it runs with no errors.
|
|
14
|
+
6. Run all tests and make sure there are no failures.
|
|
15
|
+
7. `git push` your changes to GitHub within your topic branch.
|
|
16
|
+
8. Open a Pull Request(PR) from your forked repo and into the `development` branch of the original repository.
|
|
17
|
+
9. When creating your PR, please fill out all the fields of the PR template, as applicable, for the project.
|
|
18
|
+
10. Check for conflicts once the pull request is created to make sure your PR can be merged cleanly into `development`.
|
|
19
|
+
11. Keep an eye out for any feedback or comments from Split's SDK team.
|
|
20
|
+
|
|
21
|
+
### Building the SDK
|
|
22
|
+
To install this gem dependencies onto your local machine, run `bundle exec rake install`.
|
|
23
|
+
|
|
24
|
+
Then you can build the gem using `gem build splitclient-rb.gemspec` and install on your Ruby version with `gem install splitclient-rb-X.X.X.gem` (_the version number should match what you just built_).
|
|
25
|
+
|
|
26
|
+
### Running tests
|
|
27
|
+
The gem uses `rspec` for unit testing. You can find the files for the unit tests and the specs helper file (`spec_helper.rb`) under the default `/spec` folder.
|
|
28
|
+
|
|
29
|
+
To run all the specs in the `spec` folder, use the provided rake task (_make sure Redis is running in localhost_):
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
bundle exec rspec
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`Simplecov` is used for coverage reporting. Upon executing the rake task it will store the reports in the `/coverage` folder.
|
|
36
|
+
|
|
37
|
+
### Linting and other useful checks
|
|
38
|
+
To run the static code analysis using Rubocop run:
|
|
39
|
+
```bash
|
|
40
|
+
bundle exec rubocop
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
If you want to benchmark the hashing algorithm (MurmurHash) run:
|
|
44
|
+
```bash
|
|
45
|
+
bundle exec rake compile:murmurhash
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
# Contact
|
|
49
|
+
If you have any other questions or need to contact us directly in a private manner send us a note at developers@split.io
|