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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Capistrano::Lazy::Assets
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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 = ['test']
10
- gem.email = ['test@example.com']
11
- gem.description = %q{Write a gem description}
12
- gem.summary = %q{Write a gem summary}
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}
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Lazy
3
3
  module Assets
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.5'
5
5
  end
6
6
  end
7
7
  end
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
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - test
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: Write a gem description
30
+ description: Skipping asset pre-compilation if there are no changes
31
31
  email:
32
- - test@example.com
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: Write a gem summary
68
+ summary: Skipping asset pre-compilation if there are no changes
69
69
  test_files: []