Skip to content

Commit

Permalink
Support nil gems param on dependencies call
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Apr 9, 2013
1 parent f8860f5 commit 7e4ab56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/geminabox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def fixup_bundler_rubygems!
end

get '/api/v1/dependencies' do
query_gems = params[:gems].split(',')
query_gems = (params[:gems] or '').split(',')
deps = query_gems.inject([]){|memo, query_gem| memo + gem_dependencies(query_gem) }
Marshal.dump(deps)
end
Expand Down

0 comments on commit 7e4ab56

Please sign in to comment.