capistrano-rails 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +5 -0
- data/capistrano-rails.gemspec +1 -1
- data/lib/capistrano/tasks/assets.rake +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9feb1ff43aac1b1b7525868bb8f48c183394c1e0
|
4
|
+
data.tar.gz: 70ce081f395256df45fe7970f93f6e43fffb892a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9df80669945dbcfdc4b61919c15d380afcc3e1a4380d51abdb9b7ee098a6d92fd4ac4a728e64842b4a99ffaef0a9ff954a000312ba8961c0ee1e2c210ae40f3b
|
7
|
+
data.tar.gz: 9122badc409afce89a69044a5fee645d5166abb35c771633647617feed4569d52e53dcf60622e010dadd55faaebee26167bce60646a13de6c435073f63576984
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -56,6 +56,11 @@ set :assets_prefix, 'prepackaged-assets'
|
|
56
56
|
|
57
57
|
# If you need to touch public/images, public/javascripts, and public/stylesheets on each deploy
|
58
58
|
set :normalize_asset_timestamps, %{public/images public/javascripts public/stylesheets}
|
59
|
+
|
60
|
+
# Defaults to nil (no asset cleanup is performed)
|
61
|
+
# If you use Rails 4+ and you'd like to clean up old assets after each deploy,
|
62
|
+
# set this to the number of versions to keep
|
63
|
+
set :keep_assets, 2
|
59
64
|
```
|
60
65
|
|
61
66
|
### Symlinks
|
data/capistrano-rails.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "capistrano-rails"
|
7
|
-
gem.version = '1.1.
|
7
|
+
gem.version = '1.1.5'
|
8
8
|
gem.authors = ["Tom Clements", "Lee Hambley", "Kir Shatrov"]
|
9
9
|
gem.email = ["seenmyfate@gmail.com", "lee.hambley@gmail.com", "shatrov@me.com"]
|
10
10
|
gem.description = %q{Rails specific Capistrano tasks}
|
@@ -26,10 +26,11 @@ namespace :deploy do
|
|
26
26
|
|
27
27
|
desc 'Cleanup expired assets'
|
28
28
|
task :cleanup_assets => [:set_rails_env] do
|
29
|
+
next unless fetch(:keep_assets)
|
29
30
|
on release_roles(fetch(:assets_roles)) do
|
30
31
|
within release_path do
|
31
32
|
with rails_env: fetch(:rails_env) do
|
32
|
-
execute :rake, "assets:clean"
|
33
|
+
execute :rake, "assets:clean[#{fetch(:keep_assets)}]"
|
33
34
|
end
|
34
35
|
end
|
35
36
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Clements
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-10-
|
13
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|