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 +4 -4
- data/lib/devcycle-ruby-server-sdk/localbucketing/bucketing-lib.release.wasm +0 -0
- data/lib/devcycle-ruby-server-sdk/localbucketing/config_manager.rb +1 -1
- data/lib/devcycle-ruby-server-sdk/localbucketing/update_wasm.sh +1 -1
- data/lib/devcycle-ruby-server-sdk/version.rb +1 -1
- data/spec/api/devcycle_api_spec.rb +12 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a00494492e31ee9cbd1aeb791c0372402ab5a243717e2d14e5cae6b16b41e639
|
4
|
+
data.tar.gz: 8dc6223226365eaca06e35cbdc6ed7006b190e01d378279b3c6a9e22d519b4f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b51d40ce54ccfc9b21742f888877f2522ed464f676aa90016ff4fd2c8d6b12773b8c2eff782c97b4226669a815bc07d0ac77f715b7bfd6d8005b3bf327e60238
|
7
|
+
data.tar.gz: b15efd1fddb5c34a79bc6ffba5dbe16fd7e139e8f0acb75f917ca13696b3ff6787bf09e5fd5d57de4c36848e75ca9694b978d5b83f9746f631291b79b861e82a
|
Binary file
|
@@ -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(
|
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
|
65
|
+
describe 'get_variable_by_key ruby-example-tests' do
|
61
66
|
it 'should work' do
|
62
|
-
result = @api_instance.variable(@user, "
|
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, "
|
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, "
|
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, "
|
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
|
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.
|
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-
|
11
|
+
date: 2024-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|