splitclient-rb 7.1.3.pre.rc1-java → 7.1.4.pre.rc1-java

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: 376f3b4f7c389e41277fe613f21fe98a6dd4dedf
4
- data.tar.gz: 748ce83dcdd2a966fc50dddd70d542debc113a40
3
+ metadata.gz: df270febc7f8d6500327a6cd74bd296a18f7b5b6
4
+ data.tar.gz: 84a0677bc33dd0e2da328574f3a19eb69e037b57
5
5
  SHA512:
6
- metadata.gz: '0821fa6e09a8aa1654076f8a39c59d777da86aa11ce7affb37d3caafb6c3633e0f7a7693cb3bc72a2f23319863b6b06d4808ce0b46d0510e1a02bab4ac0b2100'
7
- data.tar.gz: 428ee52b979f87e743ca23983422776383a1c5f50b02dda8c8172eb9a5e1b3631d1ef74398047e7124328fe3d9eeebac2921f341e668185e09bd5d6555481830
6
+ metadata.gz: a845b33d67d12111ab3532235782f17711e277c758608d424544200f6e18e227406079b026bfc8f69c68237e4d7c57dd291f41669baf8f9e1c0e75e7318ade08
7
+ data.tar.gz: 7e917de2d2abc6b7ee2650f346bea615efdf8d27bb170ef2c596227502c54647993843faeea31b1cf0682f2a6da11d873c131897f5ede77050fcc4c9e0234bba
data/Rakefile CHANGED
@@ -11,19 +11,14 @@ RSpec::Core::RakeTask.new(:spec)
11
11
  RuboCop::RakeTask.new(:rubocop)
12
12
 
13
13
  task spec: :compile
14
- case RUBY_PLATFORM
15
- when 'java'
14
+
15
+ if RUBY_PLATFORM == 'java'
16
16
  require 'rake/javaextensiontask'
17
17
  Rake::JavaExtensionTask.new 'murmurhash' do |ext|
18
18
  ext.lib_dir = 'lib/murmurhash'
19
19
  ext.target_version = '1.7'
20
20
  ext.source_version = '1.7'
21
21
  end
22
- else
23
- require 'rake/extensiontask'
24
- Rake::ExtensionTask.new 'murmurhash' do |ext|
25
- ext.lib_dir = 'lib/murmurhash'
26
- end
27
22
  end
28
23
 
29
24
  if !ENV['APPRAISAL_INITIALIZED']
@@ -105,7 +105,7 @@ require 'splitclient-rb/sse/notification_processor'
105
105
  require 'splitclient-rb/sse/sse_handler'
106
106
 
107
107
  # C extension
108
- require 'murmurhash/murmurhash_mri'
108
+ #require 'murmurhash/murmurhash_mri'
109
109
 
110
110
  module SplitIoClient
111
111
  def self.root
@@ -14,7 +14,7 @@ module SplitIoClient
14
14
  def initialize(redis_url)
15
15
  connection = redis_url.is_a?(Hash) ? redis_url : { url: redis_url }
16
16
 
17
- @redis = Redis.new(connection)
17
+ @redis = Redis.new(connection)
18
18
  end
19
19
 
20
20
  # Map
@@ -142,7 +142,7 @@ module SplitIoClient
142
142
 
143
143
  # General
144
144
  def exists?(key)
145
- @redis.exists(key)
145
+ @redis.exists?(key)
146
146
  end
147
147
 
148
148
  def delete(key)
@@ -1,3 +1,5 @@
1
+ require 'digest/murmurhash'
2
+
1
3
  module SplitIoClient
2
4
  # Misc class in charge of providing hash functions and
3
5
  # determination of treatment based on concept of buckets
@@ -9,7 +11,7 @@ module SplitIoClient
9
11
  when 'java'
10
12
  Proc.new { |key, seed| Java::MurmurHash3.murmurhash3_x86_32(key, seed) }
11
13
  else
12
- Proc.new { |key, seed| Digest::MurmurHashMRI3_x86_32.rawdigest(key, [seed].pack('L')) }
14
+ Proc.new { |key, seed| Digest::MurmurHash3_x86_32.rawdigest(key, [seed].pack('L')) }
13
15
  end
14
16
  end
15
17
 
@@ -1,3 +1,5 @@
1
+ require 'digest/murmurhash'
2
+
1
3
  module SplitIoClient
2
4
  module Engine
3
5
  module Parser
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.1.3.pre.rc1'
2
+ VERSION = '7.1.4.pre.rc1'
3
3
  end
@@ -26,13 +26,7 @@ Gem::Specification.new do |spec|
26
26
  lib/murmurhash/murmurhash.jar]
27
27
  )
28
28
  else
29
- spec.files.concat(
30
- %w[ext/murmurhash/3_x86_32.c
31
- ext/murmurhash/extconf.rb
32
- ext/murmurhash/murmurhash.c
33
- ext/murmurhash/murmurhash.h]
34
- )
35
- spec.extensions = ['ext/murmurhash/extconf.rb']
29
+ spec.add_runtime_dependency 'digest-murmurhash', '>= 1.1.1'
36
30
  end
37
31
 
38
32
  spec.add_development_dependency 'allocation_stats'
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.1.3.pre.rc1
4
+ version: 7.1.4.pre.rc1
5
5
  platform: java
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-31 00:00:00.000000000 Z
11
+ date: 2020-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement