Permalink
Browse files

Import RubyGems trunk revision 1493.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 7a4aad7 commit fbf59bdbea63efd34ccc144e648467d2f52e7345 @drbrain drbrain committed Nov 10, 2007
Showing with 21,330 additions and 0 deletions.
  1. +12 −0 ChangeLog
  2. +24 −0 lib/rbconfig/datadir.rb
  3. +561 −0 lib/rubygems.rb
  4. +81 −0 lib/rubygems/builder.rb
  5. +406 −0 lib/rubygems/command.rb
  6. +144 −0 lib/rubygems/command_manager.rb
  7. +53 −0 lib/rubygems/commands/build_command.rb
  8. +86 −0 lib/rubygems/commands/cert_command.rb
  9. +74 −0 lib/rubygems/commands/check_command.rb
  10. +93 −0 lib/rubygems/commands/cleanup_command.rb
  11. +74 −0 lib/rubygems/commands/contents_command.rb
  12. +150 −0 lib/rubygems/commands/dependency_command.rb
  13. +80 −0 lib/rubygems/commands/environment_command.rb
  14. +62 −0 lib/rubygems/commands/fetch_command.rb
  15. +57 −0 lib/rubygems/commands/generate_index_command.rb
  16. +172 −0 lib/rubygems/commands/help_command.rb
  17. +125 −0 lib/rubygems/commands/install_command.rb
  18. +35 −0 lib/rubygems/commands/list_command.rb
  19. +101 −0 lib/rubygems/commands/lock_command.rb
  20. +105 −0 lib/rubygems/commands/mirror_command.rb
  21. +30 −0 lib/rubygems/commands/outdated_command.rb
  22. +133 −0 lib/rubygems/commands/pristine_command.rb
  23. +118 −0 lib/rubygems/commands/query_command.rb
  24. +78 −0 lib/rubygems/commands/rdoc_command.rb
  25. +37 −0 lib/rubygems/commands/search_command.rb
  26. +48 −0 lib/rubygems/commands/server_command.rb
  27. +115 −0 lib/rubygems/commands/sources_command.rb
  28. +72 −0 lib/rubygems/commands/specification_command.rb
  29. +56 −0 lib/rubygems/commands/uninstall_command.rb
  30. +76 −0 lib/rubygems/commands/unpack_command.rb
  31. +149 −0 lib/rubygems/commands/update_command.rb
  32. +86 −0 lib/rubygems/commands/which_command.rb
  33. +224 −0 lib/rubygems/config_file.rb
  34. +38 −0 lib/rubygems/custom_require.rb
  35. +65 −0 lib/rubygems/dependency.rb
  36. +219 −0 lib/rubygems/dependency_installer.rb
  37. +165 −0 lib/rubygems/dependency_list.rb
  38. +40 −0 lib/rubygems/digest/digest_adapter.rb
  39. +23 −0 lib/rubygems/digest/md5.rb
  40. +17 −0 lib/rubygems/digest/sha1.rb
  41. +17 −0 lib/rubygems/digest/sha2.rb
  42. +161 −0 lib/rubygems/doc_manager.rb
  43. +63 −0 lib/rubygems/exceptions.rb
  44. +18 −0 lib/rubygems/ext.rb
  45. +56 −0 lib/rubygems/ext/builder.rb
  46. +24 −0 lib/rubygems/ext/configure_builder.rb
  47. +23 −0 lib/rubygems/ext/ext_conf_builder.rb
  48. +27 −0 lib/rubygems/ext/rake_builder.rb
  49. +81 −0 lib/rubygems/format.rb
  50. +7 −0 lib/rubygems/gem_open_uri.rb
  51. +83 −0 lib/rubygems/gem_openssl.rb
  52. +84 −0 lib/rubygems/gem_path_searcher.rb
  53. +58 −0 lib/rubygems/gem_runner.rb
  54. +171 −0 lib/rubygems/indexer.rb
  55. +80 −0 lib/rubygems/indexer/abstract_index_builder.rb
  56. +8 −0 lib/rubygems/indexer/marshal_index_builder.rb
  57. +44 −0 lib/rubygems/indexer/master_index_builder.rb
  58. +48 −0 lib/rubygems/indexer/quick_index_builder.rb
  59. +87 −0 lib/rubygems/install_update_options.rb
  60. +421 −0 lib/rubygems/installer.rb
  61. +106 −0 lib/rubygems/local_remote_options.rb
  62. +148 −0 lib/rubygems/old_format.rb
  63. +773 −0 lib/rubygems/open-uri.rb
  64. +851 −0 lib/rubygems/package.rb
  65. +187 −0 lib/rubygems/platform.rb
  66. +164 −0 lib/rubygems/remote_fetcher.rb
  67. +195 −0 lib/rubygems/remote_installer.rb
  68. +157 −0 lib/rubygems/requirement.rb
  69. +6 −0 lib/rubygems/rubygems_version.rb
  70. +785 −0 lib/rubygems/security.rb
  71. +504 −0 lib/rubygems/server.rb
  72. +446 −0 lib/rubygems/source_index.rb
  73. +232 −0 lib/rubygems/source_info_cache.rb
  74. +46 −0 lib/rubygems/source_info_cache_entry.rb
  75. +905 −0 lib/rubygems/specification.rb
  76. +25 −0 lib/rubygems/timer.rb
  77. +183 −0 lib/rubygems/uninstaller.rb
  78. +291 −0 lib/rubygems/user_interaction.rb
  79. +185 −0 lib/rubygems/validator.rb
  80. +158 −0 lib/rubygems/version.rb
  81. +49 −0 lib/rubygems/version_option.rb
  82. +10 −0 lib/ubygems.rb
  83. +8 −0 test/rubygems/bogussources.rb
  84. +27 −0 test/rubygems/data/gem-private_key.pem
  85. +20 −0 test/rubygems/data/gem-public_cert.pem
  86. +7 −0 test/rubygems/fake_certlib/openssl.rb
  87. +95 −0 test/rubygems/functional.rb
  88. +295 −0 test/rubygems/gemutilities.rb
  89. +51 −0 test/rubygems/insure_session.rb
  90. +51 −0 test/rubygems/mockgemui.rb
  91. +72 −0 test/rubygems/simple_gem.rb
  92. +26 −0 test/rubygems/test_config.rb
  93. +367 −0 test/rubygems/test_gem.rb
  94. +34 −0 test/rubygems/test_gem_builder.rb
  95. +196 −0 test/rubygems/test_gem_command.rb
  96. +211 −0 test/rubygems/test_gem_command_manager.rb
  97. +75 −0 test/rubygems/test_gem_commands_build_command.rb
  98. +122 −0 test/rubygems/test_gem_commands_cert_command.rb
  99. +25 −0 test/rubygems/test_gem_commands_check_command.rb
  100. +92 −0 test/rubygems/test_gem_commands_contents_command.rb
  101. +108 −0 test/rubygems/test_gem_commands_dependency_command.rb
  102. +116 −0 test/rubygems/test_gem_commands_environment_command.rb
  103. +34 −0 test/rubygems/test_gem_commands_fetch_command.rb
  104. +32 −0 test/rubygems/test_gem_commands_generate_index_command.rb
  105. +160 −0 test/rubygems/test_gem_commands_install_command.rb
  106. +56 −0 test/rubygems/test_gem_commands_mirror_command.rb
  107. +100 −0 test/rubygems/test_gem_commands_pristine_command.rb
  108. +82 −0 test/rubygems/test_gem_commands_query_command.rb
  109. +147 −0 test/rubygems/test_gem_commands_sources_command.rb
  110. +93 −0 test/rubygems/test_gem_commands_specification_command.rb
  111. +55 −0 test/rubygems/test_gem_commands_unpack_command.rb
  112. +210 −0 test/rubygems/test_gem_config_file.rb
  113. +89 −0 test/rubygems/test_gem_dependency.rb
  114. +519 −0 test/rubygems/test_gem_dependency_installer.rb
  115. +212 −0 test/rubygems/test_gem_dependency_list.rb
  116. +44 −0 test/rubygems/test_gem_digest.rb
  117. +32 −0 test/rubygems/test_gem_doc_manager.rb
  118. +84 −0 test/rubygems/test_gem_ext_configure_builder.rb
  119. +122 −0 test/rubygems/test_gem_ext_ext_conf_builder.rb
  120. +73 −0 test/rubygems/test_gem_ext_rake_builder.rb
  121. +51 −0 test/rubygems/test_gem_format.rb
  122. +57 −0 test/rubygems/test_gem_gem_path_searcher.rb
  123. +35 −0 test/rubygems/test_gem_gem_runner.rb
  124. +103 −0 test/rubygems/test_gem_indexer.rb
  125. +40 −0 test/rubygems/test_gem_install_update_options.rb
  126. +796 −0 test/rubygems/test_gem_installer.rb
  127. +84 −0 test/rubygems/test_gem_local_remote_options.rb
  128. +40 −0 test/rubygems/test_gem_outdated_command.rb
  129. +239 −0 test/rubygems/test_gem_platform.rb
  130. +417 −0 test/rubygems/test_gem_remote_fetcher.rb
  131. +161 −0 test/rubygems/test_gem_remote_installer.rb
  132. +223 −0 test/rubygems/test_gem_requirement.rb
  133. +71 −0 test/rubygems/test_gem_server.rb
  134. +429 −0 test/rubygems/test_gem_source_index.rb
  135. +299 −0 test/rubygems/test_gem_source_info_cache.rb
  136. +46 −0 test/rubygems/test_gem_source_info_cache_entry.rb
  137. +707 −0 test/rubygems/test_gem_specification.rb
  138. +117 −0 test/rubygems/test_gem_stream_ui.rb
  139. +70 −0 test/rubygems/test_gem_validator.rb
  140. +191 −0 test/rubygems/test_gem_version.rb
  141. +77 −0 test/rubygems/test_gem_version_option.rb
  142. +64 −0 test/rubygems/test_kernel.rb
  143. +13 −0 test/rubygems/test_open_uri.rb
  144. +607 −0 test/rubygems/test_package.rb
View
@@ -1,3 +1,15 @@
+Sat Nov 10 16:37:07 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems: Import RubyGems revision 1493.
+
+ * lib/rubygems.rb: ditto.
+
+ * lib/ubygems.rb: ditto.
+
+ * lib/rbconfig/datadir.rb: ditto.
+
+ * test/rubygems: ditto.
+
Sat Nov 10 16:34:21 2007 Eric Hodel <drbrain@segment7.net>
* lib/soap/property.rb: Don't override Enumerable#inject for 1.9.
@@ -0,0 +1,24 @@
+#!/usr/bin/env ruby
+#--
+# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
+# All rights reserved.
+# See LICENSE.txt for permissions.
+#++
+
+
+module Config
+
+ # Only define datadir if it doesn't already exist.
+ unless Config.respond_to?(:datadir)
+
+ # Return the path to the data directory associated with the given
+ # package name. Normally this is just
+ # "#{Config::CONFIG['datadir']}/#{package_name}", but may be
+ # modified by packages like RubyGems to handle versioned data
+ # directories.
+ def Config.datadir(package_name)
+ File.join(CONFIG['datadir'], package_name)
+ end
+
+ end
+end
Oops, something went wrong.

0 comments on commit fbf59bd

Please sign in to comment.