capistrano-lazy-assets 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/capistrano-lazy-assets.rb +11 -13
- data/lib/capistrano-lazy-assets/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,18 +1,16 @@
|
|
1
1
|
require 'capistrano-lazy-assets/version'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
else
|
15
|
-
logger.info 'Skipping asset pre-compilation because there were no asset changes'
|
3
|
+
if Capistrano::Configuration.instance
|
4
|
+
Capistrano::Configuration.instance.load do
|
5
|
+
namespace :deploy do
|
6
|
+
namespace :assets do
|
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
|
10
|
+
run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile}
|
11
|
+
else
|
12
|
+
logger.info 'Skipping asset pre-compilation because there were no asset changes'
|
13
|
+
end
|
16
14
|
end
|
17
15
|
end
|
18
16
|
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.
|
4
|
+
version: 0.0.6
|
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-
|
12
|
+
date: 2012-10-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|