guard-sprockets 0.1.3 → 0.1.4

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.
@@ -25,13 +25,13 @@ module Guard
25
25
  private
26
26
 
27
27
  def sprocketize(path)
28
- parts = path.split('/')
29
- file = parts.pop
30
- parts.pop
31
- @destination ||= parts.join('/')
28
+ parts = path.split('/')
29
+ file = parts.pop
30
+ source_dir = "#{parts[0...-1].join('/')}/*"
31
+ destination = parts[1..-1].join('/')
32
+ @destination ||= destination
32
33
  secretary = ::Sprockets::Secretary.new(
33
34
  :asset_root => "#{parts.first}",
34
- :load_path => ["#{parts.join('/')}/src/*"],
35
35
  :source_files => ["#{path}"],
36
36
  :interpolate_constants => false
37
37
  )
@@ -44,4 +44,4 @@ module Guard
44
44
  UI.info "Sprockets creating file #{@destination}/#{file}"
45
45
  end
46
46
  end
47
- end
47
+ end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Guard
3
3
  module Sprockets
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
6
6
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: guard-sprockets
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Aaron Cruz
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-11 00:00:00 Z
13
+ date: 2011-05-12 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: guard