The mmap gem doesn't build with ruby 1.9 or newer.
require "xml/libxml"
require "set"
require "time"
-require "mmap"
+require "simple-mmap"
module Expire
# projection object to go from latlon -> spherical mercator
# open the cache
def initialize(filename)
- @cache = Mmap.new(filename)
+ @cache = SimpleMmap::FileWindow.open(filename)
throw "Unexpected format" unless @cache[0..3].unpack("l").first == 1
throw "Unexpected ID size" unless @cache[4..7].unpack("l").first == 8
gem_package "proj4rb"
gem_package "libxml-ruby"
-gem_package "mmap"
+gem_package "simple-mmap"
remote_directory "/usr/local/lib/site_ruby" do
source "ruby"