rubygems-update 1.3.5 → 1.3.6

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.

Files changed (146) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.autotest +8 -1
  3. data/ChangeLog +164 -0
  4. data/History.txt +52 -1
  5. data/Manifest.txt +8 -8
  6. data/README +3 -2
  7. data/Rakefile +49 -5
  8. data/bin/gem +2 -2
  9. data/bin/update_rubygems +9 -11
  10. data/cruise_config.rb +4 -3
  11. data/hide_lib_for_update/note.txt +5 -0
  12. data/lib/rbconfig/datadir.rb +10 -14
  13. data/lib/rubygems.rb +117 -140
  14. data/lib/rubygems/builder.rb +4 -2
  15. data/lib/rubygems/command.rb +51 -48
  16. data/lib/rubygems/command_manager.rb +2 -0
  17. data/lib/rubygems/commands/dependency_command.rb +10 -5
  18. data/lib/rubygems/commands/environment_command.rb +1 -1
  19. data/lib/rubygems/commands/fetch_command.rb +6 -5
  20. data/lib/rubygems/commands/install_command.rb +1 -0
  21. data/lib/rubygems/commands/mirror_command.rb +8 -8
  22. data/lib/rubygems/commands/owner_command.rb +75 -0
  23. data/lib/rubygems/commands/pristine_command.rb +1 -1
  24. data/lib/rubygems/commands/push_command.rb +45 -0
  25. data/lib/rubygems/commands/query_command.rb +4 -1
  26. data/lib/rubygems/commands/rdoc_command.rb +24 -9
  27. data/lib/rubygems/commands/server_command.rb +6 -0
  28. data/lib/rubygems/commands/setup_command.rb +14 -4
  29. data/lib/rubygems/commands/unpack_command.rb +2 -2
  30. data/lib/rubygems/commands/update_command.rb +2 -2
  31. data/lib/rubygems/commands/which_command.rb +7 -9
  32. data/lib/rubygems/config_file.rb +100 -26
  33. data/lib/rubygems/defaults.rb +1 -1
  34. data/lib/rubygems/dependency.rb +133 -75
  35. data/lib/rubygems/dependency_installer.rb +28 -10
  36. data/lib/rubygems/dependency_list.rb +41 -12
  37. data/lib/rubygems/doc_manager.rb +7 -0
  38. data/lib/rubygems/format.rb +16 -20
  39. data/lib/rubygems/gem_openssl.rb +1 -1
  40. data/lib/rubygems/gem_path_searcher.rb +10 -12
  41. data/lib/rubygems/gemcutter_utilities.rb +49 -0
  42. data/lib/rubygems/indexer.rb +2 -2
  43. data/lib/rubygems/install_update_options.rb +1 -9
  44. data/lib/rubygems/installer.rb +35 -76
  45. data/lib/rubygems/local_remote_options.rb +1 -2
  46. data/lib/rubygems/package.rb +0 -1
  47. data/lib/rubygems/package/tar_input.rb +3 -1
  48. data/lib/rubygems/package_task.rb +16 -11
  49. data/lib/rubygems/remote_fetcher.rb +22 -8
  50. data/lib/rubygems/requirement.rb +78 -100
  51. data/lib/rubygems/server.rb +41 -10
  52. data/lib/rubygems/source_index.rb +5 -5
  53. data/lib/rubygems/spec_fetcher.rb +2 -2
  54. data/lib/rubygems/specification.rb +66 -16
  55. data/lib/rubygems/test_utilities.rb +33 -4
  56. data/lib/rubygems/uninstaller.rb +3 -3
  57. data/lib/rubygems/user_interaction.rb +45 -0
  58. data/lib/rubygems/validator.rb +6 -7
  59. data/lib/rubygems/version.rb +206 -149
  60. data/lib/rubygems/version_option.rb +16 -0
  61. data/test/fake_certlib/openssl.rb +1 -1
  62. data/test/functional.rb +0 -7
  63. data/test/gem_installer_test_case.rb +4 -4
  64. data/test/gem_package_tar_test_case.rb +1 -1
  65. data/test/gemutilities.rb +35 -31
  66. data/test/insure_session.rb +0 -8
  67. data/test/mockgemui.rb +0 -8
  68. data/test/simple_gem.rb +2 -8
  69. data/test/test_config.rb +3 -10
  70. data/test/test_gem.rb +9 -14
  71. data/test/test_gem_builder.rb +1 -7
  72. data/test/test_gem_command.rb +1 -8
  73. data/test/test_gem_command_manager.rb +1 -7
  74. data/test/test_gem_commands_build_command.rb +4 -4
  75. data/test/test_gem_commands_cert_command.rb +1 -2
  76. data/test/test_gem_commands_check_command.rb +1 -7
  77. data/test/test_gem_commands_contents_command.rb +1 -1
  78. data/test/test_gem_commands_dependency_command.rb +17 -31
  79. data/test/test_gem_commands_environment_command.rb +1 -1
  80. data/test/test_gem_commands_fetch_command.rb +14 -12
  81. data/test/test_gem_commands_generate_index_command.rb +1 -1
  82. data/test/test_gem_commands_install_command.rb +22 -20
  83. data/test/test_gem_commands_list_command.rb +1 -1
  84. data/test/test_gem_commands_lock_command.rb +1 -1
  85. data/test/test_gem_commands_mirror_command.rb +5 -5
  86. data/test/test_gem_commands_outdated_command.rb +3 -5
  87. data/test/test_gem_commands_owner_command.rb +105 -0
  88. data/test/test_gem_commands_pristine_command.rb +2 -2
  89. data/test/test_gem_commands_push_command.rb +61 -0
  90. data/test/test_gem_commands_query_command.rb +23 -56
  91. data/test/test_gem_commands_server_command.rb +1 -1
  92. data/test/test_gem_commands_sources_command.rb +1 -70
  93. data/test/test_gem_commands_specification_command.rb +3 -4
  94. data/test/test_gem_commands_stale_command.rb +1 -1
  95. data/test/test_gem_commands_uninstall_command.rb +3 -4
  96. data/test/test_gem_commands_unpack_command.rb +1 -1
  97. data/test/test_gem_commands_update_command.rb +13 -13
  98. data/test/test_gem_commands_which_command.rb +66 -0
  99. data/test/test_gem_config_file.rb +13 -7
  100. data/test/test_gem_dependency.rb +82 -134
  101. data/test/test_gem_dependency_installer.rb +55 -30
  102. data/test/test_gem_dependency_list.rb +28 -7
  103. data/test/test_gem_doc_manager.rb +1 -7
  104. data/test/test_gem_ext_configure_builder.rb +2 -2
  105. data/test/test_gem_ext_ext_conf_builder.rb +1 -1
  106. data/test/test_gem_ext_rake_builder.rb +1 -1
  107. data/test/test_gem_format.rb +14 -11
  108. data/test/test_gem_gem_path_searcher.rb +12 -1
  109. data/test/test_gem_gem_runner.rb +1 -1
  110. data/test/test_gem_gemcutter_utilities.rb +103 -0
  111. data/test/test_gem_indexer.rb +44 -51
  112. data/test/test_gem_install_update_options.rb +1 -7
  113. data/test/test_gem_installer.rb +22 -82
  114. data/test/test_gem_local_remote_options.rb +1 -1
  115. data/test/test_gem_package_tar_header.rb +1 -8
  116. data/test/test_gem_package_tar_input.rb +1 -8
  117. data/test/test_gem_package_tar_output.rb +1 -8
  118. data/test/test_gem_package_tar_reader.rb +1 -8
  119. data/test/test_gem_package_tar_reader_entry.rb +1 -8
  120. data/test/test_gem_package_tar_writer.rb +1 -8
  121. data/test/test_gem_package_task.rb +1 -25
  122. data/test/test_gem_platform.rb +4 -4
  123. data/test/test_gem_remote_fetcher.rb +31 -21
  124. data/test/test_gem_requirement.rb +210 -140
  125. data/test/test_gem_server.rb +36 -1
  126. data/test/test_gem_source_index.rb +7 -13
  127. data/test/test_gem_spec_fetcher.rb +17 -47
  128. data/test/test_gem_specification.rb +7 -20
  129. data/test/test_gem_stream_ui.rb +21 -1
  130. data/test/test_gem_uninstaller.rb +1 -2
  131. data/test/test_gem_validator.rb +2 -8
  132. data/test/test_gem_version.rb +110 -254
  133. data/test/test_gem_version_option.rb +1 -1
  134. data/test/test_kernel.rb +1 -7
  135. data/util/CL2notes +1 -1
  136. data/util/gem_prelude.rb.template +64 -41
  137. metadata +33 -71
  138. metadata.gz.sig +0 -0
  139. data/lib/rubygems/digest/digest_adapter.rb +0 -49
  140. data/lib/rubygems/digest/md5.rb +0 -23
  141. data/lib/rubygems/digest/sha1.rb +0 -22
  142. data/lib/rubygems/digest/sha2.rb +0 -22
  143. data/lib/rubygems/timer.rb +0 -28
  144. data/test/test_gem_digest.rb +0 -46
  145. data/test/test_gem_source_info_cache.rb +0 -447
  146. data/test/test_gem_source_info_cache_entry.rb +0 -78
