roda-sprocket_assets 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/plugins/sprocket_assets_task.rb +2 -3
- data/roda-sprocket_assets.gemspec +1 -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: 2212fae3b730fa2748d1bcf25d0c9c2045ecb606
|
4
|
+
data.tar.gz: c13a8a792507fec243ebcfc9481e21467b36834f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d8c710a91df010cf85d5945b45901fd3ffff44e2c5ad7cbd54c49a31d58cd6167eef8085cdcfcbe15d48706bd3cd31dbe0ff141164a0a38b35d5cfcf3dea91a
|
7
|
+
data.tar.gz: b9d3f3b5683e50fe8b022283341af5e4566ea9b06f8f1448cb3c1c314fbfc9b778bb0fc015fbe2f0af0bab2e894446304806eed5bce100c2b7fe6e69cb47bfa5
|
@@ -7,11 +7,10 @@ class Roda
|
|
7
7
|
module SprocketAssets
|
8
8
|
class Task < Rake::TaskLib
|
9
9
|
def initialize(app_klass)
|
10
|
-
opts = app_klass.sprocket_assets_opts
|
11
|
-
|
12
10
|
namespace :assets do
|
13
11
|
desc "Precompile assets"
|
14
12
|
task :precompile do
|
13
|
+
opts = app_klass.sprocket_assets_opts
|
15
14
|
environment = opts[:sprockets]
|
16
15
|
manifest = Sprockets::Manifest.new(environment.index, opts[:public_path])
|
17
16
|
manifest.compile(opts[:precompile])
|
@@ -19,7 +18,7 @@ class Roda
|
|
19
18
|
|
20
19
|
desc "Clean assets"
|
21
20
|
task :clean do
|
22
|
-
FileUtils.rm_rf(
|
21
|
+
FileUtils.rm_rf(app_klass.sprocket_assets_opts[:public_path])
|
23
22
|
end
|
24
23
|
end
|
25
24
|
end
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "roda-sprocket_assets"
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.5'
|
8
8
|
spec.authors = ["cj"]
|
9
9
|
spec.email = ["cjlazell@gmail.com"]
|
10
10
|
spec.summary = %q{Use sprockets to serve assets in roda.}
|