Permalink
Browse files

Adding symlink for gems folder, no more unpacking

  • Loading branch information...
1 parent 078d6b5 commit 3bdfe2387298db688c107a36c52ae34c8d2e853b @qrush qrush committed May 10, 2009
Showing with 1 addition and 10 deletions.
  1. +0 −3 gemcutter.rb
  2. +1 −0 server/gems
  3. 0 server/gems/.gitignore
  4. +0 −7 spec/api_spec.rb
View
3 gemcutter.rb
@@ -21,9 +21,6 @@
f.write installer.spec.to_ruby
end
- FileUtils.mkdir gem_path
- installer.unpack gem_path
-
content_type "text/plain"
status(201)
"#{name} registered."
View
1 server/gems
View
0 server/gems/.gitignore
No changes.
View
7 spec/api_spec.rb
@@ -3,7 +3,6 @@
describe "Gemcutter API" do
after do
FileUtils.rm_rf(Dir[Gemcutter.server_path("cache", "*.gem")])
- FileUtils.rm_rf(Dir[Gemcutter.server_path("gems", "**", "*")])
FileUtils.rm_rf(Dir[Gemcutter.server_path("specifications", "*.gemspec")])
end
@@ -26,12 +25,6 @@
File.exists?(spec_path).should be_true
end
- it "should unpack gem into gems folder" do
- gem_path = Gemcutter.server_path("gems", @gem.chomp(".gem"))
- File.directory?(gem_path).should be_true
- Dir[gem_path + "/**/*"].size.should_not be_zero
- end
-
it "should alert user that gem was created" do
last_response.body.should == "#{@gem} registered."
last_response.status.should == 201

0 comments on commit 3bdfe23

Please sign in to comment.