README.md in bower-rails-0.7.2 vs README.md in bower-rails-0.7.3
- old
+ new
@@ -20,11 +20,11 @@
**Install**
in Gemfile
``` Ruby
- gem "bower-rails", "~> 0.7.2"
+ gem "bower-rails", "~> 0.7.3"
```
##JSON configuration
Bower-rails now supports the standard [bower package](https://github.com/bower/bower#defining-a-package) format out-of-the-box. Simply place your bower.json file the Rails root directory to start. Using the standard format will default all bower components to be installed under the `vendor` directory.
@@ -81,10 +81,13 @@
# get from a git repo using the tag 1.0.0
asset "secret_logic", "1.0.0", git: "git@github.com:initech/secret_logic"
# get from a github repo
asset "secret_logic", "1.0.0", github: "initech/secret_logic"
+
+# get a specific revision from a git endpoint
+asset "secret_logic", github: "initech/secret_logic", ref: '0adff'
```
But the default value can be overridden by `assets_path` method:
``` ruby
@@ -120,9 +123,10 @@
Change options in your `config/initializers/bower_rails.rb`:
``` ruby
BowerRails.configure do |bower_rails|
# By default options are false
+ bower_rails.install_before_precompile = true # invokes rake bower:install before precompilation
bower_rails.resolve_before_precompile = true # invokes rake bower:resolve before precompilation
bower_rails.clean_before_precompile = true # invokes rake bower:clean before precompilation
end
```