0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Use Pry as the Middleman console.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

< 5, >= 3.3
~> 0.9
 Project Readme

middleman-pry

Gem Version Build Status

Replaces Middleman's built-in console with Pry, à la pry-rails.

Installation

Install the gem:

# Gemfile

gem 'middleman-pry'
$ bundle install

and activate the extension:

# config.rb

activate :pry

Usage

Start the Middleman console like normal:

$ middleman console

You should find yourself in an interactive Pry session in the context of your Middleman app:

middleman:~$ cd sitemap.resources.first
middleman:Middleman::Sitemap::Resource$ ls
Middleman::Sitemap::Resource#methods:
  add_metadata     blog_controller=   instrument  request_path  url
  app              destination_path   logger      source_file
  binary?          destination_path=  metadata    store
  blog_controller  ext                path        template?
Middleman::Blog::BlogArticle#methods:
  blog_data     default_summary_generator  previous_article  summary
  blog_options  inspect                    published?        tags
  body          lang                       render            title
  date          next_article               slug
middleman:Middleman::Sitemap::Resource$ url
=> "/use-pry-as-the-middleman-console/"