bloom_fit 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 11be2e4492a3e06ff7c401ebe04e8f5b462a48d8399dea08ecdc33726cbec31f
4
- data.tar.gz: 0642065d4004d002fc51cbe07f77a92daf5b84b117abc6684c45f7ca82b7d757
3
+ metadata.gz: 5f1a3e06592409a17a287562a4f51910e4c103cc7e7a95fa18b051e684ec2f72
4
+ data.tar.gz: 85dab6561d4626f1ece379cbdd63678befac1e19d8f3cc403a270a13da5ca049
5
5
  SHA512:
6
- metadata.gz: 840f467007a4efc4bcf55c4e29c320d28b16daa819b1f54a1884c43bb5092add5c4522a2e6e524a5516031e48bc937eb4bfddf9e20767d85b18590b1245c1d23
7
- data.tar.gz: 58b45319a8cc83342ab224f0430bd8849b4655b2be0b1758d788dbc68df7ecca9cc5ab2deb1c33419e07dc6d0f6c8c22a4c158e7001fc696ee695273bb9ad196
6
+ metadata.gz: 2553c5c3ce8bff634d2d2f79bc58d9d05ee96426e681c3bdb3295c762fc01c9b2de0fe5aa97cc6755037a7c8a80cc4d367c31b6457e8b087489d36797ad1a598
7
+ data.tar.gz: 803c578af7494501775e52bb4db1ea46b5311c7280d20aaa632185d486dcd35ce60390a48d3ca4af2cb6adec4b9cbcc7aa7c922fcc5d9e58b0d7cdeb60a12fa7
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # BloomFit makes Bloom Filter tuning easy
2
2
 
3
+ [![Gem Version](http://img.shields.io/gem/v/bloom_fit.svg)](https://rubygems.org/gems/bloom_fit)
4
+ [![CI](https://github.com/rmm5t/bloom_fit/actions/workflows/ci.yml/badge.svg)](https://github.com/rmm5t/bloom_fit/actions/workflows/ci.yml)
5
+ [![Gem Downloads](https://img.shields.io/gem/dt/bloom_fit.svg)](https://rubygems.org/gems/bloom_fit)
6
+
3
7
  BloomFit provides a MRI/C-based non-counting bloom filter for use in your Ruby projects. It is heavily based on [bloomfilter-rb]'s native implementation, but provides a better hashing distribution by using DJB2 over CRC32, avoids the need to supply a seed, removes counting abilities, improves performance for very large datasets, and will automatically calculate the bit size (m) and the number of hashes (k) when given a capacity and false-positive-rate.
4
8
 
5
9
  A [Bloom filter](http://en.wikipedia.org/wiki/Bloom_filter) is a space-efficient probabilistic data structure that is used to test whether an element is a member of a set. False positives are possible, but false negatives are not. Instead of using k different hash functions, this implementation a DJB2 hash with k seeds from the CRC table.
data/Rakefile CHANGED
@@ -1,11 +1,9 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake'
3
- require 'rspec'
4
- require 'rspec/core/rake_task'
5
- require 'rake/extensiontask'
1
+ require "bundler/gem_tasks"
2
+ require "bundler/setup"
3
+ require "rspec/core/rake_task"
4
+ require "rake/extensiontask"
6
5
 
7
- Bundler::GemHelper.install_tasks
8
- Rake::ExtensionTask.new('cbloomfilter')
6
+ Rake::ExtensionTask.new("cbloomfilter")
9
7
  RSpec::Core::RakeTask.new(:spec)
10
8
  Rake::Task[:spec].prerequisites << :clean
11
9
  Rake::Task[:spec].prerequisites << :compile
@@ -1,3 +1,3 @@
1
1
  class BloomFit
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bloom_fit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Grigorik