data.tar.gz.sig CHANGED
Binary file
data/.autotest CHANGED
@@ -20,5 +20,12 @@ Autotest.add_hook :initialize do |at|
20
20
  at.add_mapping %r%^lib/rubygems/(.*).rb$% do |_, m|
21
21
  "test/test_gem_#{m[1].gsub '/', '_'}.rb"
22
22
  end
23
- end
24
23
 
24
+ at.add_mapping %r%^test/support/(.*).rb$% do |_, m|
25
+ at.files_matching %r%^test/test_(.*)\.rb$%
26
+ end
27
+
28
+ # at.add_mapping %r%^test/support/(.*).rb$% do |_, m|
29
+ # files_matching %r%^test/test_(.*)\.rb%%
30
+ # end
31
+ end
data/ChangeLog CHANGED
@@ -1,5 +1,149 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
+ 2010-02-20 Eric Hodel <drbrain@segment7.net>
4
+
5
+ * lib/rubygems.rb: 1.3.6.
6
+ * test/*: Windows test fixes
7
+ * lib/rubygems/remote_fetcher.rb: Fix same file detection on windows.
8
+
9
+ 2010-02-15 Eric Hodel <drbrain@segment7.net>
10
+
11
+ * lib/rubygems/config_file.rb: Fix use of ConfigFile#api_key= vs
12
+ #rubygems_api_key=. Patch by Nick Quaranto.
13
+
14
+ 2010-02-12 Eric Hodel <drbrain@segment7.net>
15
+
16
+ * Rakefile: RubyGems doesn't depend on previous RubyGems.
17
+
18
+ 2010-02-11 Eric Hodel <drbrain@segment7.net>
19
+
20
+ * lib/rubygems.rb: http://rubygems.org is now the default source.
21
+ * lib/rubygems/dependency.rb: Only warn once about
22
+ #version_requirement
23
+
24
+ 2010-02-09 Eric Hodel <drbrain@segment7.net>
25
+
26
+ * bin/update_rubygems: Use system, exec more correctly, remove
27
+ useless puts.
28
+ * lib/rubygems/commands/query_command.rb: List every version when
29
+ --prerelease --all is given.
30
+
31
+ 2010-02-08 Eric Hodel <drbrain@segment7.net>
32
+
33
+ * lib/rubygems/commands/dependency_command.rb: Support --prerelease.
34
+ * lib/rubygems/commands/fetch_command.rb: Support --prerelease.
35
+ * lib/rubygems/format.rb: Don't crash on empty files. Bug #27292 by
36
+ Ian Ragsdale.
37
+ * lib/rubygems/server.rb: Fix markup. Bug #27045 by Eric Young.
38
+ * History.txt: RubyGems 1.3.6 release notes.
39
+
40
+ 2010-02-07 Eric Hodel <drbrain@segment7.net>
41
+
42
+ * lib/rubygems/dependency_installer.rb: Allow prerelease gems to
43
+ depend on non-prerelease gems.
44
+
45
+ 2010-02-06 Eric Hodel <drbrain@segment7.net>
46
+
47
+ * test/test_gem_commands_specification_command.rb: Don't enforce YAML
48
+ format. Patch #27791 by Aaron Patterson.
49
+ * lib/rubygems/version.rb: Allow captial letters in prerelease
50
+ versions.
51
+ * lib/rubygems/config_file.rb: Explain format of ~/.gemrc. Bug
52
+ #27698 by J Smith.
53
+ * lib/rubygems/gem_path_searcher.rb: Handle nil require_paths.
54
+ Patch #27334 by Roger Pack.
55
+ * lib/rubygems/server.rb: Handle --bind option. Patch #27357 by
56
+ Bruno Michel.
57
+ * lib/rubygems/doc_manager: gem rdoc --overwrite to preserve built
58
+ rdoc. Patch #25982 by Akinori MUSHA.
59
+ * lib/rubygems/commands/which_command.rb: Fail if no paths were
60
+ found. Adapted patch #27681 by Caio Chassot.
61
+ * lib/rubygems/remote_fetcher.rb: Don't copy if the file is where we
62
+ want it. Patch #27409 by Jakub Šťastný.
63
+
64
+ 2010-02-01 John Barnette <jbarnette@rubygems.org>
65
+
66
+ * lib/rubygems/command*: Add 'gem push' and 'gem owner' for
67
+ interacting with modern/Gemcutter sources [Nick Quaranto]
68
+
69
+ 2010-01-18 Eric Hodel <drbrain@segment7.net>
70
+
71
+ * lib/rubygems/dependency_list.rb: Ignore development dependencies
72
+ unless explicitly needed. Bug #27608 by Roger Pack.
73
+
74
+ 2010-01-12 John Barnette <jbarnette@rubygems.org>
75
+
76
+ * Rakefile: Don't add development deps when building the
77
+ rubygems-update gem, it borks older versions when they're updating
78
+ from a stub index.
79
+
80
+ 2009-12-22 Evan Phoenix <evan@fallingsnow.net>
81
+
82
+ * lib/rubygems/spec_fetcher.rb: Don't bother re-Marshaling the spec
83
+ YAML list.
84
+
85
+ 2009-11-04 John Barnette <jbarnette@rubygems.org>
86
+
87
+ * lib/rubygems/timer.rb: Removed. The deprecation sun set in July.
88
+
89
+ 2009-10-14 John Barnette <jbarnette@rubygems.org>
90
+
91
+ * lib/rubygems/dependency.rb: Burndown/cleanup. Refactored code
92
+ and tests. Gem::Dependency.version_requirement(s) is deprecated in
93
+ favor of Gem::Dependency.requirement.
94
+
95
+ * lib/rubygems/requirement.rb: Burndown/cleanup. Refactored code
96
+ and tests. See test/support/shortcuts.rb for some new test helpers.
97
+
98
+ 2009-10-13 John Barnette <jbarnette@rubygems.org>
99
+
100
+ * lib/rubygems/local_remote_options.rb: Make --source additive,
101
+ not exclusive. If exclusive sources are desired, use
102
+ --clear-sources first.
103
+
104
+ 2009-09-29 John Barnette <jbarnette@rubyforge.org>
105
+
106
+ * lib/rubygems/spec_fetcher.rb: Be slightly more robust when faced
107
+ with corrupted indexes.
108
+
109
+ 2009-09-03 John Barnette <jbarnette@rubyforge.org>
110
+
111
+ * LOTS: Use "raise" consistently, not "fail".
112
+
113
+ 2009-09-01 John Barnette <jbarnette@rubyforge.org>
114
+
115
+ * lib/rubygems/version.rb: Gem::Version immutability
116
+ burndown. Changed canonical internal representation to an
117
+ Array. Refactored significant amounts of the internals for
118
+ clarity. Breaking change: Gem::Version::Requirement is no longer
119
+ available, use Gem::Requirement instead. Breaking change: custom
120
+ YAML marshaling is gone. Credit to Yehuda Katz for certain bits of
121
+ a related patch.
122
+ * test/test_gem_dependency.rb: Moved a bunch of tests over from
123
+ test_gem_version.rb. Work in progress.
124
+ * test/test_gem_specification.rb: Removed a failing YAML
125
+ test. Many more will be going away shortly.
126
+ * test/test_gem_version.rb: Significant refactoring for
127
+ maintainability and clarity. Moved a ton of poorly-placed tests to
128
+ test_gem_dependency.rb for future refactoring.
129
+
130
+ 2009-08-19 Ryan Davis <ryand-ruby@zenspider.com>
131
+
132
+ * lib/rubygems.rb: Cleanup of rdoc and file layout.
133
+ * lib/rubygems/versions.rb: Added Version#spermy_recommendation
134
+ and fixed bug in Version::Part#inspect. General cleanup.
135
+
136
+ 2009-07-29 John Barnette <jbarnette@rubyforge.org>
137
+
138
+ * lib/rubygems/package/tar_input.rb: Add Maglev to the list of
139
+ implementations with working Zlib. Bug #26790 by Peter McLain.
140
+
141
+ 2009-07-21 Eric Hodel <drbrain@segment7.net>
142
+
143
+ * lib/rubygems.rb: 1.3.5.
144
+ * lib/rubygems/package.rb: Remove dangling digest require. Reported
145
+ by Jeremy Kemper.
146
+
3
147
  2009-06-25 Eric Hodel <drbrain@segment7.net>
4
148
 
5
149
  * release_notes/: Merged into History.txt for Hoe.
@@ -8,6 +152,8 @@
8
152
  2009-06-23 Eric Hodel <drbrain@segment7.net>
9
153
 
10
154
  * release_notes/rel_1_3_5.rdoc: RubyGems 1.3.5 release notes.
155
+ * lib/rubygems/builder.rb: Only print out with verbose.
156
+ * lib/rubygems/package_task.rb: Only print out with -t.
11
157
 
12
158
  2009-06-12 Ryan Davis <ryand@zenspider.com>
13
159
 
@@ -15,8 +161,26 @@
15
161
 
16
162
  2009-06-10 Phil Hagelberg <technomancy@gmail.com>
17
163
 
164
+ * lib/rubygems/installer.rb: --user-install is no longer enabled by
165
+ default.
18
166
  * lib/rubygems/source_index.rb: Fix use of prerelease gems.
19
167
 
168
+ 2009-06-04 Eric Hodel <drbrain@segment7.net>
169
+
170
+ * util/gem_prelude.rb.template: Backports from 1.9.
171
+
172
+ 2009-06-03 Eric Hodel <drbrain@segment7.net>
173
+
174
+ * bin/gem: Support 1.8.6+
175
+ * lib/rubygems/digest*: Removed, support dropped for Ruby < 1.8.6
176
+ * lib/rubygems/installer.rb: Support env(1) in wrong path, use
177
+ /bin/sh if shebang has options. By Nobu, ruby trunk r22853.
178
+ * lib/rubygems/config_file.rb: Switch to stdcall for appdata folder.
179
+ [ruby-core:22601].
180
+ * lib/rubygems.rb: Use only File::expand_path on 1.9 for home dir.
181
+ Don't recklessly create directories. Simplify RbConfig::datadir
182
+ definition.
183
+
20
184
  2009-05-30 Eric Hodel <drbrain@segment7.net>
21
185
 
22
186
  * lib/rubygems/commands/which_command.rb: Only print out directory
@@ -1,4 +1,55 @@
1
- === 1.3.5 / 2009-07-21
1
+ === 1.3.6 / 2010-02-17
2
+
3
+ NOTE:
4
+
5
+ http://rubygems.org is now the default source for downloading gems.
6
+
7
+ You may have sources set via ~/.gemrc, so you should replace
8
+ http://gems.rubyforge.org with http://rubygems.org
9
+
10
+ http://gems.rubyforge.org will continue to work for the forseeable future.
11
+
12
+ New features:
13
+
14
+ * `gem` commands
15
+ * Added `gem push` and `gem owner` for interacting with modern/Gemcutter
16
+ sources
17
+ * `gem dep` now supports --prerelease.
18
+ * `gem fetch` now supports --prerelease.
19
+ * `gem server` now supports --bind. Patch #27357 by Bruno Michel.
20
+ * `gem rdoc` no longer overwrites built documentation. Use --overwrite
21
+ force rebuilding. Patch #25982 by Akinori MUSHA.
22
+ * Captial letters are now allowed in prerelease versions.
23
+
24
+ Bug fixes:
25
+
26
+ * Development deps are no longer added to rubygems-update gem so older
27
+ versions can update sucessfully.
28
+ * Installer bugs:
29
+ * Prerelease gems can now depend on non-prerelease gems.
30
+ * Development dependencies are ignored unless explicitly needed. Bug #27608
31
+ by Roger Pack.
32
+ * `gem` commands
33
+ * `gem which` now fails if no paths were found. Adapted patch #27681 by
34
+ Caio Chassot.
35
+ * `gem server` no longer has invalid markup. Bug #27045 by Eric Young.
36
+ * `gem list` and friends show both prerelease and regular gems when
37
+ --prerelease --all is given
38
+ * Gem::Format no longer crashes on empty files. Bug #27292 by Ian Ragsdale.
39
+ * Gem::GemPathSearcher handles nil require_paths. Patch #27334 by Roger Pack.
40
+ * Gem::RemoteFetcher no longer copies the file if it is where we want it.
41
+ Patch #27409 by Jakub Šťastný.
42
+
43
+ Deprecation Notices:
44
+
45
+ * lib/rubygems/timer.rb has been removed.
46
+ * Gem::Dependency#version_requirements is deprecated and will be removed on or
47
+ after August 2010.
48
+ * Bulk index update is no longer supported.
49
+ * Gem::manage_gems was removed in 1.3.3.
50
+ * Time::today was removed in 1.3.3.
51
+
52
+ === 1.3.5 / 2009-07-21
2
53
 
3
54
  Bug fixes:
4
55
 
@@ -10,6 +10,7 @@ Rakefile
10
10
  bin/gem
11
11
  bin/update_rubygems
12
12
  cruise_config.rb
13
+ hide_lib_for_update/note.txt
13
14
  lib/gauntlet_rubygems.rb
14
15
  lib/rbconfig/datadir.rb
15
16
  lib/rubygems.rb
@@ -31,7 +32,9 @@ lib/rubygems/commands/list_command.rb
31
32
  lib/rubygems/commands/lock_command.rb
32
33
  lib/rubygems/commands/mirror_command.rb
33
34
  lib/rubygems/commands/outdated_command.rb
35
+ lib/rubygems/commands/owner_command.rb
34
36
  lib/rubygems/commands/pristine_command.rb
37
+ lib/rubygems/commands/push_command.rb
35
38
  lib/rubygems/commands/query_command.rb
36
39
  lib/rubygems/commands/rdoc_command.rb
37
40
  lib/rubygems/commands/search_command.rb
@@ -50,10 +53,6 @@ lib/rubygems/defaults.rb
50
53
  lib/rubygems/dependency.rb
51
54
  lib/rubygems/dependency_installer.rb
52
55
  lib/rubygems/dependency_list.rb
53
- lib/rubygems/digest/digest_adapter.rb
54
- lib/rubygems/digest/md5.rb
55
- lib/rubygems/digest/sha1.rb
56
- lib/rubygems/digest/sha2.rb
57
56
  lib/rubygems/doc_manager.rb
58
57
  lib/rubygems/exceptions.rb
59
58
  lib/rubygems/ext.rb
@@ -65,6 +64,7 @@ lib/rubygems/format.rb
65
64
  lib/rubygems/gem_openssl.rb
66
65
  lib/rubygems/gem_path_searcher.rb
67
66
  lib/rubygems/gem_runner.rb
67
+ lib/rubygems/gemcutter_utilities.rb
68
68
  lib/rubygems/indexer.rb
69
69
  lib/rubygems/install_update_options.rb
70
70
  lib/rubygems/installer.rb
@@ -92,7 +92,6 @@ lib/rubygems/spec_fetcher.rb
92
92
  lib/rubygems/specification.rb
93
93
  lib/rubygems/test_utilities.rb
94
94
  lib/rubygems/text.rb
95
- lib/rubygems/timer.rb
96
95
  lib/rubygems/uninstaller.rb
97
96
  lib/rubygems/user_interaction.rb
98
97
  lib/rubygems/validator.rb
@@ -135,7 +134,9 @@ test/test_gem_commands_list_command.rb
135
134
  test/test_gem_commands_lock_command.rb
136
135
  test/test_gem_commands_mirror_command.rb
137
136
  test/test_gem_commands_outdated_command.rb
137
+ test/test_gem_commands_owner_command.rb
138
138
  test/test_gem_commands_pristine_command.rb
139
+ test/test_gem_commands_push_command.rb
139
140
  test/test_gem_commands_query_command.rb
140
141
  test/test_gem_commands_server_command.rb
141
142
  test/test_gem_commands_sources_command.rb
@@ -144,11 +145,11 @@ test/test_gem_commands_stale_command.rb
144
145
  test/test_gem_commands_uninstall_command.rb
145
146
  test/test_gem_commands_unpack_command.rb
146
147
  test/test_gem_commands_update_command.rb
148
+ test/test_gem_commands_which_command.rb
147
149
  test/test_gem_config_file.rb
148
150
  test/test_gem_dependency.rb
149
151
  test/test_gem_dependency_installer.rb
150
152
  test/test_gem_dependency_list.rb
151
- test/test_gem_digest.rb
152
153
  test/test_gem_doc_manager.rb
153
154
  test/test_gem_ext_configure_builder.rb
154
155
  test/test_gem_ext_ext_conf_builder.rb
@@ -156,6 +157,7 @@ test/test_gem_ext_rake_builder.rb
156
157
  test/test_gem_format.rb
157
158
  test/test_gem_gem_path_searcher.rb
158
159
  test/test_gem_gem_runner.rb
160
+ test/test_gem_gemcutter_utilities.rb
159
161
  test/test_gem_indexer.rb
160
162
  test/test_gem_install_update_options.rb
161
163
  test/test_gem_installer.rb
@@ -172,8 +174,6 @@ test/test_gem_remote_fetcher.rb
172
174
  test/test_gem_requirement.rb
173
175
  test/test_gem_server.rb
174
176
  test/test_gem_source_index.rb
175
- test/test_gem_source_info_cache.rb
176
- test/test_gem_source_info_cache_entry.rb
177
177
  test/test_gem_spec_fetcher.rb
178
178
  test/test_gem_specification.rb
179
179
  test/test_gem_stream_ui.rb
data/README CHANGED
@@ -1,8 +1,9 @@
1
1
  = RubyGems
2
2
 
3
+ * http://rubygems.org/
4
+ * http://docs.rubygems.org/
3
5
  * http://rubygems.rubyforge.org/
4
6
  * http://rubyforge.org/projects/rubygems
5
- * http://rubygems.org/
6
7
 
7
8
  == DESCRIPTION
8
9
 
@@ -15,7 +16,7 @@ See Gem for information on RubyGems (or `ri Gem`)
15
16
 
16
17
  To upgrade to the latest RubyGems, run:
17
18
 
18
- $ gem install --system # you might need to be an administrator or root
19
+ $ gem update --system # you might need to be an administrator or root
19
20
 
20
21
  NOTE: RubyGems 1.1 and 1.2 have problems upgrading when there is no
21
22
  rubygems-update installed. You will need to use the following instructions
data/Rakefile CHANGED
@@ -17,8 +17,9 @@ hoe = Hoe.spec 'rubygems-update' do
17
17
  self.need_zip = false
18
18
  self.need_tar = false
19
19
 
20
- spec_extras[:required_ruby_version] = Gem::Requirement.new '> 1.8.3'
21
- spec_extras[:executables] = ['update_rubygems']
20
+ spec_extras[:required_rubygems_version] = Gem::Requirement.default
21
+ spec_extras[:required_ruby_version] = Gem::Requirement.new '> 1.8.3'
22
+ spec_extras[:executables] = ['update_rubygems']
22
23
 
23
24
  clean_globs.push('**/debug.log',
