mmh3 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.github/workflows/build.yml +15 -14
- data/.github/workflows/coverage.yml +26 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +7 -3
- data/LICENSE.txt +1 -1
- data/README.md +2 -1
- data/Steepfile +20 -0
- data/lib/mmh3/version.rb +1 -1
- data/mmh3.gemspec +1 -1
- data/sig/mmh3.rbs +18 -0
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9232bb276c9e81d9283f72dd767cfac0a32a639f36051ba1719415ce941d32a
|
4
|
+
data.tar.gz: 2a8bcb3958785b4f198b0aeb505dec3bf50d3ab827ec981613583eae6caaffce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c99ca7f0f22ed5ee7ec6adef36bc19b9456afdc8c51ae74a970e62266e5336f2bc4617795d28210a03f1591b82980a8c9f188581c619f495765685c315ab920
|
7
|
+
data.tar.gz: 67df0cd6af0f55a1a5d2bc257c136e4af4ca637783f1c68bde550319a52078ef67fb51c3f9ecc303988f9b0d0a72f2b9053e4d4c9f3dbb83d88d8ea6cc49f645
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: github-ci
|
data/.github/workflows/build.yml
CHANGED
@@ -1,20 +1,21 @@
|
|
1
|
-
name:
|
1
|
+
name: build
|
2
2
|
|
3
|
-
on: [push]
|
3
|
+
on: [push, pull_request]
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
build:
|
7
|
-
|
8
7
|
runs-on: ubuntu-latest
|
9
|
-
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
ruby: [ '2.6', '2.7', '3.0' ]
|
10
11
|
steps:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
- uses: actions/checkout@v2
|
13
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
14
|
+
uses: actions/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: ${{ matrix.ruby }}
|
17
|
+
- name: Build and test with Rake
|
18
|
+
run: |
|
19
|
+
gem install bundler
|
20
|
+
bundle install --jobs 4 --retry 3
|
21
|
+
bundle exec rake
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: coverage
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ main ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
coverage:
|
11
|
+
runs-on: ubuntu-20.04
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- name: Set up Ruby 2.7
|
15
|
+
uses: actions/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: '2.7'
|
18
|
+
- name: Build and test with Rake
|
19
|
+
run: |
|
20
|
+
gem install bundler
|
21
|
+
bundle install --jobs 4 --retry 3
|
22
|
+
bundle exec rake
|
23
|
+
- name: Coveralls GitHub Action
|
24
|
+
uses: coverallsapp/github-action@v1.1.2
|
25
|
+
with:
|
26
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in mmh3.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
gem
|
7
|
-
gem
|
6
|
+
gem 'rake', '~> 12.0'
|
7
|
+
gem 'rspec', '~> 3.0'
|
8
|
+
gem 'simplecov', '~> 0.21'
|
9
|
+
gem 'simplecov-lcov', '~> 0.8'
|
10
|
+
gem 'rbs', '~> 1.2'
|
11
|
+
gem 'steep', '~> 0.44'
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Mmh3
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Build Status](https://github.com/yoshoku/mmh3/workflows/build/badge.svg)](https://github.com/yoshoku/mmh3/actions?query=workflow%3Abuild)
|
4
|
+
[![Coverage Status](https://coveralls.io/repos/github/yoshoku/mmh3/badge.svg?branch=main)](https://coveralls.io/github/yoshoku/mmh3?branch=main)
|
4
5
|
[![Gem Version](https://badge.fury.io/rb/mmh3.svg)](https://badge.fury.io/rb/mmh3)
|
5
6
|
[![Documentation](https://img.shields.io/badge/api-reference-blue.svg)](https://rubydoc.info/gems/mmh3)
|
6
7
|
|
data/Steepfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
target :lib do
|
2
|
+
signature "sig"
|
3
|
+
#
|
4
|
+
check "lib" # Directory name
|
5
|
+
# check "Gemfile" # File name
|
6
|
+
# check "app/models/**/*.rb" # Glob
|
7
|
+
# # ignore "lib/templates/*.rb"
|
8
|
+
#
|
9
|
+
# # library "pathname", "set" # Standard libraries
|
10
|
+
# # library "strong_json" # Gems
|
11
|
+
end
|
12
|
+
|
13
|
+
# target :spec do
|
14
|
+
# signature "sig", "sig-private"
|
15
|
+
#
|
16
|
+
# check "spec"
|
17
|
+
#
|
18
|
+
# # library "pathname", "set" # Standard libraries
|
19
|
+
# # library "rspec"
|
20
|
+
# end
|
data/lib/mmh3/version.rb
CHANGED
data/mmh3.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
|
14
14
|
spec.metadata['homepage_uri'] = spec.homepage
|
15
15
|
spec.metadata['source_code_uri'] = 'https://github.com/yoshoku/mmh3'
|
16
|
-
spec.metadata['changelog_uri'] = 'https://github.com/yoshoku/mmh3/blob/
|
16
|
+
spec.metadata['changelog_uri'] = 'https://github.com/yoshoku/mmh3/blob/main/CHANGELOG.md'
|
17
17
|
spec.metadata['documentation_uri'] = 'https://rubydoc.info/gems/mmh3'
|
18
18
|
|
19
19
|
# Specify which files should be added to the gem when it is released.
|
data/sig/mmh3.rbs
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
module Mmh3
|
2
|
+
VERSION: String
|
3
|
+
|
4
|
+
def self?.hash32: (String key, ?seed: Integer seed) -> Integer
|
5
|
+
def self?.hash128: (String key, ?seed: Integer seed, ?x64arch: bool x64arch) -> Integer
|
6
|
+
|
7
|
+
private
|
8
|
+
|
9
|
+
def self?.hash128_x64: (String key, ?Integer seed) -> Integer
|
10
|
+
def self?.hash128_x86: (String key, ?Integer seed) -> Integer
|
11
|
+
def self?.block32: (Array[Integer] kb, Integer bstart, Integer offset) -> Integer
|
12
|
+
def self?.block64: (Array[Integer] kb, Integer bstart, Integer offset) -> Integer
|
13
|
+
def self?.rotl32: (Integer x, Integer r) -> Integer
|
14
|
+
def self?.rotl64: (Integer x, Integer r) -> Integer
|
15
|
+
def self?.scramble32: (Integer k) -> Integer
|
16
|
+
def self?.fmix32: (Integer h) -> Integer
|
17
|
+
def self?.fmix64: (Integer h) -> Integer
|
18
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mmh3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yoshoku
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A pure Ruby implementation of MurmurHash3
|
14
14
|
email:
|
@@ -17,7 +17,9 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- ".coveralls.yml"
|
20
21
|
- ".github/workflows/build.yml"
|
22
|
+
- ".github/workflows/coverage.yml"
|
21
23
|
- ".gitignore"
|
22
24
|
- ".rspec"
|
23
25
|
- CHANGELOG.md
|
@@ -25,16 +27,18 @@ files:
|
|
25
27
|
- LICENSE.txt
|
26
28
|
- README.md
|
27
29
|
- Rakefile
|
30
|
+
- Steepfile
|
28
31
|
- lib/mmh3.rb
|
29
32
|
- lib/mmh3/version.rb
|
30
33
|
- mmh3.gemspec
|
34
|
+
- sig/mmh3.rbs
|
31
35
|
homepage: https://github.com/yoshoku/mmh3
|
32
36
|
licenses:
|
33
37
|
- MIT
|
34
38
|
metadata:
|
35
39
|
homepage_uri: https://github.com/yoshoku/mmh3
|
36
40
|
source_code_uri: https://github.com/yoshoku/mmh3
|
37
|
-
changelog_uri: https://github.com/yoshoku/mmh3/blob/
|
41
|
+
changelog_uri: https://github.com/yoshoku/mmh3/blob/main/CHANGELOG.md
|
38
42
|
documentation_uri: https://rubydoc.info/gems/mmh3
|
39
43
|
post_install_message:
|
40
44
|
rdoc_options: []
|
@@ -51,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
55
|
- !ruby/object:Gem::Version
|
52
56
|
version: '0'
|
53
57
|
requirements: []
|
54
|
-
rubygems_version: 3.1.
|
58
|
+
rubygems_version: 3.1.6
|
55
59
|
signing_key:
|
56
60
|
specification_version: 4
|
57
61
|
summary: A pure Ruby implementation of MurmurHash3
|