capistrano-faster-assets 1.0.1 → 1.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: 36829495d58ac910ec5572654cead41caf511dd0
4
- data.tar.gz: 90a2a0a14022603e4862d4222dccbf2b4778bf1d
3
+ metadata.gz: fb956259c5b582ffeb90bfaf171c197c3a4f87b6
4
+ data.tar.gz: 24660594eb6bf597bdbc44fd7b6accec79f545a8
5
5
  SHA512:
6
- metadata.gz: 220d41e79bceaa1dbd352442b5475b1f7b30a882b2cdf9f83400ba785d4459471d65172f2ced8c4f7c46df4eb8270064c40342b4ad753fce31083d03ca0f4bad
7
- data.tar.gz: 80c8fbfd54c484c60061e9bd4ac4f15da617c35a93aca2d237fe9918ca99cb6b95fd63476b7e2eb9860ae93b54c77342f6abfdfd484cdfa149f52df41b15f5cf
6
+ metadata.gz: 57f104c673cbeaae39d2337136e1db8f5e1fcd8d3d666087487c31dbda3ac1cbf8a7310be6378c1fd9b8a003548647383d3fcc12cb0a471ff83326a0384582c7
7
+ data.tar.gz: 9d41730e12ae1271762f5a00f1d545ac744efde1c5ff571ca41aadf8c7c85e435e2ee8113b7058f5921234edb038577379168599a31b2af9da85c0a0a44172e0
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module FasterAssets
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -17,7 +17,7 @@ namespace :deploy do
17
17
  within release_path do
18
18
  with rails_env: fetch(:rails_env) do
19
19
  begin
20
- # find the most recent release
20
+ # find the most recent release
21
21
  latest_release = capture(:ls, '-xr', releases_path).split[1]
22
22
 
23
23
  # precompile if this is the first deploy
@@ -29,8 +29,14 @@ namespace :deploy do
29
29
  execute(:ls, latest_release_path.join('assets_manifest_backup')) rescue raise(PrecompileRequired)
30
30
 
31
31
  fetch(:assets_dependencies).each do |dep|
32
+ release = release_path.join(dep)
33
+ latest = latest_release_path.join(dep)
34
+
35
+ # skip if both directories/files do not exist
36
+ next if [release, latest].map{|d| test "[ -e #{d} ]"}.uniq == [false]
37
+
32
38
  # execute raises if there is a diff
33
- execute(:diff, '-Nqr', release_path.join(dep), latest_release_path.join(dep)) rescue raise(PrecompileRequired)
39
+ execute(:diff, '-Nqr', release, latest) rescue raise(PrecompileRequired)
34
40
  end
35
41
 
36
42
  info("Skipping asset precompile, no asset diff found")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-faster-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Thal
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-06 00:00:00.000000000 Z
12
+ date: 2014-11-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano