guard-sprockets 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/guard/sprockets.rb +6 -6
- data/lib/guard/sprockets/version.rb +1 -1
- metadata +2 -2
data/lib/guard/sprockets.rb
CHANGED
@@ -25,13 +25,13 @@ module Guard
|
|
25
25
|
private
|
26
26
|
|
27
27
|
def sprocketize(path)
|
28
|
-
parts
|
29
|
-
file
|
30
|
-
parts.
|
31
|
-
|
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
|
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.
|
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-
|
13
|
+
date: 2011-05-12 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: guard
|