sprockets-bower 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sprockets/bower.rb +1 -1
- data/lib/sprockets/bower/version.rb +1 -1
- data/spec/fixtures/.bowerrc +1 -1
- data/spec/manifest_spec.rb +2 -1
- 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: a657e03eb4b307a51e24d70ad3939ccc35c5c428
|
4
|
+
data.tar.gz: ea44abd40ec2a613afde7b3a64e967c9069347ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d8417cfe875e4fdb0460264f9edaabe317fc0b8303bb3984d707d652964926b735a0df2602d89457068e2a51667ea682991fcb8f41b7f48050a91a67204180e
|
7
|
+
data.tar.gz: d86ee79d2e5e76046690d5b2d7027d13266ffd405ed4b27215d2c2da3f11e19adf194392ea7c7e111d845198399b5799d27be2706ea7256acd978392b6a53112
|
data/lib/sprockets/bower.rb
CHANGED
@@ -30,7 +30,7 @@ module Sprockets
|
|
30
30
|
# Create a new Manifest and configure it with the bowerrc file.
|
31
31
|
def self.load!(bowerrc_path)
|
32
32
|
json = JSON.parse File.read bowerrc_path
|
33
|
-
new json['directory']
|
33
|
+
new File.expand_path json['directory'], File.dirname(bowerrc_path)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
data/spec/fixtures/.bowerrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{ "directory" : "
|
1
|
+
{ "directory" : "my/bower/assets" }
|
data/spec/manifest_spec.rb
CHANGED
@@ -11,6 +11,7 @@ describe Sprockets::Bower::Manifest do
|
|
11
11
|
|
12
12
|
it "should load from .bowerrc file" do
|
13
13
|
Sprockets::Bower::Manifest.load(bowerrc_path).configure env
|
14
|
-
|
14
|
+
expanded_path = File.expand_path('../fixtures/my/bower/assets', __FILE__)
|
15
|
+
env.paths.should include(expanded_path)
|
15
16
|
end
|
16
17
|
end
|