minigems 0.9.5 → 0.9.6

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.5") + PKG_BUILD
18
+ GEM_VERSION = (Gem::MiniGems::VERSION || "0.9.6") + PKG_BUILD
19
19
 
20
20
  RELEASE_NAME = "REL #{GEM_VERSION}"
21
21
 
@@ -2,7 +2,7 @@ module Gem
2
2
  unless const_defined?(:MiniGems)
3
3
  module MiniGems
4
4
 
5
- VERSION = "0.9.5"
5
+ VERSION = "0.9.6"
6
6
 
7
7
  # The next line needs to be kept exactly as shown; it's being replaced
8
8
  # during minigems installation.
@@ -20,6 +20,8 @@ end
20
20
  # Enable minigems unless rubygems has already loaded.
21
21
  unless $LOADED_FEATURES.include?("rubygems.rb")
22
22
 
23
+ $MINIGEMS_SKIPPABLE ||= []
24
+
23
25
  $LOADED_FEATURES << "rubygems.rb"
24
26
  require 'minigems/core'
25
27
  require 'rubygems/specification'
@@ -63,6 +65,8 @@ unless $LOADED_FEATURES.include?("rubygems.rb")
63
65
  if !path.include?('/') && (match = Gem.find_name(path))
64
66
  Gem.activate_gem_from_path(match.first)
65
67
  return gem_original_require(path)
68
+ elsif $MINIGEMS_SKIPPABLE.include?(path)
69
+ raise load_error
66
70
  elsif spec = Gem.searcher.find(path)
67
71
  Gem.activate(spec.name, "= #{spec.version}")
68
72
  return gem_original_require(path)
@@ -29,7 +29,7 @@ module Gem
29
29
 
30
30
  class Command
31
31
  def get_all_referenced_gem_specs
32
- get_all_gem_names.map { |name| Gem.source_index.search(name).last }.compact
32
+ get_all_gem_names.map { |name| Gem.source_index.find_name(name).last }.compact
33
33
  end
34
34
  end
35
35
 
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.5
4
+ version: 0.9.6
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-10-11 00:00:00 +02:00
12
+ date: 2008-10-13 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15