capistrano-magento2 0.6.2 → 0.6.3

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: c99400c3af7e1ed48ca398c4f6c4c79fb4298f93
4
- data.tar.gz: 8e735613090124de7fd60e88f0d95d17909c0258
3
+ metadata.gz: f1c6e20e0a5720c0a9dfc6b1bb5eb9e248692cca
4
+ data.tar.gz: 781b1944145dede8ffbbd7dc8ad74a722109898e
5
5
  SHA512:
6
- metadata.gz: 5ddb0e0e04bbe4e8e3d3a15931855ab3afa266267bedcc4ef02d89a71e1f0646544d4696d248cd41a3b1a900591f903d150025d745f3746c8e32188fdc087e04
7
- data.tar.gz: 8382519a6b95039033d50b5af5c617ff407b84472fcaf0c25d34780b95df248b21f0c1365fcb9b3c909a13f7207fa770dc8c8bc77861f0af86f2322e2333b86d
6
+ metadata.gz: 4f0a6aa181337bbff846f8a018eef9365868d870154cfee90b68527af957560cefe8ea7b2ae5c9fcdf8fb0dbbe7411396e594069c7f6efedba9f2f13883e8837
7
+ data.tar.gz: 94557d8ac7624e22a72d29123069e4fa6b832a8d9bfc56f8e9227826e2f935c249373f50e126e9f88a2c5e889095d2e9b6e5803f8576be41f3b988298c98276c
@@ -1,5 +1,10 @@
1
1
  # Capistrano::Magento2 Change Log
2
2
 
3
+ 0.6.3
4
+ ==========
5
+
6
+ * Fixed deployment to multiple hosts resulting in disparate static content versions across target hosts
7
+
3
8
  0.6.2
4
9
  ==========
5
10
 
@@ -64,6 +64,15 @@ module Capistrano
64
64
  end
65
65
  }
66
66
  end
67
+
68
+ def deployed_version
69
+ # Generate a static content version string, but only if one has not already been set on a previous call
70
+ if not fetch(:magento_static_deployed_version)
71
+ set :magento_static_deployed_version, DateTime.now.strftime("%s")
72
+ info "Static content version: #{fetch(:magento_static_deployed_version)}"
73
+ end
74
+ return fetch(:magento_static_deployed_version)
75
+ end
67
76
  end
68
77
  end
69
78
  end
@@ -9,6 +9,6 @@
9
9
 
10
10
  module Capistrano
11
11
  module Magento2
12
- VERSION = '0.6.2'
12
+ VERSION = '0.6.3'
13
13
  end
14
14
  end
@@ -300,6 +300,9 @@ namespace :magento do
300
300
  within release_path do with(https: 'on') {
301
301
  static_content_deploy "#{deploy_jobs}#{deploy_languages}#{deploy_themes}#{deploy_flags}"
302
302
  } end
303
+
304
+ # Set the deployed_version of static content to ensure it matches across all hosts
305
+ upload!(StringIO.new(deployed_version), "#{release_path}/pub/static/deployed_version.txt")
303
306
  end
304
307
  end
305
308
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-magento2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Alger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-10 00:00:00.000000000 Z
11
+ date: 2017-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano