Skip to content
Browse files

bundler-api needs the URL of the gemspec

for legacy reasons, the gemspecs are available at spec.original_name,
and original_name uses original_platform. sending platform instead
means that bundler-api currently looks for gemspecs that don't exist.
  • Loading branch information...
1 parent 285b4ea commit 00d06595fcc54575d14d1d40e7cfcca47bcf5732 @indirect indirect committed Feb 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/pusher.rb
View
2 app/models/pusher.rb
@@ -71,7 +71,7 @@ def inspect
def update_remote_bundler_api(to=RestClient)
return unless @bundler_api_url
- json = %Q!{ "name": "#{spec.name}", "version": "#{spec.version}", "platform": "#{spec.platform}", "prerelease": #{spec.version.prerelease? ? 'true' : 'false'}, "rubygems_token": "#{@bundler_token}"}!
+ json = %Q!{ "name": "#{spec.name}", "version": "#{spec.version}", "platform": "#{spec.original_platform}", "prerelease": #{spec.version.prerelease? ? 'true' : 'false'}, "rubygems_token": "#{@bundler_token}"}!
begin
timeout(5) do

0 comments on commit 00d0659

Please sign in to comment.
Something went wrong with that request. Please try again.