summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2944305)
The mmap gem doesn't build with ruby 1.9 or newer.
require "xml/libxml"
require "set"
require "time"
require "xml/libxml"
require "set"
require "time"
module Expire
# projection object to go from latlon -> spherical mercator
module Expire
# projection object to go from latlon -> spherical mercator
# open the cache
def initialize(filename)
# 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
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 "proj4rb"
gem_package "libxml-ruby"
+gem_package "simple-mmap"
remote_directory "/usr/local/lib/site_ruby" do
source "ruby"
remote_directory "/usr/local/lib/site_ruby" do
source "ruby"