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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59fb874d5a049e75c66234cee655275eb121d67a
4
- data.tar.gz: 127b593dd11c63ab355b2d4ca78214b5f8c3eac7
3
+ metadata.gz: 2212fae3b730fa2748d1bcf25d0c9c2045ecb606
4
+ data.tar.gz: c13a8a792507fec243ebcfc9481e21467b36834f
5
5
  SHA512:
6
- metadata.gz: 0cc8f90d1e787a409fd64b68a4076222a0d97bda8a5a8b1076ed4de30a0eb50549b1d4f7f7493b1abe7a2214e5b9109d85b0ff579843f542a17775b5f797f27a
7
- data.tar.gz: e10a78d9b75a05eb65ade401b9a2dfbe072afdda09a37a189967cec8c74196140dec420d5d33f478c429a8016d394da0470d6af164a5522f0811a53ee3f8f795
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(opts[:public_path])
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.4'
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.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-sprocket_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj