bundler-multilock 2.0.0 → 2.0.1

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: 213d708c167e2414608c9d201663f0f3f38d31eec706841f831e52776f1c3aa1
4
- data.tar.gz: 52156db5022ef22bb29ef729c6f3064327ac16356d60c1e259a7acde31fe535e
3
+ metadata.gz: efedd4b0f13a7f205cf2fdaaa2077db702a91b1b681eb460c2820bb705614f05
4
+ data.tar.gz: d91c557e22a93266fb14973d4683d1a287f70756ebf7e25a32d62e9db5ef4009
5
5
  SHA512:
6
- metadata.gz: bbfe23c3e8910238e04b9a676102ea6680c050dd43ad419faa5cecea7370ccd6431da84c38d93ef55b91e3ee2ef6c230660d648301e7d04a96fc49f3bada49ba
7
- data.tar.gz: d6e8fe2f6219986d59a51fc2302c45f680d65a41d38181ae5c5d4678ef8e4189457975b24134b5317b4448238568efc4bbca66cbfd4ac0354963814010a2066a
6
+ metadata.gz: d9879a43153a0d0de3a6ce32b4307f96e984ba4e99642bd353d94ed1b19f30f4d502f39a7d6ebeb3370c40efe16c7ac00313925401bed7b1ad293d8de141ca8e
7
+ data.tar.gz: 0bdbc5b65595614dc56b7c87f86e103e7a9b595922a21b97c34a259f22aab16eeea52ebdce65250f2dbb16952d3bad2b212d2a245d752f30c4c8f8573786483d
@@ -74,6 +74,12 @@ module Bundler
74
74
  next base_check_failed(source_changes_message(definition, lockfile_path, gemfile_path))
75
75
  end
76
76
 
77
+ # a path gem's gemspec changed (like a new dependency version); frozen definitions
78
+ # reuse the lockfile's resolution, and never notice
79
+ if definition.instance_variable_get(:@path_changes)
80
+ next base_check_failed("#{lockfile_path} is out of date, because the gemspecs for path gems changed.")
81
+ end
82
+
77
83
  begin
78
84
  definition.validate_runtime!
79
85
  not_installed = @check_installed ? Bundler.ui.silence { definition.missing_specs } : []
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bundler
4
4
  module Multilock
5
- VERSION = "2.0.0"
5
+ VERSION = "2.0.1"
6
6
  end
7
7
  end
@@ -1125,11 +1125,19 @@ module Bundler
1125
1125
  if current_lockfile.exist? && install
1126
1126
  Bundler.settings.temporary(frozen: true) do
1127
1127
  # it keeps the same sources as the builder, which now shares with
1128
- # `definition` above; give it its own copy to avoid stomping on it
1128
+ # `definition` above; give it its own copy to avoid stomping on it.
1129
+ # Building a definition also points each dependency at that
1130
+ # definition's sources, so the dependencies need their own copies too.
1131
+ # Otherwise `definition` is left with dependencies from sources it
1132
+ # doesn't control, and a remote resolution can't reach them.
1129
1133
  builder.instance_variable_set(
1130
1134
  :@sources,
1131
1135
  builder.instance_variable_get(:@sources).dup
1132
1136
  )
1137
+ builder.instance_variable_set(
1138
+ :@dependencies,
1139
+ builder.instance_variable_get(:@dependencies).map(&:dup)
1140
+ )
1133
1141
 
1134
1142
  current_definition = builder.to_definition(current_lockfile, {})
1135
1143
  # if something has changed, we skip this step; it's unlocking anyway
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: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  - !ruby/object:Gem::Version
68
68
  version: "0"
69
69
  requirements: []
70
- rubygems_version: 4.1.0
70
+ rubygems_version: 4.1.1
71
71
  specification_version: 4
72
72
  summary: Support Multiple Lockfiles
73
73
  test_files: []