Permalink
Browse files

Remove maximum gem limitation

  • Loading branch information...
1 parent 9e28eb7 commit d970a9567c22cf59176bd679f67bb851f082acb2 @lmarburger lmarburger committed Feb 15, 2013
Showing with 2 additions and 17 deletions.
  1. +2 −8 lib/bundler_api/web.rb
  2. +0 −9 spec/web_spec.rb
View
@@ -37,14 +37,8 @@ def initialize(conn = nil, write_conn = nil)
end
def gems
- halt 200 if params[:gems].nil?
-
- gems = params[:gems].split(',')
- if gems.size >= 100
- puts "too many gems: #{gems.size}"
- halt 413, "Faster to download the full index"
- end
- gems
+ halt(200) if params[:gems].nil?
+ params[:gems].split(',')
end
def get_deps
View
@@ -105,15 +105,6 @@ def app
expect(JSON.parse(last_response.body)).to eq(result)
end
end
-
- context "there are many gems" do
- it "returns a marshal dump" do
- gems = (1..100).map {|i| "rack#{i}" }.join(',')
- get "#{request}?gems=#{gems}"
-
- expect(last_response.status).to eq(413)
- end
- end
end
context "POST /api/v1/add_spec.json" do

0 comments on commit d970a95

Please sign in to comment.