devcycle-ruby-server-sdk 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11f97c726357c0e8c267da73d94ed9c1a24e290f6bb4340e337f0b3bb78b66e3
4
- data.tar.gz: 9554c5c27297236f1e3e588ff1e15c43090a042807afb44ef239052e5ae81bbd
3
+ metadata.gz: a00494492e31ee9cbd1aeb791c0372402ab5a243717e2d14e5cae6b16b41e639
4
+ data.tar.gz: 8dc6223226365eaca06e35cbdc6ed7006b190e01d378279b3c6a9e22d519b4f4
5
5
  SHA512:
6
- metadata.gz: 41e832272e313529bd070d3b0aeb909e166114a451ee4493afa60d432b979adcc996198f9ae4a95407056512df144d138362738da1d9bf5033778312440c3ebb
7
- data.tar.gz: 93127946368ce2350cf0dac32d7928b5d6a3c49f9c6fca6e69dd82b10e6b7c70b12a8a0227ce68acff783ae02296eccd97ad4d59e6ce760a9474879b27087dd1
6
+ metadata.gz: b51d40ce54ccfc9b21742f888877f2522ed464f676aa90016ff4fd2c8d6b12773b8c2eff782c97b4226669a815bc07d0ac77f715b7bfd6d8005b3bf327e60238
7
+ data.tar.gz: b15efd1fddb5c34a79bc6ffba5dbe16fd7e139e8f0acb75f917ca13696b3ff6787bf09e5fd5d57de4c36848e75ca9694b978d5b83f9746f631291b79b861e82a
@@ -17,7 +17,7 @@ module DevCycle
17
17
  ).void }
18
18
  def initialize(sdkKey, local_bucketing, wait_for_init)
19
19
  @first_load = true
20
- @config_version = "v1"
20
+ @config_version = "v2"
21
21
  @local_bucketing = local_bucketing
22
22
  @sdkKey = sdkKey
23
23
  @sse_url = ""
@@ -1,5 +1,5 @@
1
1
  #!/bin/bash
2
- BUCKETING_LIB_VERSION="1.24.2"
2
+ BUCKETING_LIB_VERSION="1.25.3"
3
3
  WAT_DOWNLOAD=0
4
4
  rm bucketing-lib.release.wasm
5
5
  wget "https://unpkg.com/@devcycle/bucketing-assembly-script@$BUCKETING_LIB_VERSION/build/bucketing-lib.release.wasm"
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.3.0
11
11
  =end
12
12
 
13
13
  module DevCycle
14
- VERSION = '3.1.0'
14
+ VERSION = '3.2.0'
15
15
  end
@@ -18,9 +18,14 @@ require 'json'
18
18
  # Please update as you see appropriate
19
19
  describe 'DevCycle::Client' do
20
20
  before(:all) do
21
+ sdk_key = ENV["DEVCYCLE_SERVER_SDK_KEY"]
22
+ if sdk_key.nil?
23
+ puts("SDK KEY NOT SET - SKIPPING INIT")
24
+ return
25
+ end
21
26
  # run before each test
22
27
  options = DevCycle::Options.new(enable_cloud_bucketing: true)
23
- @api_instance = DevCycle::Client.new("dvc_server_token_hash", options)
28
+ @api_instance = DevCycle::Client.new(sdk_key, options)
24
29
 
25
30
  @user = DevCycle::User.new({
26
31
  user_id: 'test-user',
@@ -57,12 +62,12 @@ describe 'DevCycle::Client' do
57
62
  # @param user
58
63
  # @param [Hash] opts the optional parameters
59
64
  # @return [Variable]
60
- describe 'get_variable_by_key activate-flag' do
65
+ describe 'get_variable_by_key ruby-example-tests' do
61
66
  it 'should work' do
62
- result = @api_instance.variable(@user, "activate-flag", false)
67
+ result = @api_instance.variable(@user, "ruby-example-tests-default", false)
63
68
  expect(result.isDefaulted).to eq true
64
69
 
65
- result = @api_instance.variable_value(@user, "activate-flag", true)
70
+ result = @api_instance.variable_value(@user, "ruby-example-tests-default", true)
66
71
  expect(result).to eq true
67
72
  end
68
73
  end
@@ -75,11 +80,11 @@ describe 'DevCycle::Client' do
75
80
  # @return [Variable]
76
81
  describe 'get_variable_by_key test' do
77
82
  it 'should work' do
78
- result = @api_instance.variable(@user, "test", false)
83
+ result = @api_instance.variable(@user, "ruby-example-tests", false)
79
84
  expect(result.isDefaulted).to eq false
80
85
  expect(result.value).to eq true
81
86
 
82
- result = @api_instance.variable_value(@user, "test", true)
87
+ result = @api_instance.variable_value(@user, "ruby-example-tests", true)
83
88
  expect(result).to eq true
84
89
  end
85
90
  end
@@ -93,7 +98,7 @@ describe 'DevCycle::Client' do
93
98
  it 'should work' do
94
99
  result = @api_instance.all_variables(@user)
95
100
 
96
- expect(result.length).to eq 5
101
+ expect(result.length >= 1).to eq true
97
102
  end
98
103
  end
99
104
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devcycle-ruby-server-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DevCycleHQ
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-20 00:00:00.000000000 Z
11
+ date: 2024-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus