features: some under-the-hood enhancements
This commit is contained in:
parent
e5d8bdee8f
commit
1d369aada3
|
@ -105,10 +105,8 @@ end
|
||||||
#
|
#
|
||||||
|
|
||||||
Given %r{^I have a configuration file with:$} do |table|
|
Given %r{^I have a configuration file with:$} do |table|
|
||||||
File.open("_config.yml", "w") do |f|
|
|
||||||
table.hashes.each do |row|
|
table.hashes.each do |row|
|
||||||
f.write("#{row["key"]}: #{row["value"]}\n")
|
step %(I have a configuration file with "#{row["key"]}" set to "#{row["value"]}")
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ require "fileutils"
|
||||||
require "jekyll/utils"
|
require "jekyll/utils"
|
||||||
require "open3"
|
require "open3"
|
||||||
require "time"
|
require "time"
|
||||||
|
require "safe_yaml/load"
|
||||||
|
|
||||||
class Paths
|
class Paths
|
||||||
SOURCE_DIR = Pathname.new(File.expand_path("../..", __dir__))
|
SOURCE_DIR = Pathname.new(File.expand_path("../..", __dir__))
|
||||||
|
|
Loading…
Reference in New Issue