murmurhash-jruby 1.0.0.pre0-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c6a7399a64682216b7e7e21c5eda6a5d64bd5d90
4
+ data.tar.gz: 1d8963b3a5343b63ba6af7b3b9cb02667a38da2b
5
+ SHA512:
6
+ metadata.gz: 51aeabc7f3b07afd0743e43b48e68786a62232390ee7f0fa2f1e96b085f994c849746bbc417a681d91dabd69c4cff4796472e297daebfb8b925f0aa279a74660
7
+ data.tar.gz: 4c8db647358339d068fe31aa3a941d5eca824f1e99219eb382c353db11ca51002840bf95be03c1dc263e5805a9f4a9ee4e1f89a071609f60faf26e72fdd8e6fb
data/LICENSE.txt ADDED
@@ -0,0 +1,12 @@
1
+ Copyright (c) 2016, Burt AB
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+
8
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
+
10
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # MurmurHash
2
+
3
+ A native Java implementation of MurmurHash3 for JRuby.
4
+
5
+ ## Usage
6
+
7
+ Currently only a 64 bit hash is available.
8
+
9
+ ```ruby
10
+ # create a new instance with a seed
11
+ hasher = MurmurHash::MurmurHash3.new(234364563234234)
12
+ # hash a string to a 64 bit number
13
+ hasher.hash64('hello world') # => 232351117120425316
14
+ # you can also use the class method
15
+ MurmurHash::MurmurHash3.hash64('hello world', 234364563234234) # => 232351117120425316
16
+ ```
17
+
18
+ ## Copyright
19
+
20
+ Copyright © 2016, Burt AB and contributors. See [See LICENSE.txt](LICENSE.txt). Also contains public domain code from https://github.com/yonik/java_util
data/lib/murmurhash.rb ADDED
@@ -0,0 +1,3 @@
1
+ require 'murmurhash/murmurhash'
2
+
3
+ Java::Murmurhash::MurmurHashLibrary.new.load(JRuby.runtime, false)
Binary file
@@ -0,0 +1,3 @@
1
+ module MurmurHash
2
+ VERSION = '1.0.0.pre0'.freeze
3
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: murmurhash-jruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.pre0
5
+ platform: java
6
+ authors:
7
+ - Theo Hultberg
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-03-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '1.11'
19
+ name: bundler
20
+ prerelease: false
21
+ type: :development
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ description: A native Java implementation of MurmurHash3 packaged as a JRuby extension
28
+ email:
29
+ - theo@burtcorp.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - LICENSE.txt
35
+ - README.md
36
+ - lib/murmurhash.rb
37
+ - lib/murmurhash/murmurhash.jar
38
+ - lib/murmurhash/version.rb
39
+ homepage: https://github.com/burtcorp/murmurhash-jruby
40
+ licenses:
41
+ - BSD-3-Clause
42
+ metadata: {}
43
+ post_install_message:
44
+ rdoc_options: []
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">"
55
+ - !ruby/object:Gem::Version
56
+ version: 1.3.1
57
+ requirements: []
58
+ rubyforge_project:
59
+ rubygems_version: 2.4.8
60
+ signing_key:
61
+ specification_version: 4
62
+ summary: MurmurHash3 as a Java extension for JRuby
63
+ test_files: []