devcycle-ruby-server-sdk 2.2.1 → 2.3.0
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 +4 -4
 - data/lib/devcycle-ruby-server-sdk/localbucketing/bucketing-lib.release.wasm +0 -0
 - data/lib/devcycle-ruby-server-sdk/localbucketing/proto/{variableForUser.proto → variableForUserParams.proto} +17 -18
 - data/lib/devcycle-ruby-server-sdk/localbucketing/proto/{variableForUser_pb.rb → variableForUserParams_pb.rb} +2 -3
 - data/lib/devcycle-ruby-server-sdk/models/user_data.rb +5 -0
 - data/lib/devcycle-ruby-server-sdk/version.rb +1 -1
 - data/lib/devcycle-ruby-server-sdk.rb +1 -1
 - metadata +4 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 42297fb42fe333a0f3fac438eb5eee4c81f97216925656c76b23ca651e901dd9
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 9f7fc47d89abc15233779ba3b013b22edcf4c601b5c0d3aae1a89bef527e4174
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5cce2a3359646549a09b720e7b515b58b5dd9d4773c7250e87c9cc0ad866695786d296e766ec8e054c2cbfeba4238db08c5a8f694d43dd5c566c2a4352956d06
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 7396dec5e6cb89732c05ef2a2bc26c8b9abd2d0807fdfe94bbe9072baeee57189dcee936a856dddcb106fb7fc0af9df0b838a0d1e15a46e1f48aff9ff82fa1d5
         
     | 
| 
         Binary file 
     | 
| 
         @@ -2,10 +2,10 @@ syntax = "proto3"; 
     | 
|
| 
       2 
