bundler-multilock 1.0.7 → 1.0.8

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
  SHA256:
3
- metadata.gz: 120fec48596049892548e831194ad633d30c88048f4dc333ca70be729fb1aee1
4
- data.tar.gz: 1cc4f39d08b2c99cf608cbe0221f41702f0deaeecf661ecefb61b7e4d9204f14
3
+ metadata.gz: c8dbbb09ada32b32ccfdb9dcab07a0d4a2c2a075abac7aba4544946f49ee159b
4
+ data.tar.gz: c3309600b53071ae9bcd3982153f591386bb9865879eb4eebf7ff3b031ed29a5
5
5
  SHA512:
6
- metadata.gz: 01e41aee6dc834bacab9aa4f7006f1fbdaa07ac880b3e1fb97598b3fa116c74d6d8f4179c117ceddac8e617f9ff354417df95eb4c058912a6f0e9e6dc1bc8320
7
- data.tar.gz: fe4619b9a9e9a890310e6fc748b0d2b6581471f6e463d1d76cf9aa84a040177d622546d47e1f6820f3b0087ed9e737af77c8062f59b451ee5f4fcc8cb10fd6d9
6
+ metadata.gz: 49d774d8d1e1ca350966bda2d30f7200d5d96473dcc67572d1a8dd54ba596de31972269ae1278447eb5305899e8d5afb9289e9356923c6ea9a3b9afd15c188f3
7
+ data.tar.gz: 9762a7b102a14d56cf5cea40667a3d7d0ec54db20bccd8d0979a91eadce1033ce60b4c9574eeb6a789a3d2f6769bc53908f296ec5c2ef03b5bf717b6ae118923
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bundler
4
4
  module Multilock
5
- VERSION = "1.0.7"
5
+ VERSION = "1.0.8"
6
6
  end
7
7
  end
@@ -55,10 +55,6 @@ module Bundler
55
55
  lockfile = Bundler.root.join(lockfile).expand_path if lockfile
56
56
  # use the default lockfile (Gemfile.lock) if none was given
57
57
  lockfile ||= Bundler.default_lockfile(force_original: true)
58
- if current && (old_current = lockfile_definitions.find { |definition| definition[:current] })
59
- raise ArgumentError, "Only one lockfile (#{old_current[:lockfile]}) can be flagged as the default"
60
- end
61
-
62
58
  raise ArgumentError, "Lockfile #{lockfile} is already defined" if lockfile_definitions.any? do |definition|
63
59
  definition[:lockfile] == lockfile
64
60
  end
@@ -72,6 +68,10 @@ module Bundler
72
68
  current = env_lockfile == lockfile
73
69
  end
74
70
 
71
+ if current && (old_current = lockfile_definitions.find { |definition| definition[:current] })
72
+ raise ArgumentError, "Only one lockfile (#{old_current[:lockfile]}) can be flagged as the default"
73
+ end
74
+
75
75
  lockfile_definitions << (lockfile_def = {
76
76
  gemfile: (gemfile && Bundler.root.join(gemfile).expand_path) || Bundler.default_gemfile,
77
77
  lockfile: lockfile,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-multilock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure