Permalink
Browse files

gemspec + license tweaks

  • Loading branch information...
cldwalker committed Jul 15, 2010
1 parent 2c1e5ca commit a48f9c8cd7c11f7d787699abd3eff1d7844590e7
Showing with 6 additions and 5 deletions.
  1. +2 −1 .gemspec
  2. +1 −1 LICENSE.txt
  3. +3 −3 Rakefile
View
@@ -15,7 +15,8 @@ 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.files += Dir.glob('test/*.yml')
s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
+ s.license = 'MIT'
end
View
@@ -1,6 +1,6 @@
The MIT LICENSE
-Copyright (c) 2009 Gabriel Horner
+Copyright (c) 2010 Gabriel Horner
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
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 a48f9c8

Please sign in to comment.