rubygems-update 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rubygems-update might be problematic. Click here for more details.
- data.tar.gz.sig +0 -0
- data/ChangeLog +79 -0
- data/README +1 -3
- data/Rakefile +61 -49
- data/doc/release_notes/docs-rubygems-announce.rdoc +29 -0
- data/doc/release_notes/rel_0_2_0.rdoc +4 -0
- data/doc/release_notes/rel_0_3_0.rdoc +21 -0
- data/doc/release_notes/rel_0_4_0.rdoc +4 -0
- data/doc/release_notes/rel_0_5_0.rdoc +26 -0
- data/doc/release_notes/rel_0_6_0.rdoc +16 -0
- data/doc/release_notes/rel_0_7_0.rdoc +4 -0
- data/doc/release_notes/rel_0_8_0.rdoc +23 -0
- data/doc/release_notes/rel_0_8_1.rdoc +4 -0
- data/doc/release_notes/rel_0_8_10.rdoc +70 -0
- data/doc/release_notes/rel_0_8_11.rdoc +102 -0
- data/doc/release_notes/rel_0_8_3.rdoc +113 -0
- data/doc/release_notes/rel_0_8_4.rdoc +51 -0
- data/doc/release_notes/rel_0_8_5.rdoc +117 -0
- data/doc/release_notes/rel_0_8_7.rdoc +135 -0
- data/doc/release_notes/rel_0_9_0.rdoc +109 -0
- data/doc/release_notes/rel_0_9_2.rdoc +69 -0
- data/doc/release_notes/rel_0_9_3.rdoc +66 -0
- data/doc/release_notes/rel_0_9_4.rdoc +67 -0
- data/doc/release_notes/rel_0_9_5.rdoc +108 -0
- data/doc/release_notes/rel_1_0_0.rdoc +67 -0
- data/doc/release_notes/rel_1_0_1.rdoc +56 -0
- data/doc/release_notes/rel_1_1_0.rdoc +85 -0
- data/doc/release_notes/rel_1_1_1.rdoc +64 -0
- data/lib/rubygems.rb +29 -5
- data/lib/rubygems/command_manager.rb +1 -1
- data/lib/rubygems/commands/environment_command.rb +1 -1
- data/lib/rubygems/commands/pristine_command.rb +1 -0
- data/lib/rubygems/commands/query_command.rb +4 -2
- data/lib/rubygems/commands/update_command.rb +7 -4
- data/lib/rubygems/dependency_installer.rb +8 -2
- data/lib/rubygems/doc_manager.rb +6 -0
- data/lib/rubygems/indexer.rb +1 -1
- data/lib/rubygems/remote_fetcher.rb +3 -1
- data/lib/rubygems/rubygems_version.rb +1 -1
- data/lib/rubygems/server.rb +5 -5
- data/lib/rubygems/source_index.rb +7 -14
- data/lib/rubygems/source_info_cache.rb +29 -10
- data/lib/rubygems/version_option.rb +1 -2
- data/setup.rb +33 -19
- data/test/gemutilities.rb +13 -0
- data/test/test_gem.rb +58 -21
- data/test/test_gem_commands_environment_command.rb +1 -1
- data/test/test_gem_commands_query_command.rb +6 -4
- data/test/test_gem_commands_update_command.rb +1 -0
- data/test/test_gem_dependency_installer.rb +2 -0
- data/test/test_gem_remote_fetcher.rb +3 -2
- data/test/test_gem_server.rb +1 -1
- data/test/test_gem_source_index.rb +16 -0
- data/test/test_gem_source_info_cache.rb +22 -1
- metadata +32 -32
- metadata.gz.sig +2 -2
- data/doc/doc.css +0 -73
- data/doc/makedoc.rb +0 -10
- data/examples/application/an-app.gemspec +0 -30
- data/examples/application/bin/myapp +0 -3
- data/examples/application/ext/Makefile +0 -139
- data/examples/application/ext/extconf.rb +0 -3
- data/examples/application/ext/foo.c +0 -1
- data/examples/application/lib/somefunctionality.rb +0 -9
- data/gemspecs/README +0 -4
- data/gemspecs/cgikit-1.1.0.gemspec +0 -17
- data/gemspecs/jabber4r.gemspec +0 -26
- data/gemspecs/linguistics.gemspec +0 -22
- data/gemspecs/ook.gemspec +0 -21
- data/gemspecs/progressbar.gemspec +0 -22
- data/gemspecs/redcloth.gemspec +0 -22
- data/gemspecs/rublog.gemspec +0 -23
- data/gemspecs/ruby-doom.gemspec +0 -21
- data/gemspecs/rubyjdwp.gemspec +0 -21
- data/gemspecs/statistics.gemspec +0 -21
- data/redist/session.gem +0 -433
@@ -0,0 +1,108 @@
|
|
1
|
+
= Announce: RubyGems Release 0.9.5
|
2
|
+
|
3
|
+
Release 0.9.5 adds several new features and fixes several bugs.
|
4
|
+
|
5
|
+
Major New Features Include:
|
6
|
+
|
7
|
+
* Platform support
|
8
|
+
* Automatic installation of platform gems
|
9
|
+
* New bandwidth and memory friendlier index file format
|
10
|
+
* "Offline" mode (--no-update-sources)
|
11
|
+
* Bulk update threshold can be specified (-B, --bulk-threshold)
|
12
|
+
* New `gem fetch` command
|
13
|
+
* `gem` now has "really verbose" output when you specify -v
|
14
|
+
* Improved stubs and `gem.bat` on mswin, including better compatiblity
|
15
|
+
with the One-Click Installer.
|
16
|
+
|
17
|
+
Other Changes Include:
|
18
|
+
|
19
|
+
* Time::today is deprecated and will be removed at a future date
|
20
|
+
* Gem::manage_gems is deprecated and will be removed at a future date
|
21
|
+
* `gem install --include-dependencies` (-y) is now deprecated since it is the
|
22
|
+
default, use --ignore-dependencies to turn off automatic dependency
|
23
|
+
installation
|
24
|
+
* Multi-version diamond dependencies only are installed once
|
25
|
+
* Processing a YAML bulk index update takes less memory
|
26
|
+
* `gem install -i` makes sure all depenencies are installed
|
27
|
+
* `gem update --system` reinstalls into the prefix it was originally installed
|
28
|
+
in
|
29
|
+
* `gem update --system` respects --no-rdoc and --no-ri flags
|
30
|
+
* HTTP basic authentication support for proxies
|
31
|
+
* Gem::Specification#platforms should no longer be a String, use
|
32
|
+
Gem::Platform::CURRENT when building binary gems instead
|
33
|
+
* `gem env` has more diagnostic information
|
34
|
+
* require 'rubygems' loads less code
|
35
|
+
* sources.gem is gone, RubyGems now uses built-in defaults
|
36
|
+
* `gem install --source` will no longer add --source by default, use `gem
|
37
|
+
sources --add` to make it a permanent extra source
|
38
|
+
* `gem query` (list) no longer prints details by default
|
39
|
+
* Exact gem names are matched in various places
|
40
|
+
* mkrf extensions are now supported
|
41
|
+
* A gem can depend on a specific RubyGems version
|
42
|
+
* `gem_server` is now `gem server`
|
43
|
+
* `gemlock` is now `gem lock`
|
44
|
+
* `gem_mirror` is now `gem mirror`
|
45
|
+
* `gemwhich` is now `gem which`
|
46
|
+
* `gemri` is no longer included with RubyGems
|
47
|
+
* `index_gem_repository.rb` is now `gem generate_index`
|
48
|
+
* `gem` performs more validation of parameters
|
49
|
+
* Custom rdoc styles are now supported
|
50
|
+
* Gem indexer no longer removes quick index during index creation
|
51
|
+
* Kernel#require only rescues a LoadError for the file being required now
|
52
|
+
* `gem dependencies` can now display some information for remote gems
|
53
|
+
* Updating RubyGems now works with RUBYOPT=-rubygems
|
54
|
+
|
55
|
+
Special thanks to:
|
56
|
+
|
57
|
+
* Daniel Berger
|
58
|
+
* Luis Lavena
|
59
|
+
* Tom Copeland
|
60
|
+
* Wilson Bilkovich
|
61
|
+
|
62
|
+
The full set of changes including contributors is included in the ChangeLog.
|
63
|
+
|
64
|
+
== What is RubyGems?
|
65
|
+
|
66
|
+
RubyGems is a package management system for Ruby applications and
|
67
|
+
libraries. RubyGems one command download makes installing Ruby
|
68
|
+
software fun and enjoyable again. (Ok, not really.)
|
69
|
+
|
70
|
+
Many gems are available for download from the RubyForge site. Browse
|
71
|
+
the list of gems with a "gem list --remote" command and download what
|
72
|
+
you need with a simple "gem install <name-of-gem>". RubyGems takes
|
73
|
+
care of the details of installing, not only the gem you requested, but
|
74
|
+
also any gems needed by the software you selected.
|
75
|
+
|
76
|
+
== How can I get RubyGems?
|
77
|
+
|
78
|
+
If you have a recent version of RubyGems (0.8.5 or later), then all
|
79
|
+
you need to do is:
|
80
|
+
|
81
|
+
$ gem update --system (you might need to be admin/root)
|
82
|
+
|
83
|
+
(Note: You may have to run the command twice if you have any previosly
|
84
|
+
installed rubygems-update gems).
|
85
|
+
|
86
|
+
If you have an older version of RubyGems installed, then you can still
|
87
|
+
do it in two steps:
|
88
|
+
|
89
|
+
$ gem install rubygems-update (again, might need to be admin/root)
|
90
|
+
$ update_rubygems (... here too)
|
91
|
+
|
92
|
+
If you don't have any gems install, there is still the pre-gem
|
93
|
+
approach to getting software ... doing it manually:
|
94
|
+
|
95
|
+
1. DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126
|
96
|
+
2. UNPACK INTO A DIRECTORY AND CD THERE
|
97
|
+
3. INSTALL WITH: ruby setup.rb (you may need admin/root privilege)
|
98
|
+
|
99
|
+
== What's Next
|
100
|
+
|
101
|
+
Integration into Ruby 1.9, RubyGems 1.0.
|
102
|
+
|
103
|
+
== Thanks
|
104
|
+
|
105
|
+
Keep those gems coming!
|
106
|
+
|
107
|
+
-- Jim & Chad & Eric (for the RubyGems team)
|
108
|
+
|
@@ -0,0 +1,67 @@
|
|
1
|
+
= Announce: RubyGems Release 1.0.0
|
2
|
+
|
3
|
+
Release 1.0.0 fixes several bugs.
|
4
|
+
|
5
|
+
Major New Features Include:
|
6
|
+
|
7
|
+
* RubyGems warns about various problems with gemspecs during gem building
|
8
|
+
* More-consistent versioning for the RubyGems software
|
9
|
+
|
10
|
+
Other Changes Include:
|
11
|
+
|
12
|
+
* Fixed various bugs and problems with installing gems on Windows
|
13
|
+
* Fixed using `gem server` for installing gems
|
14
|
+
* Various operations are even more verbose with --verbose
|
15
|
+
* Built gems are now backwards compatible with 0.9.4
|
16
|
+
* Improved detection of RUBYOPT loading rubygems
|
17
|
+
* `ruby setup.rb` now has a --help option
|
18
|
+
* Gem::Specification#bindir is now respected on installation
|
19
|
+
* Executable stubs can now be installed to match ruby's name, so if ruby is
|
20
|
+
installed as 'ruby18', foo_exec will be installed as 'foo_exec18'
|
21
|
+
* `gem unpack` can now unpack into a specific directory with --target
|
22
|
+
* OpenSSL is no longer required by default
|
23
|
+
|
24
|
+
Deprecations and Deletions:
|
25
|
+
|
26
|
+
* Kernel#require_gem has been removed
|
27
|
+
* Executables without a shebang will not be wrapped in a future version, this
|
28
|
+
may cause such executables to fail to operate on installation
|
29
|
+
* Gem::Platform constants other than RUBY and CURRENT have been removed
|
30
|
+
* Gem::RemoteInstaller was removed
|
31
|
+
* Gem::Specification#test_suite_file and #test_suite_file= are deprecated in
|
32
|
+
favor of #test_file and #test_file=
|
33
|
+
* Gem::Specification#autorequire= has been deprecated
|
34
|
+
* Time::today will be removed in a future version
|
35
|
+
|
36
|
+
== How can I get RubyGems?
|
37
|
+
|
38
|
+
NOTE: If you have installed RubyGems using a package you may want to install a
|
39
|
+
new RubyGems through the same packaging system.
|
40
|
+
|
41
|
+
If you have a recent version of RubyGems (0.8.5 or later), then all
|
42
|
+
you need to do is:
|
43
|
+
|
44
|
+
$ gem update --system (you might need to be admin/root)
|
45
|
+
|
46
|
+
(Note: You may have to run the command twice if you have any previosly
|
47
|
+
installed rubygems-update gems).
|
48
|
+
|
49
|
+
If you have an older version of RubyGems installed, then you can still
|
50
|
+
do it in two steps:
|
51
|
+
|
52
|
+
$ gem install rubygems-update (again, might need to be admin/root)
|
53
|
+
$ update_rubygems (... here too)
|
54
|
+
|
55
|
+
If you don't have any gems install, there is still the pre-gem
|
56
|
+
approach to getting software ... doing it manually:
|
57
|
+
|
58
|
+
1. DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126
|
59
|
+
2. UNPACK INTO A DIRECTORY AND CD THERE
|
60
|
+
3. INSTALL WITH: ruby setup.rb (you may need admin/root privilege)
|
61
|
+
|
62
|
+
== Thanks
|
63
|
+
|
64
|
+
Keep those gems coming!
|
65
|
+
|
66
|
+
-- Jim & Chad & Eric (for the RubyGems team)
|
67
|
+
|
@@ -0,0 +1,56 @@
|
|
1
|
+
= Announce: RubyGems Release 1.0.1
|
2
|
+
|
3
|
+
Release 1.0.1 fixes a few bugs.
|
4
|
+
|
5
|
+
Bugs Fixed:
|
6
|
+
|
7
|
+
* Installation on Ruby 1.8.3 through 1.8.5 fixed
|
8
|
+
* `gem build` on 1.8.3 fixed
|
9
|
+
|
10
|
+
Other Changes Include:
|
11
|
+
|
12
|
+
* Since RubyGems 0.9.5, RubyGems is no longer supported on Ruby 1.8.2 or older,
|
13
|
+
this is official in RubyGems 1.0.1.
|
14
|
+
|
15
|
+
== How can I get RubyGems?
|
16
|
+
|
17
|
+
NOTE: If you have installed RubyGems using a package you may want to install a
|
18
|
+
new RubyGems through the same packaging system.
|
19
|
+
|
20
|
+
If you have a recent version of RubyGems (0.8.5 or later), then all
|
21
|
+
you need to do is:
|
22
|
+
|
23
|
+
$ gem update --system (you might need to be admin/root)
|
24
|
+
|
25
|
+
(Note: You may have to run the command twice if you have any previosly
|
26
|
+
installed rubygems-update gems).
|
27
|
+
|
28
|
+
If you have an older version of RubyGems installed, then you can still
|
29
|
+
do it in two steps:
|
30
|
+
|
31
|
+
$ gem install rubygems-update (again, might need to be admin/root)
|
32
|
+
$ update_rubygems (... here too)
|
33
|
+
|
34
|
+
If you don't have any gems install, there is still the pre-gem
|
35
|
+
approach to getting software ... doing it manually:
|
36
|
+
|
37
|
+
1. DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126
|
38
|
+
2. UNPACK INTO A DIRECTORY AND CD THERE
|
39
|
+
3. INSTALL WITH: ruby setup.rb (you may need admin/root privilege)
|
40
|
+
|
41
|
+
== To File Bugs
|
42
|
+
|
43
|
+
The RubyGems bug tracker can be found on RubyForge at:
|
44
|
+
http://rubyforge.org/tracker/?func=add&group_id=126&atid=575
|
45
|
+
|
46
|
+
When filing a bug, `gem env` output will be helpful in diagnosing the issue.
|
47
|
+
|
48
|
+
If you find a bug where RubyGems crashes, please provide debug output. You can
|
49
|
+
do that with `gem --debug the_command`.
|
50
|
+
|
51
|
+
== Thanks
|
52
|
+
|
53
|
+
Keep those gems coming!
|
54
|
+
|
55
|
+
-- Jim & Chad & Eric (for the RubyGems team)
|
56
|
+
|
@@ -0,0 +1,85 @@
|
|
1
|
+
= Announce: RubyGems Release 1.1.0
|
2
|
+
|
3
|
+
Release 1.1.0 adds some new features and fixes some bugs.
|
4
|
+
|
5
|
+
New features:
|
6
|
+
|
7
|
+
* RubyGems now uses persistent connections on index updates. Index updates are
|
8
|
+
much faster now.
|
9
|
+
* RubyGems only updates from a latest index by default, cutting candidate gems
|
10
|
+
for updates to roughly 1/4 (at present). Index updates are even faster
|
11
|
+
still.
|
12
|
+
* `gem list -r` may only show the latest version of a gem, add --all to see
|
13
|
+
all gems.
|
14
|
+
* `gem spec` now extracts specifications from .gem files.
|
15
|
+
* `gem query --installed` to aid automation of checking for gems.
|
16
|
+
|
17
|
+
Bugs Fixed:
|
18
|
+
|
19
|
+
* RubyGems works with both Config and RbConfig now.
|
20
|
+
* Executables are now cleaned upon uninstall.
|
21
|
+
* You can now uninstall from a particular directory.
|
22
|
+
* Updating from non-default sources fixed.
|
23
|
+
* Executable stubs now use ruby install name in shebang.
|
24
|
+
* `gem unpack` checks every directory in Gem.path now.
|
25
|
+
* `gem install` now exits with non-zero exit code when appropriate.
|
26
|
+
* `gem update` only updates gems that need updates.
|
27
|
+
* `gem update` doesn't force remote-only updates.
|
28
|
+
* `gem update` handles dependencies properly when updating.
|
29
|
+
* Gems are now loaded in Gem.path order.
|
30
|
+
* Gem stub scripts on windows now work outside Gem.bindir.
|
31
|
+
* `gem sources -r` now works without network access.
|
32
|
+
|
33
|
+
Other Changes Include:
|
34
|
+
|
35
|
+
* RubyGems now requires Ruby > 1.8.3.
|
36
|
+
* Release notes are now printed upon installation.
|
37
|
+
* `gem env path` now prints a usable path.
|
38
|
+
* `gem install` reverts to local-only installation upon network error.
|
39
|
+
* Tar handling code refactoring and cleanup.
|
40
|
+
* Gem::DependencyInstaller's API has changed.
|
41
|
+
|
42
|
+
For a full list of changes to RubyGems, see the ChangeLog file.
|
43
|
+
|
44
|
+
== How can I get RubyGems?
|
45
|
+
|
46
|
+
NOTE: If you have installed RubyGems using a package system you may want to
|
47
|
+
install a new RubyGems through the same packaging system.
|
48
|
+
|
49
|
+
If you have a recent version of RubyGems (0.8.5 or later), then all
|
50
|
+
you need to do is:
|
51
|
+
|
52
|
+
$ gem update --system (you might need to be admin/root)
|
53
|
+
|
54
|
+
(Note: You may have to run the command twice if you have any previosly
|
55
|
+
installed rubygems-update gems).
|
56
|
+
|
57
|
+
If you have an older version of RubyGems installed, then you can still
|
58
|
+
do it in two steps:
|
59
|
+
|
60
|
+
$ gem install rubygems-update (again, might need to be admin/root)
|
61
|
+
$ update_rubygems (... here too)
|
62
|
+
|
63
|
+
If you don't have any gems install, there is still the pre-gem
|
64
|
+
approach to getting software ... doing it manually:
|
65
|
+
|
66
|
+
1. DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126
|
67
|
+
2. UNPACK INTO A DIRECTORY AND CD THERE
|
68
|
+
3. INSTALL WITH: ruby setup.rb (you may need admin/root privilege)
|
69
|
+
|
70
|
+
== To File Bugs
|
71
|
+
|
72
|
+
The RubyGems bug tracker can be found on RubyForge at:
|
73
|
+
http://rubyforge.org/tracker/?func=add&group_id=126&atid=575
|
74
|
+
|
75
|
+
When filing a bug, `gem env` output will be helpful in diagnosing the issue.
|
76
|
+
|
77
|
+
If you find a bug where RubyGems crashes, please provide debug output. You can
|
78
|
+
do that with `gem --debug the_command`.
|
79
|
+
|
80
|
+
== Thanks
|
81
|
+
|
82
|
+
Keep those gems coming!
|
83
|
+
|
84
|
+
-- Jim & Chad & Eric (for the RubyGems team)
|
85
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
= Announce: RubyGems Release 1.1.1
|
2
|
+
|
3
|
+
Release 1.1.1 fixes some bugs.
|
4
|
+
|
5
|
+
Bugs Fixed:
|
6
|
+
|
7
|
+
* Gem.prefix now returns non-nil only when RubyGems was installed outside
|
8
|
+
sitelibdir or libdir.
|
9
|
+
* The `gem server` gem list now correctly links to gem details.
|
10
|
+
* `gem update --system` now passes --no-format-executable to setup.rb.
|
11
|
+
* Gem::SourceIndex#refresh! now works with multiple gem repositories.
|
12
|
+
* Downloaded gems now go into --install-dir's cache directory.
|
13
|
+
* Various fixes to downloading gem metadata.
|
14
|
+
* `gem install --force` now ignores network errors too.
|
15
|
+
* `gem pristine` now rebuilds extensions.
|
16
|
+
* `gem update --system` now works on virgin Apple ruby.
|
17
|
+
* Gem::RemoteFetcher handles Errno::ECONNABORTED.
|
18
|
+
* Printing of release notes fixed.
|
19
|
+
|
20
|
+
For a full list of changes to RubyGems including credits, see the ChangeLog
|
21
|
+
file.
|
22
|
+
|
23
|
+
== How can I get RubyGems?
|
24
|
+
|
25
|
+
NOTE: If you have installed RubyGems using a package system you may want to
|
26
|
+
install a new RubyGems through the same packaging system.
|
27
|
+
|
28
|
+
If you have a recent version of RubyGems (0.8.5 or later), then all
|
29
|
+
you need to do is:
|
30
|
+
|
31
|
+
$ gem update --system (you might need to be admin/root)
|
32
|
+
|
33
|
+
(Note: You may have to run the command twice if you have any previosly
|
34
|
+
installed rubygems-update gems).
|
35
|
+
|
36
|
+
If you have an older version of RubyGems installed, then you can still
|
37
|
+
do it in two steps:
|
38
|
+
|
39
|
+
$ gem install rubygems-update (again, might need to be admin/root)
|
40
|
+
$ update_rubygems (... here too)
|
41
|
+
|
42
|
+
If you don't have any gems install, there is still the pre-gem
|
43
|
+
approach to getting software ... doing it manually:
|
44
|
+
|
45
|
+
1. DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126
|
46
|
+
2. UNPACK INTO A DIRECTORY AND CD THERE
|
47
|
+
3. INSTALL WITH: ruby setup.rb (you may need admin/root privilege)
|
48
|
+
|
49
|
+
== To File Bugs
|
50
|
+
|
51
|
+
The RubyGems bug tracker can be found on RubyForge at:
|
52
|
+
http://rubyforge.org/tracker/?func=add&group_id=126&atid=575
|
53
|
+
|
54
|
+
When filing a bug, `gem env` output will be helpful in diagnosing the issue.
|
55
|
+
|
56
|
+
If you find a bug where RubyGems crashes, please provide debug output. You can
|
57
|
+
do that with `gem --debug the_command`.
|
58
|
+
|
59
|
+
== Thanks
|
60
|
+
|
61
|
+
Keep those gems coming!
|
62
|
+
|
63
|
+
-- Jim & Chad & Eric (for the RubyGems team)
|
64
|
+
|
data/lib/rubygems.rb
CHANGED
@@ -97,7 +97,7 @@ module Gem
|
|
97
97
|
|
98
98
|
@configuration = nil
|
99
99
|
@loaded_specs = {}
|
100
|
-
@platforms =
|
100
|
+
@platforms = []
|
101
101
|
@ruby = nil
|
102
102
|
@sources = []
|
103
103
|
|
@@ -215,7 +215,7 @@ module Gem
|
|
215
215
|
|
216
216
|
def self.bindir(install_dir=Gem.dir)
|
217
217
|
return File.join(install_dir, 'bin') unless
|
218
|
-
|
218
|
+
install_dir.to_s == Gem.default_dir
|
219
219
|
Gem.default_bindir
|
220
220
|
end
|
221
221
|
|
@@ -451,10 +451,21 @@ module Gem
|
|
451
451
|
end
|
452
452
|
|
453
453
|
##
|
454
|
-
#
|
454
|
+
# Set array of platforms this RubyGems supports (primarily for testing).
|
455
|
+
|
456
|
+
def self.platforms=(platforms)
|
457
|
+
@platforms = platforms
|
458
|
+
end
|
455
459
|
|
460
|
+
##
|
461
|
+
# Array of platforms this RubyGems supports.
|
462
|
+
|
456
463
|
def self.platforms
|
457
|
-
@platforms ||= [
|
464
|
+
@platforms ||= []
|
465
|
+
if @platforms.empty?
|
466
|
+
@platforms = [Gem::Platform::RUBY, Gem::Platform.local]
|
467
|
+
end
|
468
|
+
@platforms
|
458
469
|
end
|
459
470
|
|
460
471
|
##
|
@@ -463,13 +474,26 @@ module Gem
|
|
463
474
|
def self.prefix
|
464
475
|
prefix = File.dirname File.expand_path(__FILE__)
|
465
476
|
|
466
|
-
if prefix == File.expand_path(ConfigMap[:sitelibdir])
|
477
|
+
if File.dirname(prefix) == File.expand_path(ConfigMap[:sitelibdir]) or
|
478
|
+
File.dirname(prefix) == File.expand_path(ConfigMap[:libdir]) or
|
479
|
+
'lib' != File.basename(prefix) then
|
467
480
|
nil
|
468
481
|
else
|
469
482
|
File.dirname prefix
|
470
483
|
end
|
471
484
|
end
|
472
485
|
|
486
|
+
##
|
487
|
+
# Refresh source_index from disk and clear searcher.
|
488
|
+
|
489
|
+
def self.refresh
|
490
|
+
source_index.refresh!
|
491
|
+
|
492
|
+
MUTEX.synchronize do
|
493
|
+
@searcher = nil
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
473
497
|
##
|
474
498
|
# Safely read a file in binary mode on all platforms.
|
475
499
|
|