Sha256: 1ffc2629fa8aa752ede3df15364ea8e46ebc3144b60caef4c19dbc77fd49d17a
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
require 'mkmf' LATEST_RUBY_VERSION = "2.1.4" RUBY_TRUNK_VERSION = "2.2.0" version = case RUBY_VERSION when /1.9.3/, /2.0.0/ RUBY_VERSION when /^2.1.\d/, /^2.2.\d/ if LATEST_RUBY_VERSION < RUBY_VERSION && RUBY_VERSION < RUBY_TRUNK_VERSION LATEST_RUBY_VERSION else RUBY_VERSION end else raise "Sorry, but did_you_mean #{DidYouMean::VERSION} doesn't work with Ruby #{RUBY_VERSION}." end.tr(".", "") ruby_header_path = File.join(File.dirname(File.realpath(__FILE__)), "ruby_headers") $CFLAGS += " -I#{ruby_header_path}/#{version}" create_makefile 'did_you_mean/method_missing'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
did_you_mean-0.9.0 | ext/did_you_mean/extconf.rb |