Sha256: ed09648f2e71d272ed3b9ad519f0b88218233985af323380cad24ae0c114e0c2
Contents?: true
Size: 609 Bytes
Versions: 3
Compression:
Stored size: 609 Bytes
Contents
require 'fileutils' require 'jekyll' require 'jekyll-timeago' RSpec.configure do |config| config.order = :random SOURCE_DIR = File.expand_path('../source', __FILE__) DEST_DIR = File.expand_path('../_site', __FILE__) FileUtils.rm_rf(DEST_DIR) FileUtils.mkdir_p(DEST_DIR) def source_dir(*files) File.join(SOURCE_DIR, *files) end def dest_dir(*files) File.join(DEST_DIR, *files) end def configuration_file YAML.load_file(File.join(SOURCE_DIR, '_config.yml')) end def timeago(from, to = Date.today, options = {}) Jekyll::Timeago.timeago(from, to, options) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-timeago-0.11.1 | spec/spec_helper.rb |
jekyll-timeago-0.11.0 | spec/spec_helper.rb |
jekyll-timeago-0.10.1 | spec/spec_helper.rb |