-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ experimental MacRuby-specific extensions
- Loading branch information
Showing
5 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This tests if we are using MacRuby. | ||
# If yes, it checks if we already have require_relative. | ||
# | ||
# TODO Remove (too verbose) message as soon as it is final. | ||
# | ||
if Kernel.respond_to?(:to_plist) && !Kernel.respond_to?(:require_relative) | ||
|
||
puts "Installing Picky specific MacRuby extensions." | ||
|
||
module Kernel | ||
|
||
def require_relative relative_feature | ||
file = caller.first.split(/:\d/,2).first | ||
raise LoadError, "require_relative is called in #{$1}" if /\A\((.*)\)/ =~ file | ||
require File.expand_path relative_feature, File.dirname(file) | ||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Picky | ||
VERSION = '4.2.0' | ||
VERSION = '4.2.1' | ||
end |