Project

jekyll_run

0.0
No release in over a year
Jekyll tag plugin that executes a program and returns the output from STDOUT.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

jekyll_run Gem Version

jekyll_run Jekyll tag plugin that executes a program and returns the output from STDOUT. Because the output includes the command that was executed, and contains unselectable span tags, this plugin is intended to be embedded within a pre tag.

CSS

The following CSS must be used in order for the plugin to work:

.unselectable {
  color: #7922f9;
  -moz-user-select: none;
  -khtml-user-select: none;
  user-select: none;
}

Installation

Add this line to your application's Gemfile:

gem 'jekyll_run'

And then execute:

$ bundle

Additional Information

More information is available on Mike Slinn’s website.

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

Install development dependencies like this:

$ BUNDLE_WITH="development" bundle

To build and install this gem onto your local machine, run:

$ bundle exec rake install
jekyll_run 1.0.0 built to pkg/jekyll_run-0.1.0.gem.
jekyll_run (1.0.0) installed.

$ gem info jekyll_run

*** LOCAL GEMS ***

jekyll_run (1.0.0)
    Author: Mike Slinn
    Homepage:
    https://github.com/mslinn/jekyll_run
    License: MIT
    Installed at: /home/mslinn/.gems

    Generates Jekyll logger with colored output.

To release a new version,

  1. Update the version number in version.rb.

  2. Commit all changes to git; if you don't the next step might fail with an unexplainable error message.

  3. Run the following:

    $ bundle exec rake release

    The above creates a git tag for the version, commits the created tag, and pushes the new .gem file to RubyGems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mslinn/jekyll_run.

License

The gem is available as open source under the terms of the MIT License.