rake-sprockets 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: cbc0e66462dcca1c3f125c1f5f09412e81f8b204
4
- data.tar.gz: a72fe026a808ce9edfb41c26bd4107f985754c20
3
+ metadata.gz: 96a1a01ec09508d4fa2955c6b0eb7a27b9df5b31
4
+ data.tar.gz: f5b0b11c3e876e069ae62636794d5c9fde8f543d
5
5
  SHA512:
6
- metadata.gz: 9522a496e26314de9f8f8e3aa90f742f375337b7d326ebd31671bba5790d2129f9ee0acef179ebe07fe690e4c7fdceec7059a2459b78a47129578b3fb62151d4
7
- data.tar.gz: 513a2ccaeb16fb8cfb3cc2cc19951284a59a795ce8b230f99033c24a629d34ec4c290527adf41d485bb18b5779bcebf8e793b946109b80939245aca56c6280fd
6
+ metadata.gz: 8139dc6df744ff4edb7bfc54cc4960e8d7bd182a01f97b80fe243d40ebcffe09dbae0e17974b0e49695e30272bda5f4615196b7a9a55ec3bb7b7606896d05193
7
+ data.tar.gz: 8ffd9463e0c06fb657043e32a8fe780f0a8cf4d510c85b7569df26ae1f90b5e64733cc952e92053db4e22ae39dd407433dc79cb608a07cebca45e48adb4501ff
@@ -63,11 +63,10 @@ module Rake
63
63
  end
64
64
 
65
65
  def compile
66
+ public_assets.mkpath
66
67
  precompile.each do |file|
67
68
  assets = sprockets.find_asset file
68
- prefix, basename = assets.pathname.to_s.split("/")[-2..-1]
69
- public_assets.join(prefix).mkpath
70
- filename = public_assets.join prefix, basename
69
+ filename = public_assets.join file
71
70
  assets.write_to filename
72
71
  end
73
72
  end
@@ -1,5 +1,5 @@
1
1
  module Rake
2
2
  module Sprockets
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-sprockets
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
  - myobie