minigems 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
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.1") + PKG_BUILD
18
+ GEM_VERSION = (Gem::MiniGems::VERSION || "0.9.2") + PKG_BUILD
19
19
 
20
20
  RELEASE_NAME = "REL #{GEM_VERSION}"
21
21
 
data/lib/minigems.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  module Gem
2
+ unless const_defined?(:MiniGems)
2
3
  module MiniGems
3
- VERSION = "0.9.1"
4
-
4
+ VERSION = "0.9.2"
5
+
5
6
  # The next line needs to be kept exactly as shown; it's being replaced
6
7
  # during minigems installation.
7
8
  FULL_RUBYGEMS_METHODS = []
@@ -10,9 +11,10 @@ module Gem
10
11
  return str if str !~ /_/ && str =~ /[A-Z]+.*/
11
12
  str.split('_').map{|e| e.capitalize}.join
12
13
  end
13
-
14
+
14
15
  end
15
16
  end
17
+ end
16
18
 
17
19
  # Enable minigems unless rubygems has already loaded.
18
20
  unless $LOADED_FEATURES.include?("rubygems.rb")
@@ -25,6 +27,7 @@ unless $LOADED_FEATURES.include?("rubygems.rb")
25
27
  require "rubygems/dependency"
26
28
  require "rubygems/specification"
27
29
  require "rbconfig"
30
+ require "pathname"
28
31
 
29
32
  module Kernel
30
33
 
@@ -11,6 +11,11 @@ rescue LoadError
11
11
  require 'rubygems'
12
12
  end
13
13
 
14
+ if File.directory?(gems_dir = File.join(Dir.pwd, 'gems')) ||
15
+ File.directory?(gems_dir = File.join(File.dirname(__FILE__), '..', 'gems'))
16
+ $BUNDLE = true; Gem.clear_paths; Gem.path.unshift(gems_dir)
17
+ end
18
+
14
19
  version = ">= 0"
15
20
 
16
21
  if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
@@ -127,7 +127,7 @@ module Gem
127
127
  def interpolate_wrapper(gem_name, executable_name, mode = 'minigems')
128
128
  @template_code ||= File.read(File.join(minigems_path, 'lib', 'minigems', 'executable_wrapper'))
129
129
  vars = { 'GEM_NAME' => gem_name, 'EXECUTABLE_NAME' => executable_name }
130
- vars['SHEBANG'] = "#!/usr/bin/env " + Gem::ConfigMap[:ruby_install_name]
130
+ vars['SHEBANG'] = "#!#{Gem.ruby}"
131
131
  vars['GEM_MODE'] = mode
132
132
  vars.inject(@template_code) { |str,(k,v)| str.gsub(k,v) }
133
133
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minigems
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabien Franzen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-23 00:00:00 +02:00
12
+ date: 2008-09-27 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15