Permalink
Browse files

added rakefile and copyright headers

  • Loading branch information...
1 parent 57da562 commit 78f11c265cdc059a11b1ddb5c36a5747bf62847d @mkristian committed Dec 18, 2012
Showing with 33 additions and 4 deletions.
  1. +28 −0 Rakefile
  2. +5 −4 ixtlan-error-handler.gemspec
View
@@ -0,0 +1,28 @@
+# -*- mode: ruby -*-
+
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec)
+
+task :default => [ :spec ]
+
+task :headers do
+ require 'rubygems'
+ 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',
+ :output_dir => './'
+ }
+
+ command_line = CopyrightHeader::CommandLine.new( args )
+ command_line.execute
+end
+# vim: syntax=Ruby
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.email = ['m.kristian@web.de']
s.files = Dir['MIT-LICENSE']
- s.licenses << 'MIT-LICENSE'
+ s.licenses << 'MIT'
# s.files += Dir['History.txt']
s.files += Dir['README.textile']
# s.extra_rdoc_files = ['History.txt','README.textile']
@@ -23,9 +23,10 @@ Gem::Specification.new do |s|
s.add_dependency 'slf4r', '~> 0.4.2'
s.add_development_dependency 'rspec', '~> 2.11'
s.add_development_dependency 'rake', '~> 10.0.2'
- s.add_development_dependency 'dm-core', IXTLAN_ERROR_HANDLER_DM_VERSION
- s.add_development_dependency 'dm-migrations', IXTLAN_ERROR_HANDLER_DM_VERSION
- s.add_development_dependency 'dm-sqlite-adapter', IXTLAN_ERROR_HANDLER_DM_VERSION
+ s.add_development_dependency 'dm-core', '~> 1.2.0'
+ s.add_development_dependency 'dm-migrations', '~> 1.2.0'
+ s.add_development_dependency 'dm-sqlite-adapter', '~> 1.2.0'
+ s.add_development_dependency 'copyright-header', '~> 1.0.7'
end
# vim: syntax=Ruby

0 comments on commit 78f11c2

Please sign in to comment.