See below. 

-- 
Evan Phoenix // [email protected]


On Wednesday, January 18, 2012 at 12:50 PM, Jon wrote:

> > On Jan 18, 2012, at 9:49 AM, Evan Phoenix wrote:
> > > While thinking about the gem size and dependency naming issues last 
> > > night, I had a thought for a feature. 
> > > 
> > > What if the following were possible:
> > > 
> > > gem push --custom-url http://phx.io/gems/gx-1.0.0.gem gx-1.0.0.gem
> > > 
> > > This would, rather than uploading the gx gem to rubygems.org 
> > > (http://rubygems.org), it would upload just the spec and set a "url" 
> > > field that the user has specified. When the gem is requested for 
> > > download, we'd redirect to that custom url.
> 
> Nice.
> 
> Would the --custom-url impl do a size check and could it easily be hacked to 
> allow pushing whale gems?
The whole point of custom-url is that the gem is not uploaded to rubygems.org, 
so the size doesn't matter at all. 
> 
> Don't what you're thinking re: implementation, but wondering about this 
> hypothetical:
> 
> 1) create a 1024MB whopper-1.0.0.gem
> 2) fail on `gem push` due to limits and can't figure out how to locally hack 
> RG to allow push

Again, no check here because custom-url makes rubygems.org not care since the 
gem isn't uploaded. 
> 3) figure how to hack `gem push --custom-url` and push the whopper anyway
> 
> I'm guessing API key revocation could help in this scenario, but I'm curious 
> on how and where size limits would get enforced.
> _______________________________________________
> RubyGems-Developers mailing list
> http://rubyforge.org/projects/rubygems
> [email protected] (mailto:[email protected])
> http://rubyforge.org/mailman/listinfo/rubygems-developers



_______________________________________________
RubyGems-Developers mailing list
http://rubyforge.org/projects/rubygems
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to