capistrano-lazy-assets 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,8 +5,12 @@ if Capistrano::Configuration.instance
5
5
  namespace :deploy do
6
6
  namespace :assets do
7
7
  task :precompile, :roles => :web, :except => { :no_release => true } do
8
- from = source.next_revision(current_revision)
9
- if capture("cd #{latest_release} && #{source.local.log(from)} app/assets/ | wc -l").to_i > 0
8
+ begin
9
+ from = source.next_revision(current_revision)
10
+ rescue
11
+ errr = true
12
+ end
13
+ if errr or capture("cd #{latest_release} && #{source.local.log(from)} app/assets/ | wc -l").to_i > 0
10
14
  run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile}
11
15
  else
12
16
  logger.info 'Skipping asset pre-compilation because there were no asset changes'
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Lazy
3
3
  module Assets
4
- VERSION = '0.0.6'
4
+ VERSION = '0.0.7'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-lazy-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-04 00:00:00.000000000 Z
12
+ date: 2012-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano