Sha256: c9a2d65df09393bd88246821e39c628039b558795389440e3b90a55d798eb7d9
Contents?: true
Size: 656 Bytes
Versions: 5
Compression:
Stored size: 656 Bytes
Contents
require 'date' require 'jazzy/gem_version' module Jazzy class Doc < Mustache self.template_path = File.dirname(__FILE__) + '/..' def date # Fake date is used to keep integration tests consistent ENV['JAZZY_FAKE_DATE'] || DateTime.now.strftime('%Y-%m-%d') end def year # Fake date is used to keep integration tests consistent if ENV['JAZZY_FAKE_DATE'] ENV['JAZZY_FAKE_DATE'][0..3] else DateTime.now.strftime('%Y') end end def jazzy_version # Fake version is used to keep integration tests consistent ENV['JAZZY_FAKE_VERSION'] || Jazzy::VERSION end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
jazzy-0.0.13 | lib/jazzy/doc.rb |
jazzy-0.0.12 | lib/jazzy/doc.rb |
jazzy-0.0.11 | lib/jazzy/doc.rb |
jazzy-0.0.10 | lib/jazzy/doc.rb |
jazzy-0.0.9 | lib/jazzy/doc.rb |