splitclient-rb 4.3.0.canary.1 → 4.3.0.canary.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7aba740fb6e199e7e82a1fc59c2af161010a3028
4
- data.tar.gz: 85b1a7476a4ed1739e9b9de1c10ebb3f641eb6ad
3
+ metadata.gz: b65d200504de0d0e0c33db504df5d40bde0a023b
4
+ data.tar.gz: 8b483c1b5ba41fe2745a992e018ba14dbce4e3cb
5
5
  SHA512:
6
- metadata.gz: 9367028653a703dc2ae91d8dd87f6eefd1ada85c523e2fc09c9d00091ba7412a6a6449b5a5d23bdb9ea1464f16ec1f9f5d3410686c4c7ff09eb177002e81f886
7
- data.tar.gz: 1816f164bd047b30ec7825ef8bcc5619d8ce975ef79e03622fe611fb42c06810227e8fc98df3023c421c1cf666e029cc5a185a6722d187bab3e1d4c2553154a0
6
+ metadata.gz: 7506af68ad2f63241782631576a73eaa845701dfc7dbbfc6274a9afde8eabf3cf3c830eae4e2b1ec8734ceee64f15fc6c57bed268662595b0e92f5760133f748
7
+ data.tar.gz: 600ea370b948fcb2de1f1bbcf6f07b85cc39daa93f894675b62e0bce1b801a9c4b943fcf205b6a9324238323fc4d29e4898059d749f3564cb6913ecffb4f4770
@@ -8,10 +8,10 @@ module SplitIoClient
8
8
  super(attribute, remote_array)
9
9
  end
10
10
 
11
- def match?(_matching_key, _bucketing_key, _evaluator, data)
11
+ def match?(data, bucketing_key, _evaluator, _attributes)
12
12
  return false if @remote_set.empty?
13
13
 
14
- @remote_set.subset? local_set(data, @attribute)
14
+ @remote_set.subset? local_set(data)
15
15
  end
16
16
  end
17
17
  end
@@ -8,8 +8,8 @@ module SplitIoClient
8
8
  super(attribute, remote_array)
9
9
  end
10
10
 
11
- def match?(_matching_key, _bucketing_key, _evaluator, data)
12
- local_set(data, @attribute).intersect? @remote_set
11
+ def match?(data, bucketing_key, _evaluator, _attributes)
12
+ local_set(data).intersect? @remote_set
13
13
  end
14
14
  end
15
15
  end
@@ -8,8 +8,8 @@ module SplitIoClient
8
8
  super(attribute, remote_array)
9
9
  end
10
10
 
11
- def match?(_matching_key, _bucketing_key, _evaluator, data)
12
- local_set(data, @attribute) == @remote_set
11
+ def match?(data, bucketing_key, _evaluator, _attributes)
12
+ local_set(data) == @remote_set
13
13
  end
14
14
  end
15
15
  end
@@ -8,8 +8,8 @@ module SplitIoClient
8
8
  super(attribute, remote_array)
9
9
  end
10
10
 
11
- def match?(_matching_key, _bucketing_key, _evaluator, data)
12
- @local_set = local_set(data, @attribute)
11
+ def match?(data, bucketing_key, _evaluator, _attributes)
12
+ @local_set = local_set(data)
13
13
 
14
14
  return false if @local_set.empty?
15
15
 
@@ -3,12 +3,10 @@ module SplitIoClient
3
3
  protected
4
4
 
5
5
  def initialize(attribute, remote_array)
6
- @attribute = attribute
7
6
  @remote_set = remote_array.to_set
8
7
  end
9
8
 
10
- def local_set(data, attribute)
11
- data = data.fetch(attribute) { |attr| data[attr.to_s] || data[attr.to_sym] }
9
+ def local_set(data)
12
10
  # Allow user to pass individual elements as well
13
11
  local_array = data.kind_of?(Array) ? data : [data]
14
12
 
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '4.3.0.canary.1'
2
+ VERSION = '4.3.0.canary.2'
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: 4.3.0.canary.1
4
+ version: 4.3.0.canary.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-15 00:00:00.000000000 Z
11
+ date: 2017-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler