Sha256: f2edc6f9f02153c8703f0e085470f2b1750a76103283508fb5ed0b66e641f5f3
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 KB
Contents
# -*- ruby -*- require 'rubygems' require 'hoe' require './lib/timecop/version.rb' PKG_NAME = "timecop" PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' version = Timecop::Version::STRING.dup if ENV['SNAPSHOT'].to_i == 1 version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S") end PKG_VERSION = version PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" Hoe.new(PKG_NAME, PKG_VERSION) do |p| p.rubyforge_name = 'johntrupiano' # if different than lowercase project name p.developer('John Trupiano', 'jtrupiano@gmail.com') p.name = PKG_NAME p.version = PKG_VERSION #p.platform = Gem::Platform::RUBY p.author = "John Trupiano" p.email = "jtrupiano@gmail.com" p.description = %q(A gem providing simple ways to temporarily override Time.now, Date.today, and DateTime.now. It provides "time travel" capabilities, making it dead simple to write test time-dependent code.) p.summary = p.description # More details later?? p.remote_rdoc_dir = PKG_NAME # Release to /PKG_NAME # p.changes = p.paragraphs_of('CHANGELOG', 0..1).join("\n\n") p.need_zip = true p.need_tar = false end # vim: syntax=Ruby # Override the test task and instruct them how to actually run the tests. Rake.application.send(:eval, "@tasks.delete('test')") desc "Does not execute tests. Manually run shell script ./run_tests.sh to execute tests." task :test do puts <<-MSG In order to run the test suite, run: cd test && ./run_tests.sh The tests need to be run with different libraries loaded, which rules out using Rake to automate them. MSG end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
jtrupiano-timecop-0.2.0 | Rakefile |
timecop-0.2.0 | Rakefile |