rubygems-update 1.4.2 → 1.5.0
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/.autotest +4 -5
- data/{test/foo/discover.rb → .gemtest} +0 -0
- data/ChangeLog +13 -0
- data/History.txt +35 -1
- data/Manifest.txt +89 -88
- data/README.rdoc +21 -10
- data/Rakefile +31 -17
- data/UPGRADING.rdoc +81 -0
- data/ci_build.sh +27 -0
- data/cruise_config.rb +20 -13
- data/lib/rbconfig/datadir.rb +1 -1
- data/lib/rubygems.rb +102 -45
- data/lib/rubygems/builder.rb +5 -11
- data/lib/rubygems/command_manager.rb +0 -1
- data/lib/rubygems/commands/check_command.rb +2 -17
- data/lib/rubygems/commands/cleanup_command.rb +1 -1
- data/lib/rubygems/commands/dependency_command.rb +5 -18
- data/lib/rubygems/commands/environment_command.rb +5 -4
- data/lib/rubygems/commands/fetch_command.rb +0 -1
- data/lib/rubygems/commands/generate_index_command.rb +1 -10
- data/lib/rubygems/commands/help_command.rb +0 -5
- data/lib/rubygems/commands/query_command.rb +4 -24
- data/lib/rubygems/commands/setup_command.rb +4 -19
- data/lib/rubygems/commands/sources_command.rb +15 -37
- data/lib/rubygems/commands/specification_command.rb +1 -2
- data/lib/rubygems/commands/unpack_command.rb +19 -7
- data/lib/rubygems/commands/update_command.rb +29 -44
- data/lib/rubygems/config_file.rb +25 -19
- data/lib/rubygems/custom_require.rb +4 -6
- data/lib/rubygems/dependency.rb +1 -43
- data/lib/rubygems/dependency_installer.rb +1 -1
- data/lib/rubygems/doc_manager.rb +3 -1
- data/lib/rubygems/ext/builder.rb +3 -1
- data/lib/rubygems/ext/rake_builder.rb +10 -2
- data/lib/rubygems/format.rb +7 -4
- data/lib/rubygems/gem_runner.rb +1 -1
- data/lib/rubygems/indexer.rb +11 -74
- data/lib/rubygems/install_update_options.rb +13 -8
- data/lib/rubygems/installer.rb +139 -95
- data/{test/gem_installer_test_case.rb → lib/rubygems/installer_test_case.rb} +41 -2
- data/{test/mockgemui.rb → lib/rubygems/mock_gem_ui.rb} +8 -1
- data/lib/rubygems/old_format.rb +2 -1
- data/lib/rubygems/package.rb +17 -2
- data/lib/rubygems/package/tar_input.rb +7 -3
- data/lib/rubygems/package/tar_output.rb +2 -0
- data/lib/rubygems/package/tar_reader/entry.rb +4 -0
- data/{test/gem_package_tar_test_case.rb → lib/rubygems/package/tar_test_case.rb} +5 -2
- data/lib/rubygems/package_task.rb +6 -4
- data/lib/rubygems/remote_fetcher.rb +10 -2
- data/lib/rubygems/require_paths_builder.rb +2 -1
- data/lib/rubygems/server.rb +3 -44
- data/lib/rubygems/source_index.rb +3 -216
- data/lib/rubygems/spec_fetcher.rb +15 -63
- data/lib/rubygems/specification.rb +1 -1
- data/{test/gemutilities.rb → lib/rubygems/test_case.rb} +219 -90
- data/lib/rubygems/test_utilities.rb +7 -20
- data/lib/rubygems/uninstaller.rb +27 -28
- data/lib/rubygems/user_interaction.rb +81 -42
- data/lib/rubygems/validator.rb +0 -73
- data/test/{bogussources.rb → rubygems/bogussources.rb} +0 -0
- data/test/{data → rubygems/data}/gem-private_key.pem +0 -0
- data/test/{data → rubygems/data}/gem-public_cert.pem +0 -0
- data/test/{fake_certlib → rubygems/fake_certlib}/openssl.rb +0 -0
- data/test/rubygems/foo/discover.rb +0 -0
- data/test/{functional.rb → rubygems/functional.rb} +0 -0
- data/test/{insure_session.rb → rubygems/insure_session.rb} +0 -0
- data/test/{plugin → rubygems/plugin}/exception/rubygems_plugin.rb +0 -0
- data/test/{plugin → rubygems/plugin}/load/rubygems_plugin.rb +0 -0
- data/test/{plugin → rubygems/plugin}/standarderror/rubygems_plugin.rb +0 -0
- data/test/{private_key.pem → rubygems/private_key.pem} +0 -0
- data/test/{public_cert.pem → rubygems/public_cert.pem} +0 -0
- data/test/rubygems/{commands → rubygems/commands}/crash_command.rb +0 -0
- data/test/{rubygems_plugin.rb → rubygems/rubygems_plugin.rb} +0 -0
- data/test/rubygems/sff/discover.rb +0 -0
- data/test/{simple_gem.rb → rubygems/simple_gem.rb} +2 -2
- data/test/{test_config.rb → rubygems/test_config.rb} +2 -2
- data/test/{test_gem.rb → rubygems/test_gem.rb} +12 -2
- data/test/{test_gem_builder.rb → rubygems/test_gem_builder.rb} +2 -2
- data/test/{test_gem_command.rb → rubygems/test_gem_command.rb} +3 -3
- data/test/{test_gem_command_manager.rb → rubygems/test_gem_command_manager.rb} +15 -6
- data/test/{test_gem_commands_build_command.rb → rubygems/test_gem_commands_build_command.rb} +2 -2
- data/test/{test_gem_commands_cert_command.rb → rubygems/test_gem_commands_cert_command.rb} +2 -2
- data/test/{test_gem_commands_check_command.rb → rubygems/test_gem_commands_check_command.rb} +2 -2
- data/test/{test_gem_commands_contents_command.rb → rubygems/test_gem_commands_contents_command.rb} +3 -3
- data/test/{test_gem_commands_dependency_command.rb → rubygems/test_gem_commands_dependency_command.rb} +4 -4
- data/test/{test_gem_commands_environment_command.rb → rubygems/test_gem_commands_environment_command.rb} +12 -3
- data/test/{test_gem_commands_fetch_command.rb → rubygems/test_gem_commands_fetch_command.rb} +2 -2
- data/test/{test_gem_commands_generate_index_command.rb → rubygems/test_gem_commands_generate_index_command.rb} +7 -11
- data/test/{test_gem_commands_install_command.rb → rubygems/test_gem_commands_install_command.rb} +2 -2
- data/test/{test_gem_commands_list_command.rb → rubygems/test_gem_commands_list_command.rb} +2 -2
- data/test/{test_gem_commands_lock_command.rb → rubygems/test_gem_commands_lock_command.rb} +2 -2
- data/test/{test_gem_commands_outdated_command.rb → rubygems/test_gem_commands_outdated_command.rb} +2 -2
- data/test/{test_gem_commands_owner_command.rb → rubygems/test_gem_commands_owner_command.rb} +5 -5
- data/test/{test_gem_commands_pristine_command.rb → rubygems/test_gem_commands_pristine_command.rb} +2 -2
- data/test/{test_gem_commands_push_command.rb → rubygems/test_gem_commands_push_command.rb} +3 -3
- data/test/{test_gem_commands_query_command.rb → rubygems/test_gem_commands_query_command.rb} +2 -2
- data/test/{test_gem_commands_server_command.rb → rubygems/test_gem_commands_server_command.rb} +2 -2
- data/test/{test_gem_commands_sources_command.rb → rubygems/test_gem_commands_sources_command.rb} +8 -8
- data/test/{test_gem_commands_specification_command.rb → rubygems/test_gem_commands_specification_command.rb} +3 -3
- data/test/{test_gem_commands_stale_command.rb → rubygems/test_gem_commands_stale_command.rb} +2 -2
- data/test/{test_gem_commands_uninstall_command.rb → rubygems/test_gem_commands_uninstall_command.rb} +16 -10
- data/test/{test_gem_commands_unpack_command.rb → rubygems/test_gem_commands_unpack_command.rb} +42 -2
- data/test/{test_gem_commands_update_command.rb → rubygems/test_gem_commands_update_command.rb} +2 -2
- data/test/{test_gem_commands_which_command.rb → rubygems/test_gem_commands_which_command.rb} +3 -3
- data/test/{test_gem_config_file.rb → rubygems/test_gem_config_file.rb} +2 -2
- data/test/{test_gem_dependency.rb → rubygems/test_gem_dependency.rb} +3 -27
- data/test/{test_gem_dependency_installer.rb → rubygems/test_gem_dependency_installer.rb} +2 -2
- data/test/{test_gem_dependency_list.rb → rubygems/test_gem_dependency_list.rb} +3 -3
- data/test/{test_gem_doc_manager.rb → rubygems/test_gem_doc_manager.rb} +2 -2
- data/test/{test_gem_ext_configure_builder.rb → rubygems/test_gem_ext_configure_builder.rb} +4 -4
- data/test/{test_gem_ext_ext_conf_builder.rb → rubygems/test_gem_ext_ext_conf_builder.rb} +46 -2
- data/test/{test_gem_ext_rake_builder.rb → rubygems/test_gem_ext_rake_builder.rb} +2 -2
- data/test/{test_gem_format.rb → rubygems/test_gem_format.rb} +24 -6
- data/test/{test_gem_gem_path_searcher.rb → rubygems/test_gem_gem_path_searcher.rb} +2 -2
- data/test/{test_gem_gem_runner.rb → rubygems/test_gem_gem_runner.rb} +2 -2
- data/test/{test_gem_gemcutter_utilities.rb → rubygems/test_gem_gemcutter_utilities.rb} +4 -4
- data/test/{test_gem_indexer.rb → rubygems/test_gem_indexer.rb} +4 -121
- data/test/{test_gem_install_update_options.rb → rubygems/test_gem_install_update_options.rb} +3 -3
- data/test/{test_gem_installer.rb → rubygems/test_gem_installer.rb} +106 -13
- data/test/{test_gem_local_remote_options.rb → rubygems/test_gem_local_remote_options.rb} +2 -2
- data/test/{test_gem_package_tar_header.rb → rubygems/test_gem_package_tar_header.rb} +2 -2
- data/test/{test_gem_package_tar_input.rb → rubygems/test_gem_package_tar_input.rb} +21 -4
- data/test/{test_gem_package_tar_output.rb → rubygems/test_gem_package_tar_output.rb} +2 -2
- data/test/{test_gem_package_tar_reader.rb → rubygems/test_gem_package_tar_reader.rb} +2 -2
- data/test/{test_gem_package_tar_reader_entry.rb → rubygems/test_gem_package_tar_reader_entry.rb} +12 -2
- data/test/{test_gem_package_tar_writer.rb → rubygems/test_gem_package_tar_writer.rb} +2 -2
- data/test/{test_gem_package_task.rb → rubygems/test_gem_package_task.rb} +15 -2
- data/test/{test_gem_platform.rb → rubygems/test_gem_platform.rb} +2 -2
- data/test/{test_gem_remote_fetcher.rb → rubygems/test_gem_remote_fetcher.rb} +7 -7
- data/test/{test_gem_requirement.rb → rubygems/test_gem_requirement.rb} +2 -2
- data/test/{test_gem_security.rb → rubygems/test_gem_security.rb} +3 -4
- data/test/{test_gem_server.rb → rubygems/test_gem_server.rb} +2 -132
- data/test/rubygems/test_gem_silent_ui.rb +113 -0
- data/test/{test_gem_source_index.rb → rubygems/test_gem_source_index.rb} +2 -61
- data/test/{test_gem_spec_fetcher.rb → rubygems/test_gem_spec_fetcher.rb} +2 -2
- data/test/{test_gem_specification.rb → rubygems/test_gem_specification.rb} +4 -4
- data/test/{test_gem_stream_ui.rb → rubygems/test_gem_stream_ui.rb} +24 -2
- data/test/{test_gem_text.rb → rubygems/test_gem_text.rb} +2 -2
- data/test/{test_gem_uninstaller.rb → rubygems/test_gem_uninstaller.rb} +15 -12
- data/test/{test_gem_validator.rb → rubygems/test_gem_validator.rb} +3 -3
- data/test/{test_gem_version.rb → rubygems/test_gem_version.rb} +2 -2
- data/test/{test_gem_version_option.rb → rubygems/test_gem_version_option.rb} +2 -2
- data/test/{test_kernel.rb → rubygems/test_kernel.rb} +7 -10
- metadata +281 -177
- metadata.gz.sig +0 -0
- data/lib/rubygems/commands/mirror_command.rb +0 -111
- data/lib/rubygems/source_info_cache.rb +0 -394
- data/lib/rubygems/source_info_cache_entry.rb +0 -56
- data/test/test_gem_commands_mirror_command.rb +0 -60
data.tar.gz.sig
CHANGED
Binary file
|
data/.autotest
CHANGED
@@ -3,27 +3,26 @@
|
|
3
3
|
require 'autotest/restart'
|
4
4
|
|
5
5
|
Autotest.add_hook :initialize do |at|
|
6
|
-
at.order = :natural # I am a bad person - Eric Hodel
|
7
6
|
at.testlib = 'minitest/autorun'
|
8
7
|
|
9
8
|
at.add_exception %r%/\.git/%
|
10
9
|
at.add_exception %r%/\.svn/%
|
11
10
|
at.add_exception %r%\.rbc$%
|
12
|
-
at.add_exception %r%test/rubygems%
|
11
|
+
at.add_exception %r%test/rubygems/rubygems%
|
13
12
|
|
14
13
|
at.find_directories.clear
|
15
14
|
at.find_directories.push 'lib', 'test'
|
16
15
|
|
17
16
|
at.add_mapping %r%^lib/rubygems.rb$% do |_, m|
|
18
|
-
"test/test_gem.rb"
|
17
|
+
"test/rubygems/test_gem.rb"
|
19
18
|
end
|
20
19
|
|
21
20
|
at.add_mapping %r%^lib/rubygems/(.*).rb$% do |_, m|
|
22
|
-
"test/test_gem_#{m[1].gsub '/', '_'}.rb"
|
21
|
+
"test/rubygems/test_gem_#{m[1].gsub '/', '_'}.rb"
|
23
22
|
end
|
24
23
|
|
25
24
|
at.add_mapping %r%^test/support/(.*).rb$% do |_, m|
|
26
|
-
at.files_matching %r%^test/test_(.*)\.rb$%
|
25
|
+
at.files_matching %r%^test/rubygems/test_(.*)\.rb$%
|
27
26
|
end
|
28
27
|
|
29
28
|
# at.add_mapping %r%^test/support/(.*).rb$% do |_, m|
|
File without changes
|
data/ChangeLog
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
|
3
|
+
2010-12-31 Luis Lavena <luislavena@gmail.com>
|
4
|
+
|
5
|
+
* lib/rubygems.rb (Gem.activate): Do not add gem bindir to the
|
6
|
+
$LOAD_PATH. Bug #25208.
|
7
|
+
* test/test_kernel.rb: ditto.
|
8
|
+
* lib/rubygems/commands/environment_command.rb: Add support for 'platform'
|
9
|
+
suboption. Feature Request #28300
|
10
|
+
* test/test_gem_commands_environment_command.rb: ditto.
|
11
|
+
* lib/rubygems/ext/builder.rb: Give priority to make-prog from Ruby
|
12
|
+
configure process. Bug #28399
|
13
|
+
* test/test_gem_ext_ext_conf_builder.rb: Added 2 tests to check both
|
14
|
+
--with-make-prog and ENV['make'] conditions.
|
15
|
+
|
3
16
|
2010-12-29 Luis Lavena <luislavena@gmail.com>
|
4
17
|
|
5
18
|
* lib/rubygems/user_interaction.rb: Implemented SimpleDownloadReporter
|
data/History.txt
CHANGED
@@ -1,4 +1,36 @@
|
|
1
|
-
=== 1.
|
1
|
+
=== 1.5.0 / 2011-01-31
|
2
|
+
|
3
|
+
Major Enhancements:
|
4
|
+
|
5
|
+
* Finally fixed all known 1.9.x issues. Upgrading is now possible!
|
6
|
+
* Merged huge 1.3.7/ruby-core changes to master.
|
7
|
+
|
8
|
+
Minor Enhancements:
|
9
|
+
|
10
|
+
* Added UPGRADING.rdoc to help deal with 1.9 issues.
|
11
|
+
* Gem::Format now gives better errors for corrupt gem files and includes paths
|
12
|
+
* Pre-install hooks can now abort gem installation by returning false
|
13
|
+
* Move shareable TestCase classes to lib/ to help plugin authors with tests.
|
14
|
+
* Add post-build hooks that can cancel the gem install
|
15
|
+
* Always require custom_require now that require_gem is gone
|
16
|
+
* Added GemInstaller accessors for @options so plugins can reference them.
|
17
|
+
* Optimized Gem.find_files. ~10% faster than 1.4.2. ~40% faster than ruby 1.9.
|
18
|
+
* Gem::SilentUI now behaves like Gem::StreamUI for asking questions. Patch by
|
19
|
+
Erik Hollensbe.
|
20
|
+
|
21
|
+
Bug Fixes:
|
22
|
+
|
23
|
+
* `gem update` was implicitly doing --system.
|
24
|
+
* 1.9.3: Fixed encoding errors causing gem installs to die during rdoc phase.
|
25
|
+
* Add RubyForge URL to README. Closes #28825
|
26
|
+
* 1.9.3: Use chdir {} when building extensions to prevent warnings. Fixes #4337
|
27
|
+
* 1.9.2: Fix circular require warning.
|
28
|
+
* Make requiring openssl even lazier at request of NaHi
|
29
|
+
* `gem unpack` will now download the gem if it is not in the cache. Patch by
|
30
|
+
Erik Hollensbe.
|
31
|
+
* rubygems-update lists its development dependencies again
|
32
|
+
|
33
|
+
=== 1.4.2 / 2011-01-06
|
2
34
|
|
3
35
|
Bug fixes:
|
4
36
|
|
@@ -33,6 +65,8 @@ New features:
|
|
33
65
|
* Allow searching w/ file extensions: gem which fileutils.rb
|
34
66
|
* Progress indicator during download (Ryan Melton)
|
35
67
|
* Speed up Gem::Version#<=> by 2-3x in common cases. (raggi)
|
68
|
+
* --source is now additive with your current sources.
|
69
|
+
Use --clear-sources first to maintain previous behavior.
|
36
70
|
|
37
71
|
Bug fixes:
|
38
72
|
|
data/Manifest.txt
CHANGED
@@ -7,8 +7,10 @@ LICENSE.txt
|
|
7
7
|
Manifest.txt
|
8
8
|
README.rdoc
|
9
9
|
Rakefile
|
10
|
+
UPGRADING.rdoc
|
10
11
|
bin/gem
|
11
12
|
bin/update_rubygems
|
13
|
+
ci_build.sh
|
12
14
|
cruise_config.rb
|
13
15
|
hide_lib_for_update/note.txt
|
14
16
|
lib/gauntlet_rubygems.rb
|
@@ -30,7 +32,6 @@ lib/rubygems/commands/help_command.rb
|
|
30
32
|
lib/rubygems/commands/install_command.rb
|
31
33
|
lib/rubygems/commands/list_command.rb
|
32
34
|
lib/rubygems/commands/lock_command.rb
|
33
|
-
lib/rubygems/commands/mirror_command.rb
|
34
35
|
lib/rubygems/commands/outdated_command.rb
|
35
36
|
lib/rubygems/commands/owner_command.rb
|
36
37
|
lib/rubygems/commands/pristine_command.rb
|
@@ -69,7 +70,9 @@ lib/rubygems/gemcutter_utilities.rb
|
|
69
70
|
lib/rubygems/indexer.rb
|
70
71
|
lib/rubygems/install_update_options.rb
|
71
72
|
lib/rubygems/installer.rb
|
73
|
+
lib/rubygems/installer_test_case.rb
|
72
74
|
lib/rubygems/local_remote_options.rb
|
75
|
+
lib/rubygems/mock_gem_ui.rb
|
73
76
|
lib/rubygems/old_format.rb
|
74
77
|
lib/rubygems/package.rb
|
75
78
|
lib/rubygems/package/f_sync_dir.rb
|
@@ -78,6 +81,7 @@ lib/rubygems/package/tar_input.rb
|
|
78
81
|
lib/rubygems/package/tar_output.rb
|
79
82
|
lib/rubygems/package/tar_reader.rb
|
80
83
|
lib/rubygems/package/tar_reader/entry.rb
|
84
|
+
lib/rubygems/package/tar_test_case.rb
|
81
85
|
lib/rubygems/package/tar_writer.rb
|
82
86
|
lib/rubygems/package_task.rb
|
83
87
|
lib/rubygems/platform.rb
|
@@ -87,10 +91,9 @@ lib/rubygems/requirement.rb
|
|
87
91
|
lib/rubygems/security.rb
|
88
92
|
lib/rubygems/server.rb
|
89
93
|
lib/rubygems/source_index.rb
|
90
|
-
lib/rubygems/source_info_cache.rb
|
91
|
-
lib/rubygems/source_info_cache_entry.rb
|
92
94
|
lib/rubygems/spec_fetcher.rb
|
93
95
|
lib/rubygems/specification.rb
|
96
|
+
lib/rubygems/test_case.rb
|
94
97
|
lib/rubygems/test_utilities.rb
|
95
98
|
lib/rubygems/text.rb
|
96
99
|
lib/rubygems/uninstaller.rb
|
@@ -102,90 +105,88 @@ lib/ubygems.rb
|
|
102
105
|
pkgs/sources/lib/sources.rb
|
103
106
|
pkgs/sources/sources.gemspec
|
104
107
|
setup.rb
|
105
|
-
test/bogussources.rb
|
106
|
-
test/data/gem-private_key.pem
|
107
|
-
test/data/gem-public_cert.pem
|
108
|
-
test/fake_certlib/openssl.rb
|
109
|
-
test/foo/discover.rb
|
110
|
-
test/functional.rb
|
111
|
-
test/
|
112
|
-
test/
|
113
|
-
test/
|
114
|
-
test/
|
115
|
-
test/
|
116
|
-
test/
|
117
|
-
test/
|
118
|
-
test/
|
119
|
-
test/
|
120
|
-
test/
|
121
|
-
test/rubygems/
|
122
|
-
test/
|
123
|
-
test/
|
124
|
-
test/
|
125
|
-
test/
|
126
|
-
test/
|
127
|
-
test/
|
128
|
-
test/
|
129
|
-
test/
|
130
|
-
test/
|
131
|
-
test/
|
132
|
-
test/
|
133
|
-
test/
|
134
|
-
test/
|
135
|
-
test/
|
136
|
-
test/
|
137
|
-
test/
|
138
|
-
test/
|
139
|
-
test/
|
140
|
-
test/
|
141
|
-
test/
|
142
|
-
test/
|
143
|
-
test/
|
144
|
-
test/
|
145
|
-
test/
|
146
|
-
test/
|
147
|
-
test/
|
148
|
-
test/
|
149
|
-
test/
|
150
|
-
test/
|
151
|
-
test/
|
152
|
-
test/
|
153
|
-
test/
|
154
|
-
test/
|
155
|
-
test/
|
156
|
-
test/
|
157
|
-
test/
|
158
|
-
test/
|
159
|
-
test/
|
160
|
-
test/
|
161
|
-
test/
|
162
|
-
test/
|
163
|
-
test/
|
164
|
-
test/
|
165
|
-
test/
|
166
|
-
test/
|
167
|
-
test/
|
168
|
-
test/
|
169
|
-
test/
|
170
|
-
test/
|
171
|
-
test/
|
172
|
-
test/
|
173
|
-
test/
|
174
|
-
test/
|
175
|
-
test/
|
176
|
-
test/
|
177
|
-
test/
|
178
|
-
test/
|
179
|
-
test/
|
180
|
-
test/
|
181
|
-
test/
|
182
|
-
test/
|
183
|
-
test/
|
184
|
-
test/
|
185
|
-
test/
|
186
|
-
test/
|
187
|
-
test/
|
188
|
-
test/test_gem_version_option.rb
|
189
|
-
test/test_kernel.rb
|
108
|
+
test/rubygems/bogussources.rb
|
109
|
+
test/rubygems/data/gem-private_key.pem
|
110
|
+
test/rubygems/data/gem-public_cert.pem
|
111
|
+
test/rubygems/fake_certlib/openssl.rb
|
112
|
+
test/rubygems/foo/discover.rb
|
113
|
+
test/rubygems/functional.rb
|
114
|
+
test/rubygems/insure_session.rb
|
115
|
+
test/rubygems/plugin/exception/rubygems_plugin.rb
|
116
|
+
test/rubygems/plugin/load/rubygems_plugin.rb
|
117
|
+
test/rubygems/plugin/standarderror/rubygems_plugin.rb
|
118
|
+
test/rubygems/private_key.pem
|
119
|
+
test/rubygems/public_cert.pem
|
120
|
+
test/rubygems/rubygems/commands/crash_command.rb
|
121
|
+
test/rubygems/rubygems_plugin.rb
|
122
|
+
test/rubygems/sff/discover.rb
|
123
|
+
test/rubygems/simple_gem.rb
|
124
|
+
test/rubygems/test_config.rb
|
125
|
+
test/rubygems/test_gem.rb
|
126
|
+
test/rubygems/test_gem_builder.rb
|
127
|
+
test/rubygems/test_gem_command.rb
|
128
|
+
test/rubygems/test_gem_command_manager.rb
|
129
|
+
test/rubygems/test_gem_commands_build_command.rb
|
130
|
+
test/rubygems/test_gem_commands_cert_command.rb
|
131
|
+
test/rubygems/test_gem_commands_check_command.rb
|
132
|
+
test/rubygems/test_gem_commands_contents_command.rb
|
133
|
+
test/rubygems/test_gem_commands_dependency_command.rb
|
134
|
+
test/rubygems/test_gem_commands_environment_command.rb
|
135
|
+
test/rubygems/test_gem_commands_fetch_command.rb
|
136
|
+
test/rubygems/test_gem_commands_generate_index_command.rb
|
137
|
+
test/rubygems/test_gem_commands_install_command.rb
|
138
|
+
test/rubygems/test_gem_commands_list_command.rb
|
139
|
+
test/rubygems/test_gem_commands_lock_command.rb
|
140
|
+
test/rubygems/test_gem_commands_outdated_command.rb
|
141
|
+
test/rubygems/test_gem_commands_owner_command.rb
|
142
|
+
test/rubygems/test_gem_commands_pristine_command.rb
|
143
|
+
test/rubygems/test_gem_commands_push_command.rb
|
144
|
+
test/rubygems/test_gem_commands_query_command.rb
|
145
|
+
test/rubygems/test_gem_commands_server_command.rb
|
146
|
+
test/rubygems/test_gem_commands_sources_command.rb
|
147
|
+
test/rubygems/test_gem_commands_specification_command.rb
|
148
|
+
test/rubygems/test_gem_commands_stale_command.rb
|
149
|
+
test/rubygems/test_gem_commands_uninstall_command.rb
|
150
|
+
test/rubygems/test_gem_commands_unpack_command.rb
|
151
|
+
test/rubygems/test_gem_commands_update_command.rb
|
152
|
+
test/rubygems/test_gem_commands_which_command.rb
|
153
|
+
test/rubygems/test_gem_config_file.rb
|
154
|
+
test/rubygems/test_gem_dependency.rb
|
155
|
+
test/rubygems/test_gem_dependency_installer.rb
|
156
|
+
test/rubygems/test_gem_dependency_list.rb
|
157
|
+
test/rubygems/test_gem_doc_manager.rb
|
158
|
+
test/rubygems/test_gem_ext_configure_builder.rb
|
159
|
+
test/rubygems/test_gem_ext_ext_conf_builder.rb
|
160
|
+
test/rubygems/test_gem_ext_rake_builder.rb
|
161
|
+
test/rubygems/test_gem_format.rb
|
162
|
+
test/rubygems/test_gem_gem_path_searcher.rb
|
163
|
+
test/rubygems/test_gem_gem_runner.rb
|
164
|
+
test/rubygems/test_gem_gemcutter_utilities.rb
|
165
|
+
test/rubygems/test_gem_indexer.rb
|
166
|
+
test/rubygems/test_gem_install_update_options.rb
|
167
|
+
test/rubygems/test_gem_installer.rb
|
168
|
+
test/rubygems/test_gem_local_remote_options.rb
|
169
|
+
test/rubygems/test_gem_package_tar_header.rb
|
170
|
+
test/rubygems/test_gem_package_tar_input.rb
|
171
|
+
test/rubygems/test_gem_package_tar_output.rb
|
172
|
+
test/rubygems/test_gem_package_tar_reader.rb
|
173
|
+
test/rubygems/test_gem_package_tar_reader_entry.rb
|
174
|
+
test/rubygems/test_gem_package_tar_writer.rb
|
175
|
+
test/rubygems/test_gem_package_task.rb
|
176
|
+
test/rubygems/test_gem_platform.rb
|
177
|
+
test/rubygems/test_gem_remote_fetcher.rb
|
178
|
+
test/rubygems/test_gem_requirement.rb
|
179
|
+
test/rubygems/test_gem_security.rb
|
180
|
+
test/rubygems/test_gem_server.rb
|
181
|
+
test/rubygems/test_gem_source_index.rb
|
182
|
+
test/rubygems/test_gem_spec_fetcher.rb
|
183
|
+
test/rubygems/test_gem_specification.rb
|
184
|
+
test/rubygems/test_gem_stream_ui.rb
|
185
|
+
test/rubygems/test_gem_text.rb
|
186
|
+
test/rubygems/test_gem_uninstaller.rb
|
187
|
+
test/rubygems/test_gem_validator.rb
|
188
|
+
test/rubygems/test_gem_version.rb
|
189
|
+
test/rubygems/test_gem_version_option.rb
|
190
|
+
test/rubygems/test_kernel.rb
|
190
191
|
util/CL2notes
|
191
192
|
util/gem_prelude.rb
|
data/README.rdoc
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
* http://docs.rubygems.org
|
5
5
|
* http://help.rubygems.org
|
6
6
|
* http://github.com/rubygems
|
7
|
+
* http://rubyforge.org/projects/rubygems
|
7
8
|
|
8
9
|
== DESCRIPTION
|
9
10
|
|
@@ -18,22 +19,32 @@ To upgrade to the latest RubyGems, run:
|
|
18
19
|
|
19
20
|
$ gem update --system # you might need to be an administrator or root
|
20
21
|
|
21
|
-
|
22
|
-
rubygems-update installed. You will need to use the following instructions
|
23
|
-
if you see "Nothing to update".
|
22
|
+
See UPGRADING.rdoc for more details and alternative instructions.
|
24
23
|
|
25
|
-
|
26
|
-
do it in two steps:
|
24
|
+
-----
|
27
25
|
|
28
|
-
|
29
|
-
|
26
|
+
NOTE: Ruby 1.9 ships with rubygems and contains a very buggy
|
27
|
+
"gem-prelude". It is a gem loading system that can interfere with
|
28
|
+
updating rubygems itself. We do NOT recommend you update to rubygems
|
29
|
+
1.4 if you're running ruby 1.9.x until we get that sorted out in a
|
30
|
+
future ruby release.
|
31
|
+
|
32
|
+
If you absolutely hate kittens and you _must_ upgrade, you're going to
|
33
|
+
have to do something really hokey like:
|
34
|
+
|
35
|
+
% alias ruby19="ruby19 --disable-gems"
|
36
|
+
% alias gem19="ruby19 --disable-gems -S gem"
|
37
|
+
|
38
|
+
Even deleting the stock rubygems in 1.9 doesn't fix this situation.
|
39
|
+
|
40
|
+
-----
|
30
41
|
|
31
42
|
If you don't have any RubyGems install, there is still the pre-gem approach to
|
32
43
|
getting software, doing it manually:
|
33
44
|
|
34
|
-
|
35
|
-
|
36
|
-
|
45
|
+
* Download from: https://rubygems.org/pages/download
|
46
|
+
* Unpack into a directory and cd there
|
47
|
+
* Install with: ruby setup.rb # you may need admin/root privilege
|
37
48
|
|
38
49
|
For more details and other options, see:
|
39
50
|
|
data/Rakefile
CHANGED
@@ -5,19 +5,28 @@ $:.unshift 'lib'
|
|
5
5
|
require 'rubygems'
|
6
6
|
require 'rubygems/package_task'
|
7
7
|
|
8
|
+
# HACK bootstrap load_yaml, remove after 1.5 release
|
9
|
+
def Gem.load_yaml; end unless Gem.respond_to? :load_yaml
|
10
|
+
|
11
|
+
begin
|
12
|
+
require 'psych'
|
13
|
+
rescue ::LoadError
|
14
|
+
require 'yaml'
|
15
|
+
end
|
16
|
+
|
8
17
|
require 'hoe'
|
9
18
|
|
10
19
|
Hoe::RUBY_FLAGS << " --disable-gems" if RUBY_VERSION > "1.9"
|
11
20
|
|
12
21
|
Hoe.plugin :minitest
|
22
|
+
Hoe.plugin :git
|
23
|
+
Hoe.plugin :rubyforge
|
13
24
|
|
14
25
|
hoe = Hoe.spec 'rubygems-update' do
|
15
26
|
self.rubyforge_name = 'rubygems'
|
16
27
|
self.author = ['Jim Weirich', 'Chad Fowler', 'Eric Hodel']
|
17
28
|
self.email = %w[rubygems-developers@rubyforge.org]
|
18
29
|
self.readme_file = 'README.rdoc'
|
19
|
-
self.need_zip = false
|
20
|
-
self.need_tar = false
|
21
30
|
|
22
31
|
spec_extras[:required_rubygems_version] = Gem::Requirement.default
|
23
32
|
spec_extras[:required_ruby_version] = Gem::Requirement.new '> 1.8.3'
|
@@ -35,7 +44,6 @@ hoe = Hoe.spec 'rubygems-update' do
|
|
35
44
|
|
36
45
|
extra_dev_deps << ['builder', '~> 2.1']
|
37
46
|
extra_dev_deps << ['hoe-seattlerb', '~> 1.2']
|
38
|
-
extra_dev_deps << ['minitest', '~> 1.4']
|
39
47
|
extra_dev_deps << ['session', '~> 2.4']
|
40
48
|
|
41
49
|
self.extra_rdoc_files = Dir["*.rdoc"]
|
@@ -43,7 +51,26 @@ hoe = Hoe.spec 'rubygems-update' do
|
|
43
51
|
spec_extras['rdoc_options'] = proc do |rdoc_options|
|
44
52
|
rdoc_options << "--title=RubyGems #{self.version} Documentation"
|
45
53
|
end
|
46
|
-
|
54
|
+
|
55
|
+
# FIX: this exists because update --system installs the gem and
|
56
|
+
# doesn't uninstall it. It should uninstall or better, not install
|
57
|
+
# in the first place.
|
58
|
+
spec_extras['require_paths'] = %w[hide_lib_for_update] unless
|
59
|
+
ENV['RAKE_SUCKS']
|
60
|
+
end
|
61
|
+
|
62
|
+
task :docs => :rake_sucks
|
63
|
+
task :rake_sucks do
|
64
|
+
# This exists ENTIRELY because the rake design convention of
|
65
|
+
# RDocTask.new is broken. Because most of the work is being done
|
66
|
+
# inside initialize(?!?) BEFORE tasks are even running, too much
|
67
|
+
# stuff is set in stone, and we can't deal with the require_paths
|
68
|
+
# issue above.
|
69
|
+
unless ENV['RAKE_SUCKS'] then
|
70
|
+
ENV['RAKE_SUCKS'] = "1"
|
71
|
+
rm_rf "doc"
|
72
|
+
sh "rake docs"
|
73
|
+
end
|
47
74
|
end
|
48
75
|
|
49
76
|
desc "Run just the functional tests"
|
@@ -55,19 +82,6 @@ end
|
|
55
82
|
# --------------------------------------------------------------------
|
56
83
|
# Creating a release
|
57
84
|
|
58
|
-
# It's good to have RG's development dependencies expressed in the Hoe
|
59
|
-
# block above, but including them in the rubygems-update gemspec makes
|
60
|
-
# it very difficult for people on old RG versions to install it,
|
61
|
-
# especially since they're working against stub legacy indexes
|
62
|
-
# now. Remove 'em before building the gem.
|
63
|
-
|
64
|
-
task :debug_gem => :scrub_dev_deps
|
65
|
-
Rake::Task[:gem].prerequisites.unshift :scrub_dev_deps
|
66
|
-
|
67
|
-
task :scrub_dev_deps do
|
68
|
-
hoe.spec.dependencies.reject! { |d| :development == d.type }
|
69
|
-
end
|
70
|
-
|
71
85
|
task :prerelease => [:clobber, :sanity_check, :test, :test_functional]
|
72
86
|
|
73
87
|
task :postrelease => [:tag, :publish_docs]
|