minigems 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/minigems.rb +5 -3
- metadata +1 -1
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ GEM_EMAIL = "info@atelierfabien.be"
|
|
15
15
|
|
16
16
|
GEM_NAME = "minigems"
|
17
17
|
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
|
18
|
-
GEM_VERSION = (Gem::MiniGems::VERSION || "0.9.
|
18
|
+
GEM_VERSION = (Gem::MiniGems::VERSION || "0.9.7") + PKG_BUILD
|
19
19
|
|
20
20
|
RELEASE_NAME = "REL #{GEM_VERSION}"
|
21
21
|
|
data/lib/minigems.rb
CHANGED
@@ -2,7 +2,7 @@ module Gem
|
|
2
2
|
unless const_defined?(:MiniGems)
|
3
3
|
module MiniGems
|
4
4
|
|
5
|
-
VERSION = "0.9.
|
5
|
+
VERSION = "0.9.7"
|
6
6
|
|
7
7
|
# The next line needs to be kept exactly as shown; it's being replaced
|
8
8
|
# during minigems installation.
|
@@ -57,8 +57,10 @@ unless $LOADED_FEATURES.include?("rubygems.rb")
|
|
57
57
|
def require(path) # :nodoc:
|
58
58
|
gem_original_require path
|
59
59
|
rescue LoadError => load_error
|
60
|
-
if File.basename(path).match(Gem::MiniGems::INLINE_REGEXP)
|
61
|
-
|
60
|
+
if File.basename(path).match(Gem::MiniGems::INLINE_REGEXP) &&
|
61
|
+
Object.const_defined?(:Inline)
|
62
|
+
# RubyInline dynamically created .so/.bundle
|
63
|
+
return gem_original_require(File.join(Inline.directory, path))
|
62
64
|
elsif path == 'Win32API' && !Gem.win_platform?
|
63
65
|
raise load_error
|
64
66
|
elsif load_error.message =~ /#{Regexp.escape path}\z/
|