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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb956259c5b582ffeb90bfaf171c197c3a4f87b6
|
4
|
+
data.tar.gz: 24660594eb6bf597bdbc44fd7b6accec79f545a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57f104c673cbeaae39d2337136e1db8f5e1fcd8d3d666087487c31dbda3ac1cbf8a7310be6378c1fd9b8a003548647383d3fcc12cb0a471ff83326a0384582c7
|
7
|
+
data.tar.gz: 9d41730e12ae1271762f5a00f1d545ac744efde1c5ff571ca41aadf8c7c85e435e2ee8113b7058f5921234edb038577379168599a31b2af9da85c0a0a44172e0
|
@@ -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
|
-
|
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',
|
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.
|
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-
|
12
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|