Sha256: c5878d2ea86357956d7c1ff7190178b608c1246d891b3d1982b1c99e4db40d09
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
require 'time' difficulty 2 description "Commit your changes with the future date (e.g. tomorrow)." setup do repo.init FileUtils.touch("README") repo.add("README") system "git branch -m master" end solution do repo.commits.length == 1 && repo.commits.first.authored_date > Time.now end hint do puts "Build a time format, and commit your code using --date parameter for \"future\"." end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
githug-0.5.1 | levels/commit_in_future.rb |