splitclient-rb 7.1.3-java → 7.1.4.pre.rc4-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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c8a1a715580754d1aeabf270f1bc4713c0471ac
|
4
|
+
data.tar.gz: 0c99611056cabec9f6a6c823653732ccc7328555
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfdf8f5c37a8d1975db07281906069263b7f0fdf2d8e39cf7893dd80c93f28c5c69a9caa26b0979d92cb5bfe48b99f998ba99269bd188b01c4903478e4605b3f
|
7
|
+
data.tar.gz: b6d4bb19076cd15c7f3575d0610562510a37b61a59f9d10ecc1c90722aa4fdaead5d2f84d08fb5b1e6fedff43b682d3c4d8c94d51597015b29d139d864dfed87
|
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
|
-
|
15
|
-
|
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']
|
data/lib/splitclient-rb.rb
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
unless defined?(JRUBY_VERSION)
|
2
|
+
require 'digest/murmurhash'
|
3
|
+
end
|
4
|
+
|
1
5
|
module SplitIoClient
|
2
6
|
# Misc class in charge of providing hash functions and
|
3
7
|
# determination of treatment based on concept of buckets
|
@@ -9,7 +13,7 @@ module SplitIoClient
|
|
9
13
|
when 'java'
|
10
14
|
Proc.new { |key, seed| Java::MurmurHash3.murmurhash3_x86_32(key, seed) }
|
11
15
|
else
|
12
|
-
Proc.new { |key, seed| Digest::
|
16
|
+
Proc.new { |key, seed| Digest::MurmurHash3_x86_32.rawdigest(key, [seed].pack('L')) }
|
13
17
|
end
|
14
18
|
end
|
15
19
|
|
data/splitclient-rb.gemspec
CHANGED
@@ -26,13 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
lib/murmurhash/murmurhash.jar]
|
27
27
|
)
|
28
28
|
else
|
29
|
-
spec.
|
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.
|
4
|
+
version: 7.1.4.pre.rc4
|
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-08-
|
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
|
@@ -444,9 +444,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
444
444
|
version: '0'
|
445
445
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
446
446
|
requirements:
|
447
|
-
- - "
|
447
|
+
- - ">"
|
448
448
|
- !ruby/object:Gem::Version
|
449
|
-
version:
|
449
|
+
version: 1.3.1
|
450
450
|
requirements: []
|
451
451
|
rubyforge_project:
|
452
452
|
rubygems_version: 2.6.14
|