slimgems 1.3.9 → 1.3.9.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.
@@ -1,4 +1,10 @@
1
- === 1.3.9 / 2011-06-01
1
+ === 1.3.9.1 / 2011-06-03
2
+
3
+ SlimGems is a drop-in replacement for RubyGems. See README.md for more.
4
+
5
+ * Fixes slimgems getting uninstalled when `gem uninstall GEM` is called.
6
+
7
+ === 1.3.9 / 2011-06-02
2
8
 
3
9
  SlimGems is reborn! SlimGems is a fork of RubyGems, see README.md for more.
4
10
 
@@ -104,7 +104,7 @@ require 'thread'
104
104
  module Gem
105
105
  NAME = 'SlimGems'
106
106
  GEM_NAME = 'slimgems'
107
- VERSION = '1.3.9'
107
+ VERSION = '1.3.9.1'
108
108
  SlimGemsVersion = RubyGemsVersion = VERSION
109
109
 
110
110
  ##
@@ -121,6 +121,8 @@ By default, this #{Gem::NAME} will install gem as:
121
121
  uninstall_old_gemcutter
122
122
 
123
123
  uninstall_old_rubygems
124
+
125
+ uninstall_old_slimgems
124
126
 
125
127
  install_rdoc
126
128
 
@@ -375,6 +377,15 @@ abort "#{deprecation_message}"
375
377
  rescue Gem::InstallError
376
378
  end
377
379
 
380
+ def uninstall_old_slimgems
381
+ require 'rubygems/uninstaller'
382
+
383
+ ui = Gem::Uninstaller.new(Gem::GEM_NAME, :all => true, :ignore => true,
384
+ :executables => true, :version => "< #{Gem::VERSION}")
385
+ ui.uninstall
386
+ rescue Gem::InstallError
387
+ end
388
+
378
389
  def uninstall_old_rubygems
379
390
  require 'rubygems/uninstaller'
380
391
 
@@ -12,6 +12,7 @@ require 'rubygems/user_interaction'
12
12
 
13
13
  # Restores RubyGems
14
14
  Gem.post_uninstall do |uninstaller|
15
+ next unless uninstaller.spec.name == 'slimgems'
15
16
  site_lib = File.expand_path(File.join(File.dirname(__FILE__), '..'))
16
17
  old_lib = File.join(site_lib, 'rubygems-backup')
17
18
  if File.directory?(old_lib)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: slimgems
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.3.9
5
+ version: 1.3.9.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jim Weirich
@@ -13,7 +13,7 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2011-06-02 00:00:00 -04:00
16
+ date: 2011-06-03 00:00:00 -04:00
17
17
  default_executable:
18
18
  dependencies: []
19
19
 
@@ -223,11 +223,10 @@ has_rdoc: true
223
223
  homepage: http://slimgems.github.com
224
224
  licenses: []
225
225
 
226
- post_install_message: "Upgraded from RubyGems to SlimGems 1.3.9\n\
227
- \xEF\xBB\xBF=== 1.3.9 / 2011-06-01\n\n\
228
- SlimGems is reborn! SlimGems is a fork of RubyGems, see README.md for more.\n\n\
229
- This release fixes some minor issues in installing SlimGems in certain \n\
230
- environments.\n\n"
226
+ post_install_message: "Upgraded from RubyGems to SlimGems 1.3.9.1\n\
227
+ \xEF\xBB\xBF=== 1.3.9.1 / 2011-06-03\n\n\
228
+ SlimGems is a drop-in replacement for RubyGems. See README.md for more.\n\n\
229
+ * Fixes slimgems getting uninstalled when `gem uninstall GEM` is called.\n\n"
231
230
  rdoc_options: []
232
231
 
233
232
  require_paths:
@@ -247,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
246
  requirements: []
248
247
 
249
248
  rubyforge_project:
250
- rubygems_version: 1.3.8
249
+ rubygems_version: 1.3.9.1
251
250
  signing_key:
252
251
  specification_version: 3
253
252
  summary: SlimGems is a package management framework for Ruby