shipit-engine 0.43.1 → 0.43.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a115bf18d2ceef6d9174c41bf746c8c0e7481b9967f546ee26ff9dfad8cde608
4
- data.tar.gz: 5e3856d83fdd58ec6f169ce4a01e2782606cddeda43b24705075e62237c79709
3
+ metadata.gz: 4668d1d19acaaf623140622b9ba8af706517fdebd604ac771febe732633d7628
4
+ data.tar.gz: fc00a1faaffe66d8f995d3fae986425ccfe9fd617065008efde11c6139eb37ac
5
5
  SHA512:
6
- metadata.gz: b1763e4292845af68b81ff1e60dc34377a962834a797975293429726371b9a8868be7a47193a777e3e10bcfb171dc429d09b86aaf83f202e065716245c650214
7
- data.tar.gz: 9a6f799a3d538f45c781443798f7076a52e98499d6e56cc477b250ca5a390759b3344c6d5a1809cc894bb88ad456d64b6d3910ab3322b371b88ed314dd83b538
6
+ metadata.gz: b323de68a8865b1d69e1063982996aaf35335efb947a5a819c975fd52d5b31f019c3bff18b472df503e6c7d0c77cca80a54eaa50c01619b598360b9e678a87f0
7
+ data.tar.gz: 63dc20636c196f4f2ed05511f8bdd4540ed074c55bfa3997c6397a0408adc64a55992959d171cde55b57be4835263d932f08be6b2747c945314561e0f4efaac3
@@ -27,11 +27,11 @@ module Shipit
27
27
 
28
28
  def bundle_install
29
29
  install_command = %(bundle install --jobs 4 --retry 2)
30
- install_command += " --without=#{bundler_without.join(':')}" unless bundler_without.empty?
31
30
  [
32
31
  remove_ruby_version_from_gemfile,
33
32
  (bundle_config_frozen if frozen_mode?),
34
33
  bundle_config_path,
34
+ (bundle_without_groups unless bundler_without.empty?),
35
35
  install_command
36
36
  ].compact
37
37
  end
@@ -54,6 +54,10 @@ module Shipit
54
54
  'bundle config set --local frozen true'
55
55
  end
56
56
 
57
+ def bundle_without_groups
58
+ "bundle config set without '#{bundler_without.join(':')}'"
59
+ end
60
+
57
61
  def frozen_mode?
58
62
  return false unless gemfile_lock_exists?
59
63
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shipit
4
- VERSION = '0.43.1'
4
+ VERSION = '0.43.2'
5
5
  end
@@ -53,7 +53,7 @@ module Shipit
53
53
  ]
54
54
  },
55
55
  "override": [
56
- "bundle config set path /tmp/bundler && (bundle check || bundle install --frozen --retry=2 --without=default:production:development:test:staging:benchmark:debug)"
56
+ "bundle config set path /tmp/bundler && (bundle check || bundle config set without 'default:production:development:test:staging:benchmark:debug' || bundle install --frozen --retry=2)"
57
57
  ]
58
58
  },
59
59
  "fetch": [
@@ -69,12 +69,13 @@ module Shipit
69
69
  bundle install
70
70
  --jobs 4
71
71
  --retry 2
72
- --without=default:production:development:test:staging:benchmark:debug
73
72
  ).gsub(/\s+/, ' ').strip
74
73
  config_command = "bundle config set --local path #{@spec.bundle_path}"
74
+ without_command = "bundle config set without 'default:production:development:test:staging:benchmark:debug'"
75
75
 
76
76
  assert_equal command, @spec.bundle_install.last
77
77
  assert @spec.bundle_install.include?(config_command)
78
+ assert @spec.bundle_install.include?(without_command)
78
79
  end
79
80
 
80
81
  test '#bundle_install use `dependencies.bundler.without` if present to build the --without argument' do
@@ -84,9 +85,10 @@ module Shipit
84
85
  bundle install
85
86
  --jobs 4
86
87
  --retry 2
87
- --without=some:custom:groups
88
88
  ).gsub(/\s+/, ' ').strip
89
89
  assert_equal command, @spec.bundle_install.last
90
+ without_command = "bundle config set without 'some:custom:groups'"
91
+ assert @spec.bundle_install.include?(without_command)
90
92
  end
91
93
 
92
94
  test '#bundle_install configures frozen mode if Gemfile.lock is present' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipit-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.1
4
+ version: 0.43.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier