Skip to content

Commit

Permalink
add script/console to help debug (#124)
Browse files Browse the repository at this point in the history
Merge pull request 124
  • Loading branch information
benbalter authored and jekyllbot committed Nov 7, 2018
1 parent 3d27503 commit 9ebcf89
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions jekyll-github-metadata.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "netrc"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "pry"
spec.add_development_dependency "rubocop", "~> 0.57.2"
end
3 changes: 3 additions & 0 deletions script/console
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

PAGES_ENV=dotcom PAGES_PREVIEW_HTML_URL=true bundle exec ruby script/console.rb
15 changes: 15 additions & 0 deletions script/console.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'octokit'
require 'pry'

stack = Faraday::RackBuilder.new do |builder|
builder.use Octokit::Middleware::FollowRedirects
builder.use Octokit::Response::RaiseError
builder.use Octokit::Response::FeedParser
builder.response :logger
builder.adapter Faraday.default_adapter
end
Octokit.middleware = stack

require_relative "../lib/jekyll-github-metadata"

binding.pry

0 comments on commit 9ebcf89

Please sign in to comment.