Browse files

rakefile + gemspec tweaks

  • Loading branch information...
1 parent cf0bec7 commit 2c6772a19d62c48f5f637370090480ee17afec7d @cldwalker committed Jul 15, 2010
Showing with 5 additions and 4 deletions.
  1. +2 −1 .gemspec
  2. +3 −3 Rakefile
View
3 .gemspec
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
s.executables = ['boson']
s.add_dependency 'hirb', '>= 0.3.2'
s.add_dependency 'alias', '>= 0.2.1'
- 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
6 Rakefile
@@ -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 2c6772a

Please sign in to comment.