Permalink
Browse files

Support nil `gems` param on dependencies call

  • Loading branch information...
1 parent f8860f5 commit 7e4ab5666bc77f412170ffd8f114aaebce0c21d9 @soffes soffes committed Apr 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/geminabox.rb
View
@@ -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

0 comments on commit 7e4ab56

Please sign in to comment.