Sha256: 5fe209dd50e96147b4c8f7f1537bec6dcbde9274c07bfbc9ab9b2a1323230eea

Contents?: true

Size: 945 Bytes

Versions: 4

Compression:

Stored size: 945 Bytes

Contents

#!/usr/bin/env ruby
def relative_to_root(path)
  File.expand_path(path, File.dirname(__dir__))
end

require "bundler/setup"
require "jekyll"
require_relative("../lib/jekyll-airtable.rb")
require 'byebug'

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start

SOURCE_DIR = relative_to_root("spec/fixtures")
DEST_DIR   = relative_to_root("spec/dest")

def source_dir(*files)
  File.join(SOURCE_DIR, *files)
end

def dest_dir(*files)
  File.join(DEST_DIR, *files)
end

def config(overrides = {})
  Jekyll.configuration(
    "source"      => source_dir,
    "destination" => dest_dir,
    "url"         => "http://example.org"
  ).merge(overrides)
end

def site(configuration = config)
  Jekyll::Site.new(configuration)
end

require "irb"
IRB.start(__FILE__)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-airtable-0.4.1 bin/console
jekyll-airtable-0.3.0 bin/console
jekyll-airtable-0.2.0 bin/console
jekyll-airtable-0.1.0 bin/console