README.md in guard-sprockets2-0.0.2 vs README.md in guard-sprockets2-0.0.3
- old
+ new
@@ -20,32 +20,32 @@
- `sprockets` - Required. Set it to an instance of `Sprockets::Environment`
- `assets_path` - Optional. The compiled assets path. Defaults to public/assets
- `precompile` - Optional. An array of regex's or strings which match files
that need compiling. Defaults to `[ /\w+\.(?!js|css).+/, /application.(css|js)$/ ]`
+- `digest` - Optional. Whether to include the digest in the filename. Defaults to true.
Example Rails and Sinatra apps can be found in the examples directory.
-# Rails
+# Sinatra
-When Rails is loaded the defaults come from Rails' configuration, so no
-additional configuration is necessary.
-
```ruby
-require './config/environment'
+require './app'
-guard 'sprockets2' do
- watch(%r{^app/assets/.+$})
- watch('config/application.rb')
+guard 'sprockets2', :sprockets => App.sprockets do
+ watch(%r{^assets/.+$})
+ watch('app.rb')
end
```
-# Sinatra
+# Rails
+When Rails is loaded the defaults come from Rails' configuration.
+
```ruby
-require './app'
+require './config/environment'
-guard 'sprockets2', :sprockets => App.sprockets do
- watch(%r{^assets/.+$})
- watch('app.rb')
+guard 'sprockets2' do
+ watch(%r{^app/assets/.+$})
+ watch('config/application.rb')
end
```