splitclient-rb 8.3.0.pre.rc1-java → 8.3.0.pre.rc3-java

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
  SHA1:
3
- metadata.gz: 63eaef95e83fc3552686629bbc774714697479d3
4
- data.tar.gz: 0a749fd03518f96e809823ba07ea2dedb2aafd8c
3
+ metadata.gz: 446097968258ecac23555475154f3872a08f5bc6
4
+ data.tar.gz: 0ccd3078dbfda48b9da7918b5ba9ed09efe7e321
5
5
  SHA512:
6
- metadata.gz: 7c6f40b8f8fec08b07123de1c441da6a829847a0933993b74e156d143d281f4966a93cbf2c4960d1f0af1035042e35e85caf9cf79dda3a228cb4e2e253b9404b
7
- data.tar.gz: f992ed57b0bf38032e2364a15ea9e1a3bb2bdfc6ac9d09582bad0d939aa993400476e5ace9993b1aaa44843b8f09c8d4cdaa8e86485e2ff5b240d1e7fdd9ba8e
6
+ metadata.gz: f6dc3b9b59cc79cedf5a2d5da2cecd38867364411ebc09493870e406f330bd6ebea793ff666e4727720f2e324d6fe1c08b085e217a665c2efa8b9b18cc8884ce
7
+ data.tar.gz: 293e9f3a411d46e58d2ad090782c05e9a3bd6e31e20e82b02bab27b0fba7b255239e452c509f2f8b56c7e5e2e15f8e3b52367221b450fb1c45af4d5ecbbdecd4
@@ -17,6 +17,7 @@ module SplitIoClient
17
17
  params = { since: since }
18
18
  params[:till] = fetch_options[:till] unless fetch_options[:till].nil?
19
19
  params[:sets] = @flag_sets_filter.join(",") unless @flag_sets_filter.empty?
20
+ @config.logger.debug("Fetching from splitChanges with #{params}: ")
20
21
  response = get_api("#{@config.base_uri}/splitChanges", @api_key, params, fetch_options[:cache_control_headers])
21
22
  if response.status == 414
22
23
  @config.logger.error("Error fetching feature flags; the amount of flag sets provided are too big, causing uri length error.")
@@ -105,7 +105,8 @@ module SplitIoClient
105
105
  killed: split[:killed],
106
106
  treatments: treatments,
107
107
  change_number: split[:changeNumber],
108
- configs: split[:configurations] || {}
108
+ configs: split[:configurations] || {},
109
+ sets: split[:sets] || []
109
110
  }
110
111
  end
111
112
 
@@ -1,5 +1,4 @@
1
1
  # frozen_string_literal: true
2
- require 'set'
3
2
 
4
3
  module SplitIoClient
5
4
  class Validators
@@ -63,7 +62,7 @@ module SplitIoClient
63
62
  log_invalid_flag_set_type(method)
64
63
  return []
65
64
  end
66
- valid_flag_sets = SortedSet[]
65
+ valid_flag_sets = Set[]
67
66
  without_nil.compact.uniq.select do |flag_set|
68
67
  if flag_set.nil? || !flag_set.is_a?(String)
69
68
  log_invalid_flag_set_type(method)
@@ -75,7 +74,7 @@ module SplitIoClient
75
74
  log_invalid_flag_set_type(method)
76
75
  end
77
76
  end
78
- !valid_flag_sets.empty? ? valid_flag_sets.to_a : []
77
+ !valid_flag_sets.empty? ? valid_flag_sets.to_a.sort : []
79
78
  end
80
79
 
81
80
  private
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '8.3.0.pre.rc1'
2
+ VERSION = '8.3.0.pre.rc3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splitclient-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.3.0.pre.rc1
4
+ version: 8.3.0.pre.rc3
5
5
  platform: java
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-30 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement