bower-rails 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/bower-rails/version.rb +2 -2
- data/lib/tasks/bower.rake +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0220c436b253b7850eaefad8caa2438a5bed8774
|
4
|
+
data.tar.gz: b20161524154fd2a49df5319e9f4dc7ccd61cf82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f9ad7150d2cbe447f9f4a7d1491f63f01f87c320fb1a965e37862891979017593a1bc3a61ea36760c3c59a89eeeccac110b583c44d2204563afeaa6b85d6b6e
|
7
|
+
data.tar.gz: 939b9231d2ed88570ef2cce6952907c91d7903742c1cc1cb1a0dbcc1b374baaf581771712cafa5bc4080a753cd2315c14c8310f0238201bbae12848e17b7b849
|
data/README.md
CHANGED
@@ -28,7 +28,7 @@ Check out [changelog][] for the latest changes and releases.
|
|
28
28
|
in Gemfile
|
29
29
|
|
30
30
|
``` Ruby
|
31
|
-
gem "bower-rails", "~> 0.
|
31
|
+
gem "bower-rails", "~> 0.9.1"
|
32
32
|
```
|
33
33
|
|
34
34
|
##JSON configuration
|
@@ -179,7 +179,7 @@ That will produce `bower.json` like:
|
|
179
179
|
}
|
180
180
|
```
|
181
181
|
|
182
|
-
[
|
182
|
+
[bower resolution]: http://jaketrent.com/post/bower-resolutions/
|
183
183
|
|
184
184
|
##Configuration
|
185
185
|
|
@@ -228,6 +228,7 @@ Once you are done with `bower.json` or `Bowerfile` you can run
|
|
228
228
|
* `rake bower:list` to list all packages
|
229
229
|
* `rake bower:clean` to remove all files not listed as [main files](#bower-main-files) (if specified)
|
230
230
|
* `rake bower:resolve` to resolve [relative asset paths](#relative-asset-paths) in components
|
231
|
+
* `rake bower:cache:clean` to clear the bower cache. This is useful when you know a component has been updated.
|
231
232
|
|
232
233
|
If you'd like to pass any bower CLI options to a rake task, like `-f`, `-j`, you can simply do:
|
233
234
|
|
data/lib/bower-rails/version.rb
CHANGED
data/lib/tasks/bower.rake
CHANGED
@@ -77,6 +77,15 @@ namespace :bower do
|
|
77
77
|
remove_extra_files
|
78
78
|
end
|
79
79
|
end
|
80
|
+
|
81
|
+
namespace :cache do
|
82
|
+
desc "Clear the bower cache ('bower cache clean')"
|
83
|
+
task :clean do
|
84
|
+
BowerRails::Performer.perform false do |bower|
|
85
|
+
sh "#{bower} cache clean"
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
80
89
|
end
|
81
90
|
|
82
91
|
before_rake_task 'assets:precompile' do
|