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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45a9dad70b2ce330f6fef57d0d1bfb633a50e57b
4
- data.tar.gz: 9a7e56761759025fefda6d1ae96d388ac873fa77
3
+ metadata.gz: 9feb1ff43aac1b1b7525868bb8f48c183394c1e0
4
+ data.tar.gz: 70ce081f395256df45fe7970f93f6e43fffb892a
5
5
  SHA512:
6
- metadata.gz: 1355a3af7d085d8dd7add88db62a81958cea0fa368e4f26e61a2d5418ae0a73a8306317b9ce75383b9c3e845f5fa14e450c5dd77e3665d0f1e54623215b38615
7
- data.tar.gz: 21b5cb0fdc2b1fa18714f5aae1b4e6822890f8fe808472943dca07fed304dd2c72af9ae3f551a62a3c86e7f2a8005c69e4c41e79ae84414d15026f11dab92eed
6
+ metadata.gz: 9df80669945dbcfdc4b61919c15d380afcc3e1a4380d51abdb9b7ee098a6d92fd4ac4a728e64842b4a99ffaef0a9ff954a000312ba8961c0ee1e2c210ae40f3b
7
+ data.tar.gz: 9122badc409afce89a69044a5fee645d5166abb35c771633647617feed4569d52e53dcf60622e010dadd55faaebee26167bce60646a13de6c435073f63576984
@@ -1,3 +1,7 @@
1
+ # 1.1.5 (Oct 15 2015)
2
+
3
+ * Disable `deploy:cleanup_assets` by default due to undesirable behavior in Rails 3. Use `set :keep_assets, 2` to explicitly enable this feature for Rails 4.
4
+
1
5
  # 1.1.4 (Oct 10 2015)
2
6
 
3
7
  * Fixing bug with normalize_assets typo #138
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
@@ -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.4'
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
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-10 00:00:00.000000000 Z
13
+ date: 2015-10-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano