tenderlove / mmap

A wrapper around mmap
61 stars 14 forks source link

Not building on ruby 2.3.1 w/ bundle #6

Open lyda opened 7 years ago

lyda commented 7 years ago

Gemfile:

# frozen_string_literal: true
source "https://rubygems.org"

gem 'mmap', git: 'https://github.com/tenderlove/mmap.git'

When I run bundle install I get:

Fetching https://github.com/tenderlove/mmap.git

[!] There was an error while loading `mmap.gemspec`: cannot load such file -- mmap/mmap
Does it try to require a relative path? That's been removed in Ruby 1.9. Bundler cannot continue.

 #  from /Users/kevin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/mmap-9632c6e1e504/mmap.gemspec:4
 #  -------------------------------------------
 #  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
 >  require 'mmap'
 #
 #  -------------------------------------------
lyda commented 7 years ago

This is going to be a little involved as fixes go. Current work in the (non-global-version)[https://github.com/lyda/mmap/tree/non-global-version] branch but will make a cleaner pull request later.

lyda commented 7 years ago

This can be tested with: https://gist.github.com/lyda/ce3d5f238f61ffc1badfa59dc48743d1