24
25
  '*.out',
@@ -30,12 +31,15 @@ hoe = Hoe.spec 'rubygems-update' do
30
31
  'scripts/*.hieraki',
31
32
  'util/gem_prelude.rb')
32
33
 
33
- extra_dev_deps << 'builder' << 'session' << 'hoe-seattlerb'
34
+ extra_dev_deps << ['builder', '~> 2.1']
35
+ extra_dev_deps << ['hoe-seattlerb', '~> 1.2']
34
36
  extra_dev_deps << ['minitest', '~> 1.4']
37
+ extra_dev_deps << ['session', '~> 2.4']
35
38
 
36
39
  spec_extras['rdoc_options'] = proc do |rdoc_options|
37
40
  rdoc_options << "--title=RubyGems #{self.version} Documentation"
38
41
  end
42
+ spec_extras['require_paths'] = %w[hide_lib_for_update]
39
43
  end
40
44
 
41
45
  desc "Run just the functional tests"
@@ -47,15 +51,30 @@ end
47
51
  # --------------------------------------------------------------------
48
52
  # Creating a release
49
53
 
54
+ # It's good to have RG's development dependencies expressed in the Hoe
55
+ # block above, but including them in the rubygems-update gemspec makes
56
+ # it very difficult for people on old RG versions to install it,
57
+ # especially since they're working against stub legacy indexes
58
+ # now. Remove 'em before building the gem.
59
+
60
+ task :debug_gem => :scrub_dev_deps
61
+ Rake::Task[:gem].prerequisites.unshift :scrub_dev_deps
62
+
63
+ task :scrub_dev_deps do
64
+ hoe.spec.dependencies.reject! { |d| :development == d.type }
65
+ end
66
+
50
67
  task :release => [:clobber, :sanity_check, :test_functional,
51
68
  :test, :package, :tag]
