Permalink
Browse files

rakefile + gemspec tweaks

  • Loading branch information...
1 parent bcf1338 commit b6f48020543a53908c6b48d48e20d62b9f59d009 @cldwalker committed Jul 15, 2010
Showing with 5 additions and 4 deletions.
  1. +2 −1 .gemspec
  2. +3 −3 Rakefile
View
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'bacon'
s.add_development_dependency 'mocha'
s.add_development_dependency 'mocha-on-bacon'
- s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c}]) + %w{Rakefile gemspec}
+ s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c}]) + %w{Rakefile .gemspec}
s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
+ s.license = 'MIT'
end
View
@@ -2,12 +2,12 @@ require 'rake'
require 'fileutils'
def gemspec
- @gemspec ||= eval(File.read('gemspec'), binding, 'gemspec')
+ @gemspec ||= eval(File.read('.gemspec'), binding, '.gemspec')
end
desc "Build the gem"
task :gem=>:gemspec do
- sh "gem build gemspec"
+ sh "gem build .gemspec"
FileUtils.mkdir_p 'pkg'
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
end
@@ -32,4 +32,4 @@ task :test do |t|
sh 'bacon -q -Ilib -I. test/*_test.rb'
end
-task :default => :test
+task :default => :test

0 comments on commit b6f4802

Please sign in to comment.