Permalink
Browse files

Rewrite rake gem task

  • Loading branch information...
1 parent 57ad1ae commit 2e1817df6f365a768163aeac1554af53e00f6ba7 @lsegal committed Feb 23, 2014
Showing with 1 addition and 8 deletions.
  1. +1 −8 Rakefile
View
@@ -8,14 +8,7 @@ task :default => :specs
desc "Builds the gem"
task :gem do
- spec_path = 'yard.gemspec'
- spec = eval(File.read(spec_path), TOPLEVEL_BINDING, spec_path)
- if Gem.const_defined?(:Builder)
- Gem::Builder.new(spec).build
- else
- require "rubygems/package"
- Gem::Package.build(spec)
- end
+ sh "gem build yard.gemspec"
end
desc "Installs the gem"

0 comments on commit 2e1817d

Please sign in to comment.