mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
@@ -1,10 +1,10 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require 'pry'
|
||||
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), *%w{ .. lib })
|
||||
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
|
||||
require 'jekyll'
|
||||
|
||||
TEST_DIR = File.expand_path(File.join(File.dirname(__FILE__), *%w{ .. test }))
|
||||
TEST_DIR = File.expand_path("../test", __dir__)
|
||||
|
||||
def fixture_site(overrides = {})
|
||||
Jekyll::Site.new(site_configuration(overrides))
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
require "bundler/setup"
|
||||
require "json"
|
||||
require "stackprof"
|
||||
require File.expand_path("../../lib/jekyll", __FILE__)
|
||||
require File.expand_path("../lib/jekyll", __dir__)
|
||||
|
||||
MODE = ARGV.first || "cpu"
|
||||
PROF_OUTPUT_FILE = File.expand_path("../../tmp/stackprof-#{MODE}-#{Time.now.strftime("%Y%m%d%H%M")}.dump", __FILE__)
|
||||
PROF_OUTPUT_FILE = File.expand_path("../tmp/stackprof-#{MODE}-#{Time.now.strftime("%Y%m%d%H%M")}.dump", __dir__)
|
||||
|
||||
puts "Stackprof Mode: #{MODE}"
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
require 'json'
|
||||
require 'open-uri'
|
||||
|
||||
config = File.expand_path "../lib/jekyll/mime.types", File.dirname(__FILE__)
|
||||
config = File.expand_path "../lib/jekyll/mime.types", __dir__
|
||||
|
||||
# Create an array of vendored mimetype => [extensions]
|
||||
mimes = {}
|
||||
|
||||
Reference in New Issue
Block a user