README.md in guard-livereload-0.4.0 vs README.md in guard-livereload-0.4.1
- old
+ new
@@ -2,11 +2,11 @@
LiveReload guard allows to automatically reload your browser when 'view' files are modified.
## Install
-Please be sure to have [Guard](https://github.com/guard/guard) installed before continue.
+Please be sure to have [Guard](https://github.com/guard/guard) installed before continuing.
Install the gem:
``` bash
$ gem install guard-livereload
@@ -45,15 +45,15 @@
You can adapt your 'view' files like you want.
Please read [Guard doc](http://github.com/guard/guard#readme) for more info about Guardfile DSL.
``` ruby
guard 'livereload' do
- watch(%r{app/.+\.(erb|haml)})
+ watch(%r{app/views/.+\.(erb|haml|slim)})
watch(%r{app/helpers/.+\.rb})
- watch(%r{(public/|app/assets).+\.(css|js|html)})
- watch(%r{(app/assets/.+\.css)\.s[ac]ss}) { |m| m[1] }
- watch(%r{(app/assets/.+\.js)\.coffee}) { |m| m[1] }
+ watch(%r{public/.+\.(css|js|html)})
watch(%r{config/locales/.+\.yml})
+ # Rails Assets Pipeline
+ watch(%r{(app|vendor)/assets/\w+/(.+\.(css|js|html)).*}) { |m| "/assets/#{m[2]}" }
end
```
== Options
\ No newline at end of file