Skip to content

Commit

Permalink
Adding symlink for gems folder, no more unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed May 10, 2009
1 parent 078d6b5 commit 3bdfe23
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions gemcutter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
1 change: 1 addition & 0 deletions server/gems
Empty file removed server/gems/.gitignore
Empty file.
7 changes: 0 additions & 7 deletions spec/api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 3bdfe23

Please sign in to comment.