Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenience Ruby files regexes to DSL #423

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rafasoares
Copy link

Sometimes you may want to work on ruby files in the root folder or with an arbitrary structure (not necessarily in the lib/ folder).

This just adds those cases to the DSL, for convenience sake.

Example usage:

  require "guard/rspec/dsl"
  dsl = Guard::RSpec::Dsl.new(self)

  # This is similar to the current `ruby.lib_files`
  # Ruby files
  ruby = dsl.ruby
  dsl.watch_spec_files_for(ruby.all_ruby_files)
  # Or
  dsl.watch_spec_files_for(ruby.root_files) 

I looked for DSL specs, but didn't find any. If there are, please point me in their direction and I'll update them.

Sometimes you may want to work on ruby files in the root folder or with an arbitrary structure (not necessarily in the `lib/` folder).

This just adds those cases to the DSL, for convenience sake.
lib/guard/rspec/dsl.rb Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants