lib/hexx/suit/install/Guardfile in hexx-suit-2.2.0 vs lib/hexx/suit/install/Guardfile in hexx-suit-2.2.1

- old
+ new

@@ -1,15 +1,14 @@ # encoding: utf-8 guard :rspec, cmd: "bundle exec rspec" do - watch(/^lib(.+)\.rb$/) do |m| - "spec/tests#{ m[1] }_spec.rb" + watch(%r{^spec/tests/.+_spec\.rb$}) + + watch(%r{^lib/(.+)\.rb}) do + "spec/tests/#{ m[1] }_spec.rb" end - watch("spec/tests/*_spec.rb") - - watch("lib/*.rb") { "spec" } - watch("spec/spec_helper.rb") { "spec" } - watch("spec/support/**/*.rb") { "spec" } + watch(%r{^lib/\w+\.rb$}) { "spec" } + watch("spec/spec_helper.rb") { "spec" } end # guard :rspec