Skip to content

Commit

Permalink
added rakefile and copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Dec 18, 2012
1 parent 57da562 commit 78f11c2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
28 changes: 28 additions & 0 deletions Rakefile
@@ -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
9 changes: 5 additions & 4 deletions ixtlan-error-handler.gemspec
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.email = ['m.kristian@web.de'] s.email = ['m.kristian@web.de']


s.files = Dir['MIT-LICENSE'] s.files = Dir['MIT-LICENSE']
s.licenses << 'MIT-LICENSE' s.licenses << 'MIT'
# s.files += Dir['History.txt'] # s.files += Dir['History.txt']
s.files += Dir['README.textile'] s.files += Dir['README.textile']
# s.extra_rdoc_files = ['History.txt','README.textile'] # s.extra_rdoc_files = ['History.txt','README.textile']
Expand All @@ -23,9 +23,10 @@ Gem::Specification.new do |s|
s.add_dependency 'slf4r', '~> 0.4.2' s.add_dependency 'slf4r', '~> 0.4.2'
s.add_development_dependency 'rspec', '~> 2.11' s.add_development_dependency 'rspec', '~> 2.11'
s.add_development_dependency 'rake', '~> 10.0.2' s.add_development_dependency 'rake', '~> 10.0.2'
s.add_development_dependency 'dm-core', IXTLAN_ERROR_HANDLER_DM_VERSION s.add_development_dependency 'dm-core', '~> 1.2.0'
s.add_development_dependency 'dm-migrations', IXTLAN_ERROR_HANDLER_DM_VERSION s.add_development_dependency 'dm-migrations', '~> 1.2.0'
s.add_development_dependency 'dm-sqlite-adapter', IXTLAN_ERROR_HANDLER_DM_VERSION s.add_development_dependency 'dm-sqlite-adapter', '~> 1.2.0'
s.add_development_dependency 'copyright-header', '~> 1.0.7'
end end


# vim: syntax=Ruby # vim: syntax=Ruby

0 comments on commit 78f11c2

Please sign in to comment.