52
69
 
70
+ Rake::Task[:release_to_rubyforge].clear
71
+
53
72
  pkg_dir_path = "pkg/rubygems-update-#{hoe.version}"
54
73
  task pkg_dir_path do
55
74
  mv pkg_dir_path, "pkg/rubygems-#{hoe.version}"
56
75
  end
57
76
 
58
- task :package => [pkg_dir_path, :sanity_check] do
77
+ task :package => [pkg_dir_path] do
59
78
  Dir.chdir 'pkg' do
60
79
  sh "tar -czf rubygems-#{hoe.version}.tgz rubygems-#{hoe.version}"
61
80
  sh "zip -q -r rubygems-#{hoe.version}.zip rubygems-#{hoe.version}"
@@ -76,13 +95,15 @@ end
76
95
 
77
96
  desc "build util/gem_prelude.rb from the template and defaults.rb"
78
97
  file 'util/gem_prelude.rb' =>
79
- %w[util/gem_prelude.rb.template lib/rubygems/defaults.rb] do
98
+ %w[util/gem_prelude.rb.template lib/rubygems/defaults.rb Rakefile] do
80
99
  gem_prelude = File.read 'util/gem_prelude.rb.template'
81
100
  defaults = File.read 'lib/rubygems/defaults.rb'
82
101
 
