igrigorik/bloomfilter-rb — Issue #4: can't find the gem packet 'bloomfilter'
Author: yaoweibin
Created: 2012-01-04 05:03:14+00:00
State: open

Hi,

I use Ubuntu-10.04. I install your gem packet first:

#gem install bloomfilter-rb

This packet did install in my server. You can see it like that:

$gem list

*** LOCAL GEMS ***

bloomfilter-rb (2.1.1)
redis (2.2.2)

When I tested with your example code in the README:

require 'bloomfilter'

bf = BloomFilter::Native.new(:size => 100, :hashes => 2, :seed => 1, :bucket => 3, :raise => false)
bf.insert("test")
bf.include?("test") # => true
bf.include?("blah") # => false

bf.delete("test")
bf.include?("test") # => false

# Hash with a bloom filter!
bf["test2"] = "bar"
bf["test2"] # => true
bf["test3"] # => false

bf.stats

$ruby test.rb

test.rb:3:in `require': no such file to load -- bloomfilter (LoadError)
from test.rb:3

I also tried "require 'bloomfilter-rb'". It still can't find the packet:

test.rb:2:in `require': no such file to load -- bloomfilter-rb (LoadError)
from test.rb:2