2 
     | 
    
         
             
            package proto;
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            enum VariableType_PB {
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
      
 5 
     | 
    
         
            +
              Boolean = 0;
         
     | 
| 
      
 6 
     | 
    
         
            +
              Number = 1;
         
     | 
| 
      
 7 
     | 
    
         
            +
              String = 2;
         
     | 
| 
      
 8 
     | 
    
         
            +
              JSON = 3;
         
     | 
| 
       9 
9 
     | 
    
         
             
            }
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            message NullableString {
         
     | 
| 
         @@ -16,7 +16,6 @@ message NullableString { 
     | 
|
| 
       16 
16 
     | 
    
         
             
            message NullableDouble {
         
     | 
| 
       17 
17 
     | 
    
         
             
              double value = 1;
         
     | 
| 
       18 
18 
     | 
    
         
             
              bool isNull = 2;
         
     | 
| 
       19 
     | 
    
         
            -
              string dummy = 3;
         
     | 
| 
       20 
19 
     | 
    
         
             
            }
         
     | 
| 
       21 
20 
     | 
    
         | 
| 
       22 
21 
     | 
    
         
             
            enum CustomDataType {
         
     | 
| 
         @@ -39,11 +38,11 @@ message NullableCustomData { 
     | 
|
| 
       39 
38 
     | 
    
         
             
            }
         
     | 
| 
       40 
39 
     | 
    
         | 
| 
       41 
40 
     | 
    
         
             
            message VariableForUserParams_PB {
         
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
      
 41 
     | 
    
         
            +
              string sdkKey = 1;
         
     | 
| 
      
 42 
     | 
    
         
            +
              string variableKey = 2;
         
     | 
| 
      
 43 
     | 
    
         
            +
              VariableType_PB variableType = 3;
         
     | 
| 
      
 44 
     | 
    
         
            +
              DVCUser_PB user = 4;
         
     | 
| 
      
 45 
     | 
    
         
            +
              bool shouldTrackEvent = 5;
         
     | 
| 
       47 
46 
     | 
    
         
             
            }
         
     | 
| 
       48 
47 
     | 
    
         | 
| 
       49 
48 
     | 
    
         
             
            message DVCUser_PB {
         
     | 
| 
         @@ -60,11 +59,11 @@ message DVCUser_PB { 
     | 
|
| 
       60 
59 
     | 
    
         
             
            }
         
     | 
| 
       61 
60 
     | 
    
         | 
| 
       62 
61 
     | 
    
         
             
            message SDKVariable_PB {
         
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
             
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
       69 
     | 
    
         
            -
             
     | 
| 
       70 
     | 
    
         
            -
            }
         
     | 
| 
      
 62 
     | 
    
         
            +
              string _id = 1;
         
     | 
| 
      
 63 
     | 
    
         
            +
              VariableType_PB type = 2;
         
     | 
| 
      
 64 
     | 
    
         
            +
              string key = 3;
         
     | 
| 
      
 65 
     | 
    
         
            +
              bool boolValue = 4;
         
     | 
| 
      
 66 
     | 
    
         
            +
              double doubleValue = 5;
         
     | 
| 
      
 67 
     | 
    
         
            +
              string stringValue = 6;
         
     | 
| 
      
 68 
     | 
    
         
            +
              NullableString evalReason = 7;
         
     | 
| 
      
 69 
     | 
    
         
            +
            }
         
     | 
| 
         @@ -1,10 +1,10 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
     | 
    
         
            -
            # source:  
     | 
| 
      
 2 
     | 
    
         
            +
            # source: variableForUserParams.proto
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            require 'google/protobuf'
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
            Google::Protobuf::DescriptorPool.generated_pool.build do
         
     | 
| 
       7 
     | 
    
         
            -
              add_file(" 
     | 
| 
      
 7 
     | 
    
         
            +
              add_file("variableForUserParams.proto", :syntax => :proto3) do
         
     | 
| 
       8 
8 
     | 
    
         
             
                add_message "proto.NullableString" do
         
     | 
| 
       9 
9 
     | 
    
         
             
                  optional :value, :string, 1
         
     | 
| 
       10 
10 
     | 
    
         
             
                  optional :isNull, :bool, 2
         
     | 
| 
         @@ -12,7 +12,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do 
     | 
|
| 
       12 
12 
     | 
    
         
             
                add_message "proto.NullableDouble" do
         
     | 
| 
       13 
13 
     | 
    
         
             
                  optional :value, :double, 1
         
     | 
| 
       14 
14 
     | 
    
         
             
                  optional :isNull, :bool, 2
         
     | 
| 
       15 
     | 
    
         
            -
                  optional :dummy, :string, 3
         
     | 
| 
       16 
15 
     | 
    
         
             
                end
         
     | 
| 
       17 
16 
     | 
    
         
             
                add_message "proto.CustomDataValue" do
         
     | 
| 
       18 
17 
     | 
    
         
             
                  optional :type, :enum, 1, "proto.CustomDataType"
         
     | 
| 
         @@ -216,6 +216,10 @@ module DevCycle 
     | 
|
| 
       216 
216 
     | 
    
         
             
                    invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
         
     | 
| 
       217 
217 
     | 
    
         
             
                  end
         
     | 
| 
       218 
218 
     | 
    
         | 
| 
      
 219 
     | 
    
         
            +
                  if !@user_id.is_a?(String)
         
     | 
| 
      
 220 
     | 
    
         
            +
                    invalid_properties.push('invalid value for "user_id", user_id must be a string.')
         
     | 
| 
      
 221 
     | 
    
         
            +
                  end
         
     | 
| 
      
 222 
     | 
    
         
            +
             
     | 
| 
       219 
223 
     | 
    
         
             
                  if !@language.nil? && @language.to_s.length > 2
         
     | 
| 
       220 
224 
     | 
    
         
             
                    invalid_properties.push('invalid value for "language", the character length must be smaller than or equal to 2.')
         
     | 
| 
       221 
225 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -231,6 +235,7 @@ module DevCycle 
     | 
|
| 
       231 
235 
     | 
    
         
             
                # @return true if the model is valid
         
     | 
| 
       232 
236 
     | 
    
         
             
                def valid?
         
     | 
| 
       233 
237 
     | 
    
         
             
                  return false if @user_id.nil?
         
     | 
| 
      
 238 
     | 
    
         
            +
                  return false if !@user_id.is_a?(String)
         
     | 
| 
       234 
239 
     | 
    
         
             
                  return false if !@language.nil? && @language.to_s.length > 2
         
     | 
| 
       235 
240 
     | 
    
         
             
                  return false if !@country.nil? && @country.to_s.length > 2
         
     | 
| 
       236 
241 
     | 
    
         
             
                  sdk_type_validator = EnumAttributeValidator.new('String', ["api", "server"])
         
     | 
| 
         @@ -34,7 +34,7 @@ require 'devcycle-ruby-server-sdk/localbucketing/platform_data' 
     | 
|
| 
       34 
34 
     | 
    
         
             
            require 'devcycle-ruby-server-sdk/localbucketing/bucketed_user_config'
         
     | 
| 
       35 
35 
     | 
    
         
             
            require 'devcycle-ruby-server-sdk/localbucketing/event_queue'
         
     | 
| 
       36 
36 
     | 
    
         
             
            require 'devcycle-ruby-server-sdk/localbucketing/event_types'
         
     | 
| 
       37 
     | 
    
         
            -
            require 'devcycle-ruby-server-sdk/localbucketing/proto/ 
     | 
| 
      
 37 
     | 
    
         
            +
            require 'devcycle-ruby-server-sdk/localbucketing/proto/variableForUserParams_pb'
         
     | 
| 
       38 
38 
     | 
    
         
             
            require 'devcycle-ruby-server-sdk/localbucketing/proto/helpers'
         
     | 
| 
       39 
39 
     | 
    
         | 
| 
       40 
40 
     | 
    
         
             
            module DevCycle
         
     | 
    
        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: 2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.3.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - DevCycleHQ
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2023- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2023-04-10 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: typhoeus
         
     | 
| 
         @@ -147,8 +147,8 @@ files: 
     | 
|
| 
       147 
147 
     | 
    
         
             
            - lib/devcycle-ruby-server-sdk/localbucketing/local_bucketing.rb
         
     | 
| 
       148 
148 
     | 
    
         
             
            - lib/devcycle-ruby-server-sdk/localbucketing/platform_data.rb
         
     | 
| 
       149 
149 
     | 
    
         
             
            - lib/devcycle-ruby-server-sdk/localbucketing/proto/helpers.rb
         
     | 
| 
       150 
     | 
    
         
            -
            - lib/devcycle-ruby-server-sdk/localbucketing/proto/ 
     | 
| 
       151 
     | 
    
         
            -
            - lib/devcycle-ruby-server-sdk/localbucketing/proto/ 
     | 
| 
      
 150 
     | 
    
         
            +
            - lib/devcycle-ruby-server-sdk/localbucketing/proto/variableForUserParams.proto
         
     | 
| 
      
 151 
     | 
    
         
            +
            - lib/devcycle-ruby-server-sdk/localbucketing/proto/variableForUserParams_pb.rb
         
     | 
| 
       152 
152 
     | 
    
         
             
            - lib/devcycle-ruby-server-sdk/models/error_response.rb
         
     | 
| 
       153 
153 
     | 
    
         
             
            - lib/devcycle-ruby-server-sdk/models/event.rb
         
     | 
| 
       154 
154 
     | 
    
         
             
            - lib/devcycle-ruby-server-sdk/models/feature.rb
         
     |