slimgems 1.3.9 → 1.3.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -1
- data/lib/rubygems.rb +1 -1
- data/lib/rubygems/commands/setup_command.rb +11 -0
- data/lib/rubygems/uninstaller.rb +1 -0
- metadata +7 -8
data/History.txt
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
=== 1.3.9 / 2011-06-
|
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
|
|
data/lib/rubygems.rb
CHANGED
@@ -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
|
|
data/lib/rubygems/uninstaller.rb
CHANGED
@@ -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-
|
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-
|
228
|
-
SlimGems is
|
229
|
-
|
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.
|
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
|