Skip to content
This repository
Browse code

Adding symlink for gems folder, no more unpacking

  • Loading branch information...
commit 3bdfe2387298db688c107a36c52ae34c8d2e853b 1 parent 078d6b5
Nick Quaranto qrush authored
3  gemcutter.rb
@@ -21,9 +21,6 @@
21 21 f.write installer.spec.to_ruby
22 22 end
23 23
24   - FileUtils.mkdir gem_path
25   - installer.unpack gem_path
26   -
27 24 content_type "text/plain"
28 25 status(201)
29 26 "#{name} registered."
1  server/gems
0  server/gems/.gitignore
No changes.
7 spec/api_spec.rb
@@ -3,7 +3,6 @@
3 3 describe "Gemcutter API" do
4 4 after do
5 5 FileUtils.rm_rf(Dir[Gemcutter.server_path("cache", "*.gem")])
6   - FileUtils.rm_rf(Dir[Gemcutter.server_path("gems", "**", "*")])
7 6 FileUtils.rm_rf(Dir[Gemcutter.server_path("specifications", "*.gemspec")])
8 7 end
9 8
@@ -26,12 +25,6 @@
26 25 File.exists?(spec_path).should be_true
27 26 end
28 27
29   - it "should unpack gem into gems folder" do
30   - gem_path = Gemcutter.server_path("gems", @gem.chomp(".gem"))
31   - File.directory?(gem_path).should be_true
32   - Dir[gem_path + "/**/*"].size.should_not be_zero
33   - end
34   -
35 28 it "should alert user that gem was created" do
36 29 last_response.body.should == "#{@gem} registered."
37 30 last_response.status.should == 201

0 comments on commit 3bdfe23

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