nsweb_deployment 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nsweb_deployment/version.rb +1 -1
- data/lib/nsweb_deployment.rb +2 -2
- metadata +4 -4
data/lib/nsweb_deployment.rb
CHANGED
@@ -59,8 +59,8 @@ configuration.load do
|
|
59
59
|
|
60
60
|
namespace :assets do
|
61
61
|
task :precompile, :roles => :web, :except => { :no_release => true } do
|
62
|
-
from = source.next_revision(current_revision)
|
63
|
-
if releases.length <= 1 || capture("cd #{latest_release} && #{source.local.log(
|
62
|
+
from = source.next_revision(current_revision) if File.exists?(current_path)
|
63
|
+
if from.nil? || releases.length <= 1 || capture("cd #{latest_release} && #{source.local.log(from)} vendor/assets app/assets lib/assets | wc -l").to_i > 0
|
64
64
|
run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile}
|
65
65
|
else
|
66
66
|
logger.info "Skipping asset pre-compilation because there were no asset changes."
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: nsweb_deployment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.0.
|
5
|
+
version: 2.0.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Josh Williams
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-07-
|
13
|
+
date: 2012-07-09 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
75
75
|
requirements:
|
76
76
|
- - ">="
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
hash:
|
78
|
+
hash: 531861501
|
79
79
|
segments:
|
80
80
|
- 0
|
81
81
|
version: "0"
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
requirements:
|
85
85
|
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
hash:
|
87
|
+
hash: 531861501
|
88
88
|
segments:
|
89
89
|
- 0
|
90
90
|
version: "0"
|