[Rubygems-developers] [PATCH] stuff I needed in order to install
rubygems
Chad Fowler
chad at chadfowler.com
Sat Apr 3 21:29:58 EST 2004
On 3/4/2004, at 2:19 PM, Mauricio Fernández wrote:
>
> There's been some breakage lately, and ruby install.rb failed on a
> fresh checkout.
>
> diff -r -u rubygems/install.rb rubygems.new/install.rb
> --- rubygems/install.rb 2004-03-29 15:31:37.000000000 +0200
> +++ rubygems.new/install.rb 2004-04-03 21:09:12.000000000 +0200
> @@ -93,7 +93,8 @@
> load("sources.gemspec")
> spec = Gem.sources_spec
> Gem::Builder.new(spec).build
> - Gem::Installer.new(spec.name + "-" + spec.version.to_s +
> ".gem").install(true, Gem.dir)
> + Gem::Installer.new(spec.name + "-" + Gem::Platform::RUBY + "-" +
> + spec.version.to_s + ".gem").install(true,
> Gem.dir)
> Dir.chdir("../..")
> end
> diff -r -u rubygems/lib/rubygems/specification.rb
> rubygems.new/lib/rubygems/specification.rb
> --- rubygems/lib/rubygems/specification.rb 2004-04-03
> 16:50:37.000000000 +0200
> +++ rubygems.new/lib/rubygems/specification.rb 2004-04-03
> 20:43:30.000000000 +0200
> @@ -44,7 +44,7 @@
> ##
> # These attributes are required
> #
> - required_attribute :rubygems_version, :name, :platform, :date,
> :summary, :require_paths, :version
> + required_attribute :name, :platform, :date, :summary,
> :require_paths, :version
>
> ##
> # These attributes are optional
>
>
Thanks, Mauricio. I'm applying these now. I'm the one that broke
install.rb :) Did it today.
> I haven't seen the rubygems_version field anywhere, it seems to be a
> left-over from
> the first developments during Rubyconf.
>
We haven;t used it yet, but were keeping it for the future when we
start updating the gem format while rubygems is in production.
Chad
More information about the Rubygems-developers
mailing list