capistrano-lazy-assets 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +23 -2
- data/capistrano-lazy-assets.gemspec +5 -5
- data/lib/capistrano-lazy-assets.rb +0 -1
- data/lib/capistrano-lazy-assets/version.rb +1 -1
- metadata +6 -6
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Capistrano::Lazy::Assets
|
2
2
|
|
3
|
-
|
3
|
+
Receipt is given from http://www.bencurtis.com/2011/12/skipping-asset-compilation-with-capistrano/
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,28 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
Add the gem to your ```Gemfile```:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
group :development do
|
25
|
+
gem 'capistrano-lazy-assets'
|
26
|
+
end
|
27
|
+
```
|
28
|
+
|
29
|
+
Add plugin into your deploy.rb file.
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
require 'capistrano-lazy-assets'
|
33
|
+
```
|
34
|
+
|
35
|
+
Check if deploy/config is load after deploy/assets in your Capfile:
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
load 'deploy'
|
39
|
+
load 'deploy/assets'
|
40
|
+
Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
|
41
|
+
load 'config/deploy'
|
42
|
+
```
|
22
43
|
|
23
44
|
## Contributing
|
24
45
|
|
@@ -6,11 +6,11 @@ require 'capistrano-lazy-assets/version'
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = 'capistrano-lazy-assets'
|
8
8
|
gem.version = Capistrano::Lazy::Assets::VERSION
|
9
|
-
gem.authors = ['
|
10
|
-
gem.email = ['
|
11
|
-
gem.description = %q{
|
12
|
-
gem.summary = %q{
|
13
|
-
gem.homepage = ''
|
9
|
+
gem.authors = ['Alexei Lexx']
|
10
|
+
gem.email = ['alexei.lexx@gmail.com']
|
11
|
+
gem.description = %q{Skipping asset pre-compilation if there are no changes}
|
12
|
+
gem.summary = %q{Skipping asset pre-compilation if there are no changes}
|
13
|
+
gem.homepage = 'https://github.com/alexei-lexx/capistrano-lazy-assets'
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
@@ -8,7 +8,6 @@ configuration.load do
|
|
8
8
|
namespace :deploy do
|
9
9
|
namespace :assets do
|
10
10
|
task :precompile, :roles => :web, :except => { :no_release => true } do
|
11
|
-
run 'ls -lah'
|
12
11
|
from = source.next_revision(current_revision)
|
13
12
|
if capture("cd #{latest_release} && #{source.local.log(from)} app/assets/ | wc -l").to_i > 0
|
14
13
|
run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile}
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
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.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Alexei Lexx
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
@@ -27,9 +27,9 @@ dependencies:
|
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
|
-
description:
|
30
|
+
description: Skipping asset pre-compilation if there are no changes
|
31
31
|
email:
|
32
|
-
-
|
32
|
+
- alexei.lexx@gmail.com
|
33
33
|
executables: []
|
34
34
|
extensions: []
|
35
35
|
extra_rdoc_files: []
|
@@ -42,7 +42,7 @@ files:
|
|
42
42
|
- capistrano-lazy-assets.gemspec
|
43
43
|
- lib/capistrano-lazy-assets.rb
|
44
44
|
- lib/capistrano-lazy-assets/version.rb
|
45
|
-
homepage:
|
45
|
+
homepage: https://github.com/alexei-lexx/capistrano-lazy-assets
|
46
46
|
licenses: []
|
47
47
|
post_install_message:
|
48
48
|
rdoc_options: []
|
@@ -65,5 +65,5 @@ rubyforge_project:
|
|
65
65
|
rubygems_version: 1.8.19
|
66
66
|
signing_key:
|
67
67
|
specification_version: 3
|
68
|
-
summary:
|
68
|
+
summary: Skipping asset pre-compilation if there are no changes
|
69
69
|
test_files: []
|