No commit activity in last 3 years
No release in over 3 years
Gem, which helps realize grep through organized Interactors. For example, if sent interactor as ARG contains calling of other interactors, it will try to find entries in them. More in specs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Gem Version

Grep::Interactors

Gem, which helps grep through organized Interactors. For example, if sent interactor as ARG contains calling of other interactors, it will try to find entries in them. More in spec/

Grep-Interactors

Installation

Add this line to your application's Gemfile:

gem 'grep-interactors'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install grep-interactors

Usage

How to run

$ grep-interactors interactors_path file_path keyword

eg

$ grep-interactors /home/stanislav_lemm/Projects/solaris/app/interactors/ /home/stanislav_lemm/Projects/solaris/app/interactors/agreements/create.rb user

/home/stanislav_lemm/Projects/solaris/app/interactors/user/update_attributes.rb:6
/home/stanislav_lemm/Projects/solaris/app/interactors/user/update_attributes.rb:9
/home/stanislav_lemm/Projects/solaris/app/interactors/user/update_attributes.rb:12
/home/stanislav_lemm/Projects/solaris/app/interactors/user/update_attributes.rb:18
/home/stanislav_lemm/Projects/solaris/app/interactors/user/update_attributes.rb:30
/home/stanislav_lemm/Projects/solaris/app/interactors/user/update_attributes.rb:34
/home/stanislav_lemm/Projects/solaris/app/interactors/user/mind/refresh_value.rb:8
/home/stanislav_lemm/Projects/solaris/app/interactors/user/mind/refresh_value.rb:9
/home/stanislav_lemm/Projects/solaris/app/interactors/user/mind/refresh_value.rb:13
/home/stanislav_lemm/Projects/solaris/app/interactors/user/mind/refresh_value.rb:35
/home/stanislav_lemm/Projects/solaris/app/interactors/user/mind/refresh_value.rb:39

Works only with absolute path for now

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec 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.

Roadmap

  • Add docs
  • intellij idea plugin
  • Sublime Text 3 package

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ZamanovArslan/grep-interactors.

License

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