mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-24 23:06:42 +00:00
some Rakefile cleanup and simplification
This commit is contained in:
parent
38457ec334
commit
4efa91f3b0
16
Rakefile
16
Rakefile
@ -12,26 +12,28 @@ spec = Gem::Specification.new do |s|
|
|||||||
s.name = GEM_NAME
|
s.name = GEM_NAME
|
||||||
s.version = GEM_VERSION
|
s.version = GEM_VERSION
|
||||||
s.platform = Gem::Platform::RUBY
|
s.platform = Gem::Platform::RUBY
|
||||||
s.rubyforge_project = "validates_timeliness"
|
|
||||||
s.has_rdoc = true
|
|
||||||
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG.rdoc", "LICENSE"]
|
|
||||||
s.summary = %q{Date and time validation plugin for Rails which allows custom formats}
|
s.summary = %q{Date and time validation plugin for Rails which allows custom formats}
|
||||||
s.description = s.summary
|
s.description = s.summary
|
||||||
s.author = "Adam Meehan"
|
s.author = "Adam Meehan"
|
||||||
s.email = "adam.meehan@gmail.com"
|
s.email = "adam.meehan@gmail.com"
|
||||||
s.homepage = "http://github.com/adzap/validates_timeliness"
|
s.homepage = "http://github.com/adzap/validates_timeliness"
|
||||||
s.require_path = 'lib'
|
s.require_path = 'lib'
|
||||||
s.files = %w(validates_timeliness.gemspec LICENSE CHANGELOG.rdoc README.rdoc Rakefile) + Dir.glob("{lib,spec}/**/*")
|
|
||||||
s.add_runtime_dependency 'timeliness', '~> 0.3.2'
|
s.add_runtime_dependency 'timeliness', '~> 0.3.2'
|
||||||
|
|
||||||
|
s.files = `git ls-files`.split("\n") - %w{ .rspec .gitignore autotest/discover.rb Gemfile Gemfile.lock }
|
||||||
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
||||||
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
||||||
|
|
||||||
|
s.has_rdoc = true
|
||||||
|
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG.rdoc", "LICENSE"]
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Default: run specs.'
|
desc 'Default: run specs.'
|
||||||
task :default => :spec
|
task :default => :spec
|
||||||
|
|
||||||
desc "Run specs"
|
desc "Run specs"
|
||||||
RSpec::Core::RakeTask.new do |t|
|
RSpec::Core::RakeTask.new(:spec)
|
||||||
t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
|
|
||||||
end
|
|
||||||
|
|
||||||
desc "Generate code coverage"
|
desc "Generate code coverage"
|
||||||
RSpec::Core::RakeTask.new(:coverage) do |t|
|
RSpec::Core::RakeTask.new(:coverage) do |t|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user