tag:help.rubygems.org,2010-01-19:/discussions/suggestions/15-return-repo-url-in-the-apiRubyGems.org: Discussion 2011-04-07T20:59:30Ztag:help.rubygems.org,2010-01-19:Comment/22852892010-07-17T16:08:47Z2010-07-17T16:08:47ZReturn repo url in the api<div><p>Yeah, we have an open request for adding linksets to the
API:</p>
<p><a href=
"http://github.com/rubygems/gemcutter/issues#issue/175">http://github.com/rubygems/gemcutter/issues#issue/175</a></p>
<p>Having a more serious, versioned gemspec api would be nice too,
but the rubygems server already kind of does that.</p>
<p><a href=
"http://rubygems.org/quick/Marshal.4.8/rails-2.3.8.gemspec.rz">http://rubygems.org/quick/Marshal.4.8/rails-2.3.8.gemspec.rz</a></p>
<p>But yeah, we could have something like</p>
<p><a href=
"http://rubygems.org/api/v1/gemspec/rails-2.3.8">http://rubygems.org/api/v1/gemspec/rails-2.3.8</a></p>
<p>Feel free to open up an issue or get hacking on it :)</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/22852892010-07-17T18:16:04Z2010-07-17T18:16:04ZReturn repo url in the api<div><p>Updating this here so everyone can see it :)</p>
<pre>
<code class="ruby">% irb -rubygems -ropen-uri
>> Marshal.load(Gem.inflate(open("http://rubygems.org/quick/Marshal.4.8/rails-2.3.8.gemspec.rz").read))
=> #<Gem::Specification:0x10140f2e8 @files=[], @platform="ruby", ...</code>
</pre></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/22852892010-07-17T18:17:02Z2010-07-17T18:17:02ZReturn repo url in the api<div><p>It's definitely a horrible API. If you really need info from
that gemspec that we're not providing, let's figure out how to do
it better.</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/22852892010-07-17T20:16:26Z2010-07-17T20:16:26ZReturn repo url in the api<div><p>The linkset data is now returned in the API, just merged that
patch in.</p></div>Nick Quaranto