tiegz / bundle_grep

Grep for something across your bundled gems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BundleGrep

A Bundler Plugin that greps your bundled Ruby gems.

Installation

Add this line to your application's Gemfile:

plugin 'bundle_grep' # Installs from Rubygems

Or, install manually:

$ bundler plugin install bundle_grep

Secure Installation

bundler_grep is cryptographically signed. To be sure the gem you install hasn’t been tampered with:

Add my public key (if you haven't already) as a trusted certificate:

gem cert --add <(curl -Ls https://raw.githubusercontent.com/tiegz/bundle_grep/master/certs/tiegz.pem)

Add this line to your application's Gemfile:

plugin 'bundle_grep' # Installs from Rubygems

And run bundler in your project: $ bundle --trust-policy MediumSecurity

(for more information on --trust-policy, see https://guides.rubygems.org/security/#using-gems)

Usage

Once installed, execute:

$ bundle grep spec.license
$ .../somelibrary/somelibrary.gemspec:  spec.license       = "MIT"

Uninstallation

Bundler currently doesn't have a bundler plugin uninstall ... command, but you can reset your local plugins with a simple rm -rf .bundle/plugin

Development

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

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/tiegz/bundle_grep. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

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

Code of Conduct

Everyone interacting in the BundleGrep project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

Grep for something across your bundled gems.

License:MIT License


Languages

Language:Ruby 96.6%Language:Shell 3.4%