Skip to content

Commit

Permalink
Ruby 2.1 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
oggy committed Dec 28, 2013
1 parent b8fc6e6 commit 6c15c12
Show file tree
Hide file tree
Showing 4 changed files with 1,035 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
@@ -1,5 +1,6 @@
== LATEST

* MRI 2.1.0 support.
* Looksee now only adds #ls to Object. The old way would frequently conflict
with, e.g., Rails controller conventions.

Expand Down
4 changes: 3 additions & 1 deletion ext/extconf.rb
Expand Up @@ -4,7 +4,9 @@
require 'mkmf'
$CPPFLAGS << " -DRUBY_VERSION=#{RUBY_VERSION.tr('.', '')}"
if extension == 'mri'
if RUBY_VERSION >= '2.0.0'
if RUBY_VERSION >= '2.1.0'
$CPPFLAGS << " -Imri/2.1.0"
elsif RUBY_VERSION >= '2.0.0'
$CPPFLAGS << " -Imri/2.0.0"
elsif RUBY_VERSION >= '1.9.3'
$CPPFLAGS << " -Imri/1.9.3"
Expand Down

0 comments on commit 6c15c12

Please sign in to comment.