Skip to content

Commit

Permalink
rakefile + gemspec tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cldwalker committed Jul 15, 2010
1 parent cf0bec7 commit 2c6772a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gemspec
Expand Up @@ -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
6 changes: 3 additions & 3 deletions Rakefile
Expand Up @@ -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
Expand All @@ -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.