Repository is archived
No commit activity in last 3 years
No release in over 3 years
Replace "-" with STDIN like unix option.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

< 3.0, >= 2.2.0.pre.8
 Project Readme

Parser::CliWrapper

Parser::CliWrapper provides ruby-parse-wrapped and ruby-rewrite-wrapped command. Parser gem provides both ruby-parse and ruby-rewrite, but these don't accept STDIN.

This replaces '-' with STDIN like unix option, the example below:

$ cat Gemfile | ruby-parse-wrapped -
(begin
  (send nil :source
    (str "https://rubygems.org"))
  (send nil :gemspec))

*-wrapped command accepts all existing options.

$ ruby-parse-wrapped Gemfile
(begin
  (send nil :source
    (str "https://rubygems.org"))
  (send nil :gemspec))

This is pareparation:

$ cat Gemfile
source 'https://rubygems.org';

gemspec

$ ruby-parse Gemfile
(begin
  (send nil :source
    (str "https://rubygems.org"))
  (send nil :gemspec))

Installation

Add this line to your application's Gemfile:

gem 'parser-cli_wrapper'

And then execute:

$ bundle

Or install it yourself as:

$ gem install parser-cli_wrapper

Usage

TODO: Write usage instructions here

Contributing

  1. Fork it ( https://github.com/sanemat/parser-cli_wrapper/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request