accio_bower 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -9
- data/accio_bower.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96bbbb2ebcca6883ca795476681799ce44d6a6aa
|
4
|
+
data.tar.gz: ae92265ab9a03619a8a185a6794f71c10cb486d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8b9e30d1549bfbcdfc2c4f88924d1c1bdd7464b1d8ec3b1cb00dac81586aea01eba9b29733ee15760f5b613f2db73c30bb843e3ae14e6f4675986fd2fc79372
|
7
|
+
data.tar.gz: fccbdc50330845dd1f09012f87544fc054b1ffddaddbddef38cb10549f522238e05414b9f847f1a27e2decf72109b145b4347d82a0b88a61977bdbc68089ebc8
|
data/README.md
CHANGED
@@ -1,28 +1,33 @@
|
|
1
|
-
#
|
1
|
+
# Bower Sprockets for Ruby on Rails
|
2
2
|
|
3
|
-
|
3
|
+
[](https://gitter.im/binarybabel/gem-accio_bower?utm_source=badge&utm_medium=badge&utm_content=badge) [](https://badge.fury.io/rb/accio_bower)
|
4
|
+
|
5
|
+
**Bower** asset processor for **Rails 4/5** Sprockets, featuring:
|
6
|
+
|
7
|
+
+ ***CSS/JS URL Rewriting*** for images, fonts, etc.
|
8
|
+
+ Support for production ***Hashes/Digests***
|
4
9
|
|
5
10
|
## Installation
|
6
11
|
|
7
|
-
Add this line to your application's
|
12
|
+
Add this line to your application's **`Gemfile`**:
|
8
13
|
|
9
14
|
```ruby
|
10
15
|
gem 'accio_bower'
|
11
16
|
```
|
12
17
|
|
13
|
-
And this line to a new/existing
|
18
|
+
And this line to a new/existing **`.bowerrc`** file:
|
14
19
|
|
15
20
|
```json
|
16
21
|
{"directory": "vendor/assets/bower_components"}
|
17
22
|
```
|
18
23
|
|
19
|
-
If you **DO NOT** yet have a
|
24
|
+
If you **DO NOT** yet have a **`bower.json`** file:
|
20
25
|
|
21
26
|
$ bundle install
|
22
27
|
$ bower init # follow instructions
|
23
|
-
$ bower install --save
|
28
|
+
$ bower install --save SOME-BOWER-DEPDENDENCY
|
24
29
|
|
25
|
-
If you **ALREADY** have a
|
30
|
+
If you **ALREADY** have a **`bower.json`** file:
|
26
31
|
|
27
32
|
$ rm -rf bower_components
|
28
33
|
$ bundle install
|
@@ -30,14 +35,23 @@ If you **ALREADY** have a `bower.json` file:
|
|
30
35
|
|
31
36
|
### To include CSS/JS files in your application
|
32
37
|
|
33
|
-
|
38
|
+
Use the name of the file under the `vendor/assets/bower_components` path.
|
34
39
|
|
35
|
-
For example, to include `font-awesome` in
|
40
|
+
For example, to include `font-awesome` in **`application.css`**:
|
36
41
|
|
37
42
|
```
|
38
43
|
*= require 'font-awesome/css/font-awesome.min'
|
39
44
|
```
|
40
45
|
|
46
|
+
### You'll still need `$ bower install`
|
47
|
+
|
48
|
+
This gem does not execute or modify your Bower configuration or components.
|
49
|
+
|
50
|
+
* Run `$ bower install` whenever you modify **`bower.json`**
|
51
|
+
* If you're building in a sandbox, CI, Docker, Heroku, etc.
|
52
|
+
* Include `$ bower install; bower prune` in your build-script.
|
53
|
+
* Consider saving/restoring `vendor/assets/bower_components` as a build cache.
|
54
|
+
|
41
55
|
## Configuration
|
42
56
|
|
43
57
|
### Ruby Initializer
|
data/accio_bower.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: accio_bower
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BinaryBabel OSS
|
@@ -14,16 +14,16 @@ dependencies:
|
|
14
14
|
name: versioneer
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|