Skip to content

Commit

Permalink
chore: updated to use v2 configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsalaber committed Aug 21, 2024
1 parent e5d0ac1 commit 55f8e88
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test-harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run Test Harness

on:
pull_request:
branches: [ main ]
branches: [main]

jobs:
harness-tests:
Expand All @@ -11,6 +11,8 @@ jobs:
labels: ubuntu-latest-4-core
steps:
- uses: DevCycleHQ/test-harness@main
env:
SDK_CAPABILITIES: '["clientCustomData","v2Config"]'
with:
sdks-to-test: ruby
sdk-github-sha: ${{github.event.pull_request.head.sha}}
Expand Down
2 changes: 1 addition & 1 deletion benchmark/benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
WebMock.enable!
WebMock.disable_net_connect!

stub_request(:get, 'https://config-cdn.devcycle.com/config/v1/server/dvc_server_token_hash.json').
stub_request(:get, 'https://config-cdn.devcycle.com/config/v2/server/dvc_server_token_hash.json').
to_return(headers: { 'Etag': 'test' }, body: File.new('../examples/local/local-bucketing-example/test_data/large_config.json'), status: 200)

stub_request(:post, 'https://events.devcycle.com/v1/events/batch').
Expand Down
2 changes: 1 addition & 1 deletion examples/local/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
WebMock.disable_net_connect!

config_path = File.expand_path('../test_data/large_config.json', __dir__)
stub_request(:get, "https://config-cdn.devcycle.com/config/v1/server/#{ENV['DEVCYCLE_SERVER_SDK_KEY']}.json").
stub_request(:get, "https://config-cdn.devcycle.com/config/v2/server/#{ENV['DEVCYCLE_SERVER_SDK_KEY']}.json").
to_return(headers: { 'Etag': 'test' }, body: File.new(config_path).read, status: 200)

stub_request(:post, 'https://events.devcycle.com/v1/events/batch').
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ConfigManager
).void }
def initialize(sdkKey, local_bucketing, wait_for_init)
@first_load = true
@config_version = "v1"
@config_version = "v2"
@local_bucketing = local_bucketing
@sdkKey = sdkKey
@sse_url = ""
Expand Down
2 changes: 1 addition & 1 deletion lib/devcycle-ruby-server-sdk/localbucketing/update_wasm.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
BUCKETING_LIB_VERSION="1.24.2"
BUCKETING_LIB_VERSION="1.25.3"
WAT_DOWNLOAD=0
rm bucketing-lib.release.wasm
wget "https://unpkg.com/@devcycle/bucketing-assembly-script@$BUCKETING_LIB_VERSION/build/bucketing-lib.release.wasm"

0 comments on commit 55f8e88

Please sign in to comment.