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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5d345cc46e986fe549519ea329c9145aacc6860
4
- data.tar.gz: 3e0f4b6e06aab44689a2dff64848e7ffa76f455a
3
+ metadata.gz: a657e03eb4b307a51e24d70ad3939ccc35c5c428
4
+ data.tar.gz: ea44abd40ec2a613afde7b3a64e967c9069347ae
5
5
  SHA512:
6
- metadata.gz: 8870bf9f9834f199fcfd062f6593c1bd1f14318ffec87ed5edc45c60690926d63daa31a221eef29074d35f0d93b805bb11d31ca25da5cee20006d5c1dcba3b78
7
- data.tar.gz: 824d41e76086bb3c6994b7e27cbffba3958c1f7e32c0407441c3a928614707ff074dd4c449a5e4a9fc3367a31d97081391465b1e5509f70e4906a31d5fed4c3d
6
+ metadata.gz: 0d8417cfe875e4fdb0460264f9edaabe317fc0b8303bb3984d707d652964926b735a0df2602d89457068e2a51667ea682991fcb8f41b7f48050a91a67204180e
7
+ data.tar.gz: d86ee79d2e5e76046690d5b2d7027d13266ffd405ed4b27215d2c2da3f11e19adf194392ea7c7e111d845198399b5799d27be2706ea7256acd978392b6a53112
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Bower
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -1 +1 @@
1
- { "directory" : "/my/bower/assets" }
1
+ { "directory" : "my/bower/assets" }
@@ -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
- env.paths.should include('/my/bower/assets')
14
+ expanded_path = File.expand_path('../fixtures/my/bower/assets', __FILE__)
15
+ env.paths.should include(expanded_path)
15
16
  end
16
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-bower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler