capistrano-magento2 0.5.5 → 0.5.6

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: ab43aa471d09b1d480dcc26eecc39e9155887fe7
4
- data.tar.gz: 3becffe86075bae268551e1f441bd93a1fef7246
3
+ metadata.gz: 1c6d561b4e1c051ef45a5eac22efa567f332611e
4
+ data.tar.gz: 7cdceb46e41430c23912d013db3cc25a91b5397c
5
5
  SHA512:
6
- metadata.gz: ae3e8515b724bb656e48b836076ef393bb90416dee9542f9b9f30339f1231c7b4e84fa79be6cc7ce337aa1931606169981b1348ca6f29c5aff911a2839ce7817
7
- data.tar.gz: cf875fc79fabb210c25886b500610ca9ded11c0dbe03a637f70061745f5033358bff87ca2c64b5ccd080504c46083c9866bb547cc66474a6d9389fa1a64df6ae
6
+ metadata.gz: d485a334191bc07b1764effc19e4b9b5faef397c978b981adacea69ad629a408b22ce2633022b777bf7d7dcae5f1d5e39d867ad2838871852948777c509f5289
7
+ data.tar.gz: dfe2f1b2c179df1b3bc88b2655803ab8fd82070b6bd58e00dc5dcd4c9dcbc054e92f934f68c61fbfa1721c6ddc4dc7f6a01712f805c6bdd0b92bd97f0b739766
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Capistrano::Magento2 Change Log
2
2
 
3
+ 0.5.6
4
+ ==========
5
+
6
+ * Fixed issue where setup:di:compile failing to return an exit code caused DI compilation failures to be masked
7
+
3
8
  0.5.5
4
9
  ==========
5
10
 
@@ -9,6 +9,6 @@
9
9
 
10
10
  module Capistrano
11
11
  module Magento2
12
- VERSION = '0.5.5'
12
+ VERSION = '0.5.6'
13
13
  end
14
14
  end
@@ -223,12 +223,14 @@ namespace :magento do
223
223
  # present in the develop mainline, so we are testing for multi-tenant presence for long-term portability.
224
224
  if test :magento, 'setup:di:compile-multi-tenant --help >/dev/null 2>&1'
225
225
  output = capture :magento, 'setup:di:compile-multi-tenant', verbosity: Logger::INFO
226
-
227
- if output.to_s.include? 'Errors during compilation'
228
- raise Exception, 'setup:di:compile-multi-tenant command execution failed'
229
- end
230
226
  else
231
- execute :magento, 'setup:di:compile'
227
+ output = capture :magento, 'setup:di:compile', verbosity: Logger::INFO
228
+ end
229
+
230
+ # 2.0.x never returns a non-zero exit code for errors, so manually check string
231
+ # 2.1.x doesn't return a non-zero exit code for certain errors (see davidalger/capistrano-magento2#41)
232
+ if output.to_s.include? 'Errors during compilation'
233
+ raise Exception, 'DI compilation command execution failed'
232
234
  end
233
235
  end
234
236
  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.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Alger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-24 00:00:00.000000000 Z
11
+ date: 2016-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano