capistrano-magento2 0.7.0 → 0.7.1

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: 90ba00a287b7ec92daa13ad5b80e5f9c64b2edd1
4
- data.tar.gz: 0f80aa8c230a3892b8103cee6988609f2a6a02f7
3
+ metadata.gz: 14813882851519f0585e260ccab51fc9ae4e1f40
4
+ data.tar.gz: 41b34bfd696df87fc7c6cea190d7ea14185d8659
5
5
  SHA512:
6
- metadata.gz: 434c6479bba71183db18923cedd3547dbdbefcdc03ec77dba93a1934d0cdfb698b4f5d0f913cf0cf7b21da1941554b2518e7d45ba0cd27aad136ed7f58ef6182
7
- data.tar.gz: 32804ed94a37041673ff0b54753e5f03f1334611945c5262f8b0710441219edae030dc3b101232de0926b28bf267689d026f564cfdd6d80458c0e405b34d7cbb
6
+ metadata.gz: 4d6b8420a7a06bdb2a8b6488467c58b122c77174d95cb71308662b1c57a6f97c2e0ceb71f40973f83313b6f5b5c0bb296b35fb8005e7ec59f6537764aeb326ce
7
+ data.tar.gz: 2317f56904fd1de989e3ab050e2848f91e21800dfdd148a78bae21a57bdb785392613b6fb622faab8cadddbfd6053d23efd48aefc1f6903d5d3609a77378ac89
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Capistrano::Magento2 Change Log
2
2
 
3
+ 0.7.1
4
+ ==========
5
+
6
+ * Fixed deploy routine so production mode is no longer enabled automatically when `:magento_deploy_production` is false
7
+ * Fixed regression in multi-lingual deployment (reverted boxing workaround with 2.1.7 upper limit; release notes are wrong and the issue persists in 2.1.8)
8
+ * Updated double run of static content deploy to only apply to versions prior to 2.1.8 (underling issue was resolved in 2.1.8)
9
+
3
10
  0.7.0
4
11
  ==========
5
12
 
@@ -9,6 +9,6 @@
9
9
 
10
10
  module Capistrano
11
11
  module Magento2
12
- VERSION = '0.7.0'
12
+ VERSION = '0.7.1'
13
13
  end
14
14
  end
@@ -26,8 +26,8 @@ namespace :deploy do
26
26
  invoke 'magento:composer:install' if fetch(:magento_deploy_composer)
27
27
  invoke 'magento:deploy:version_check'
28
28
  invoke 'magento:setup:permissions'
29
- invoke 'magento:deploy:mode:production'
30
29
  if fetch(:magento_deploy_production)
30
+ invoke 'magento:deploy:mode:production'
31
31
  invoke 'magento:setup:static-content:deploy'
32
32
  invoke 'magento:setup:di:compile'
33
33
  end
@@ -303,9 +303,9 @@ namespace :magento do
303
303
  deploy_jobs = nil
304
304
  end
305
305
 
306
- # Workaround core-bug with multi-lingual deployments on Magento 2.1.3 through 2.1.7. In these versions each
307
- # language must be iterated individuall. See issue #72 for details. Fixed in 2.1.8: http://bit.ly/2fSF8w5
308
- if _magento_version >= Gem::Version.new('2.1.3') and _magento_version <= Gem::Version.new('2.1.7')
306
+ # Workaround core-bug with multi-lingual deployments on Magento 2.1.3 and greater. In these versions each
307
+ # language must be iterated individually. See issue #72 for details.
308
+ if _magento_version >= Gem::Version.new('2.1.3')
309
309
  deploy_languages = fetch(:magento_deploy_languages)
310
310
  else
311
311
  deploy_languages = [fetch(:magento_deploy_languages).join(' ')]
@@ -315,20 +315,20 @@ namespace :magento do
315
315
  # Magento 2.1 will fail to deploy if this file does not exist and static asset signing is enabled
316
316
  execute "touch #{release_path}/pub/static/deployed_version.txt"
317
317
 
318
- # This loop exists to support deploy on 2.1.3 thru 2.1.7 where each language must be deployed seperately
318
+ # This loop exists to support deploy on versions where each language must be deployed seperately
319
319
  deploy_languages.each do |lang|
320
320
  static_content_deploy "#{deploy_jobs}#{lang}#{deploy_themes}"
321
321
  end
322
322
  end
323
323
 
324
- # Run again with HTTPS env var set to 'on' to pre-generate secure versions of RequireJS configs
325
- # A single run on Magento 2.1 will fail to generate the secure requirejs-config.js file; 2.2 there is no diff
326
- if _magento_version < Gem::Version.new('2.2.0-rc')
324
+ # Run again with HTTPS env var set to 'on' to pre-generate secure versions of RequireJS configs. A
325
+ # single run on these Magento versions will fail to generate the secure requirejs-config.js file.
326
+ if _magento_version < Gem::Version.new('2.1.8')
327
327
  deploy_flags = ['css', 'less', 'images', 'fonts', 'html', 'misc', 'html-minify']
328
328
  .join(' --no-').prepend(' --no-');
329
329
 
330
330
  within release_path do with(https: 'on') {
331
- # This loop exists to support deploy on 2.1.3 thru 2.1.7 where each language must be deployed seperately
331
+ # This loop exists to support deploy on versions where each language must be deployed seperately
332
332
  deploy_languages.each do |lang|
333
333
  static_content_deploy "#{deploy_jobs}#{lang}#{deploy_themes}#{deploy_flags}"
334
334
  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.7.0
4
+ version: 0.7.1
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-08-19 00:00:00.000000000 Z
11
+ date: 2017-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano