faster_rubygems 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.0
1
+ 0.12.1
@@ -1,2 +1,2 @@
1
1
  require File.dirname(__FILE__) + "/prelude_create_cache"
2
- Gem.create_cache_for_all!
2
+ Gem.create_cache_for_all!
@@ -1,13 +1,23 @@
1
1
  Gem.post_install {
2
- require "faster_rubygems/create_cache_for_all"
2
+ # accomodate for when they install more than one at a time...
3
+ # a straight require won't cut it...
4
+ print 'because of new gem installation '
5
+ success = require "faster_rubygems/create_cache_for_all"
6
+ if !success
7
+ Gem.create_cache_for_all!
8
+ end
3
9
  }
4
10
 
5
11
  Gem.post_uninstall {
6
- require "faster_rubygems/create_cache_for_all"
12
+ print 'because of gem uninstallation '
13
+ success = require "faster_rubygems/create_cache_for_all"
14
+ if !success
15
+ Gem.create_cache_for_all!
16
+ end
7
17
  }
8
18
 
9
- Gem.pre_uninstall { |gem_installer_instance, gem_spec|
10
-
19
+ Gem.pre_uninstall { |gem_installer_instance|
20
+ puts 'removing faster_rubygems as the default for require rubygems...'
11
21
  if gem_installer_instance.spec.name == 'faster_rubygems' && RUBY_VERSION[0..2] == '1.8'
12
22
  begin
13
23
  require "faster_rubygems/unoverride" # just in case
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faster_rubygems
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 12
9
- - 0
10
- version: 0.12.0
9
+ - 1
10
+ version: 0.12.1
11
11
  platform: ruby
12
12
  authors: []
13
13