Permalink
Browse files

added license headers

  • Loading branch information...
1 parent 82374ac commit 3e0c312a05a9c60975370303284d0524692e4da1 @mkristian committed Jan 25, 2013
Showing with 21 additions and 0 deletions.
  1. +19 −0 Rakefile
  2. +2 −0 jbundler.gemspec
View
@@ -73,4 +73,23 @@ task :clean do
Maven::Ruby::Maven.new.exec 'clean'
end
+task :headers do
+ require 'copyright_header'
+
+ s = Gem::Specification.load( Dir["*gemspec"].first )
+
+ args = {
+ :license => s.license,
+ :copyright_software => s.name,
+ :copyright_software_description => s.description,
+ :copyright_holders => s.authors,
+ :copyright_years => [Time.now.year],
+ :add_path => "lib:src",
+ :output_dir => './'
+ }
+
+ command_line = CopyrightHeader::CommandLine.new( args )
+ command_line.execute
+end
+
# vim: syntax=Ruby
View
@@ -14,6 +14,8 @@ END
s.bindir = "bin"
s.executables = ['jbundle']
+ s.license = 'MIT'
+
s.files += Dir['lib/**/*']
s.files += Dir['spec/**/*']
s.files += Dir['MIT-LICENSE'] + Dir['*.md']

0 comments on commit 3e0c312

Please sign in to comment.