83
102
  raise 'template error' unless defaults.sub!(/^module Gem\n/, '')
84
103
  raise 'template error' unless defaults.sub!(/^end\n/, '')
85
104
 
105
+ defaults[0, 0] = " # begin rubygems/defaults\n"
106
+ defaults << " # end rubygems/defaults\n"
86
107
  defaults.gsub!(/^/, ' ')
87
108
 
88
109
  raise 'template error' unless
@@ -95,6 +116,7 @@ file 'util/gem_prelude.rb' =>
95
116
 
96
117
  open 'util/gem_prelude.rb', 'w' do |io|
97
118
  io.write gem_prelude
119
+ io.chmod 0444
98
120
  end
99
121
  end
100
122
 
@@ -149,3 +171,25 @@ desc "Diffs Rubinius HEAD with the currently checked-out copy of RubyGems."
149
171
  task :diff_rubinius => 'util/gem_prelude.rb' do
150
172
  diff_with rubinius_dir
151
173
  end
174
+
175
+ desc "Get coverage for a specific test, no system RubyGems."
176
+ task "rcov:for", [:test] do |task, args|
177
+ mgem = Gem.source_index.find_name("minitest").first rescue nil
178
+ rgem = Gem.source_index.find_name(/rcov/).first
179
+ libs = rgem.require_paths.map { |p| File.join rgem.full_gem_path, p }
180
+ rcov = File.join rgem.full_gem_path, rgem.bindir, rgem.default_executable
181
+
182
+ if mgem
183
+ libs << mgem.require_paths.map { |p| File.join mgem.full_gem_path, p }
184
+ end
185
+
186
+ libs << "lib:test"
187
+
188
+ flags = []
189
+ flags << "-I" << libs.flatten.join(":")
190
+
191
+ rflags = []
192
+ rflags << "-i" << "lib/rubygems"
193
+
194
+ ruby "#{flags.join ' '} #{rcov} #{rflags.join ' '} #{args[:test]}"
195
+ end