splitclient-rb 7.0.1.pre.rc6 → 7.0.1.pre.rc7

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: cf72f649bd23939f5ddc83cb1b19808bddcdbd3779bc84a6146243969bfc0945
4
- data.tar.gz: 8ffc1773a90b8aed6c29be0a01108b6cafbf186518f3c9780b4108a55d4ce05d
3
+ metadata.gz: 024cdfb5ea53e5c84b73dafdcb28034bd33462c4931f440ec0ce9615f79b97a4
4
+ data.tar.gz: 89c9fe2b39884ade83f4808d9cb541705816e71b33336f65ff4004e11b2388ee
5
5
  SHA512:
6
- metadata.gz: 91c89297200565d20ef2b267882f1a7d41decffae816fef550e9b55d96031dc3b5861202ca75a44685a3f85bbcae4ba5c269c602ef080dbf0c861ea828c67398
7
- data.tar.gz: 7ead5f724988ffdb1a15f7c854c22ab30614639d36cd6fd26cadf4abcec81b8fee8279272c6159a84d3fd274d55cbd04e87493694baeb9740ef0b83e45c7a441
6
+ metadata.gz: d867bcf67d933aabedf66a5253ebac077af504b92f34a9fb7f680ce0bb58aa5f6bfbe66fb1c0bbc994e89cec289ee8776d19f3edf3c60cd0aef22258d77de484
7
+ data.tar.gz: bc554d8aca04d7a8b4f1f065a2d870b0619016cfd0ba0244b210bbacd7d1653c2f55af114764015bd0b447952575dc893eaebf7372b19daa3817e93fadc7e0bb
data/.gitignore CHANGED
@@ -52,3 +52,5 @@ dump.rdb
52
52
 
53
53
  # Ignore Appraisal gemfile.lock files
54
54
  /gemfiles/*.gemfile.lock
55
+
56
+ release.sh
@@ -152,7 +152,7 @@ module SplitIoClient
152
152
  end
153
153
 
154
154
  def find_operation_latencies(operation)
155
- @latencies.find { |l| l[:operation] == operation }
155
+ @latencies.find { |l| l[:operation] == operation unless l.nil? }
156
156
  end
157
157
  end
158
158
  end
@@ -287,7 +287,7 @@ module SplitIoClient
287
287
 
288
288
  bucketing_key, matching_key = keys_from_key(key)
289
289
 
290
- attributes = attributes || attributes.to_h
290
+ attributes = parsed_attributes(attributes)
291
291
 
292
292
  return parsed_control_exception unless valid_client && @config.split_validator.valid_get_treatment_parameters(calling_method, key, split_name, matching_key, bucketing_key, attributes)
293
293
 
@@ -350,5 +350,9 @@ module SplitIoClient
350
350
  return @sdk_blocker.ready? if @sdk_blocker
351
351
  true
352
352
  end
353
+
354
+ def parsed_attributes(attributes)
355
+ return attributes || attributes.to_h
356
+ end
353
357
  end
354
358
  end
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.0.1.pre.rc6'
2
+ VERSION = '7.0.1.pre.rc7'
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: 7.0.1.pre.rc6
4
+ version: 7.0.1.pre.rc7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-05 00:00:00.000000000 Z
11
+ date: 2019-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: allocation_stats