capistrano-magento2 0.6.4 → 0.6.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: c28c8853fc1ad5cbd6f71307babf6f930264f717
4
- data.tar.gz: a7aa576949fe6e30d15e32cd9ac720d38fc515cb
3
+ metadata.gz: 9734beaa70a60e3ec804e38312cc950321eae102
4
+ data.tar.gz: c5c9f8a4e5493a2b17c4c663ea284152079d249f
5
5
  SHA512:
6
- metadata.gz: 2ff54488c83b5d3704b552ac492d8098ad8c14a4d9f11ff1c36eabe419c23037c8671fecdece7b4a68b7da6a7490d32772431d2071539ba63a24990b9f3b4e58
7
- data.tar.gz: 8dcf73fe054d0b677430072b587c74603ca1cccbd375cdaf65f8f975328e081ced3beb53b0ce6ccf5ff92ec39ea767dac8f7091b7e87ae2e7c5059968bdbd447
6
+ metadata.gz: 16a5cde46f8e77743092a0050676a75f341bfe9d7369319f69c6cbc337902bf53b6ba54ebe492267d05bbebda27eb583be00e66b5bd49f2e13dfb1b23b458425
7
+ data.tar.gz: 89d915f6205b22bfb8f5ef7be0607f59120d9fc6bf8a0b74a6776eca15d55d04374b8f3d0af9bc0dc5361da74ed0515c8dbbf9e2b841ad83805e73462e21ac8d
@@ -1,5 +1,10 @@
1
1
  # Capistrano::Magento2 Change Log
2
2
 
3
+ 0.6.5
4
+ ==========
5
+
6
+ * Added workaround for Magento 2.1.3 bug causing multi-lingual static-content deployment failure (issue #72)
7
+
3
8
  0.6.4
4
9
  ==========
5
10
 
@@ -9,6 +9,6 @@
9
9
 
10
10
  module Capistrano
11
11
  module Magento2
12
- VERSION = '0.6.4'
12
+ VERSION = '0.6.5'
13
13
  end
14
14
  end
@@ -268,7 +268,6 @@ namespace :magento do
268
268
  on release_roles :all do
269
269
  _magento_version = magento_version
270
270
 
271
- deploy_languages = fetch(:magento_deploy_languages).join(' ')
272
271
  deploy_themes = fetch(:magento_deploy_themes)
273
272
  deploy_jobs = fetch(:magento_deploy_jobs)
274
273
 
@@ -290,6 +289,14 @@ namespace :magento do
290
289
  deploy_jobs = nil
291
290
  end
292
291
 
292
+ # Workaround core-bug with multi-lingual deployments on Magento 2.1.3 and newer. In 2.1.3 and later each
293
+ # languages must be iterated individuall. See issue #72 for details
294
+ if _magento_version >= Gem::Version.new('2.1.3')
295
+ deploy_languages = fetch(:magento_deploy_languages)
296
+ else
297
+ deploy_languages = [fetch(:magento_deploy_languages).join(' ')]
298
+ end
299
+
293
300
  # Output is being checked for a success message because this command may easily fail due to customizations
294
301
  # and 2.0.x CLI commands do not return error exit codes on failure. See magento/magento2#3060 for details.
295
302
  within release_path do
@@ -298,7 +305,7 @@ namespace :magento do
298
305
  execute "touch #{release_path}/pub/static/deployed_version.txt"
299
306
 
300
307
  # Generates all but the secure versions of RequireJS configs
301
- static_content_deploy "#{deploy_jobs}#{deploy_languages}#{deploy_themes}"
308
+ deploy_languages.each {|lang| static_content_deploy "#{deploy_jobs}#{lang}#{deploy_themes}"}
302
309
  end
303
310
 
304
311
  # Run again with HTTPS env var set to 'on' to pre-generate secure versions of RequireJS configs
@@ -309,7 +316,7 @@ namespace :magento do
309
316
  deploy_flags = nil if _magento_version <= Gem::Version.new('2.1.0')
310
317
 
311
318
  within release_path do with(https: 'on') {
312
- static_content_deploy "#{deploy_jobs}#{deploy_languages}#{deploy_themes}#{deploy_flags}"
319
+ deploy_languages.each {|lang| static_content_deploy "#{deploy_jobs}#{lang}#{deploy_themes}#{deploy_flags}"}
313
320
  } end
314
321
 
315
322
  # Set the deployed_version of static content to ensure it matches across all hosts
@@ -318,7 +325,7 @@ namespace :magento do
318
325
  end
319
326
  end
320
327
  end
321
-
328
+
322
329
  namespace :maintenance do
323
330
  desc 'Enable maintenance mode'
324
331
  task :enable do
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-magento2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
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-05-10 00:00:00.000000000 Z
11
+ date: 2017-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.7'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.7'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  description: A Capistrano extension for Magento 2 deployments. Takes care of specific
@@ -60,8 +60,8 @@ executables: []
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - ".gitignore"
64
- - ".travis.yml"
63
+ - .gitignore
64
+ - .travis.yml
65
65
  - CHANGELOG.md
66
66
  - Gemfile
67
67
  - LICENSE.md
@@ -89,17 +89,17 @@ require_paths:
89
89
  - lib
90
90
  required_ruby_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - ">="
92
+ - - '>='
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - ">="
97
+ - - '>='
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.4.5.1
102
+ rubygems_version: 2.0.14.1
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: A Capistrano extension for Magento 2 deployments.