bundler 2.2.23 → 2.2.27

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bundler might be problematic. Click here for more details.

Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +68 -0
  3. data/lib/bundler/build_metadata.rb +2 -2
  4. data/lib/bundler/cli/cache.rb +1 -1
  5. data/lib/bundler/cli/doctor.rb +1 -1
  6. data/lib/bundler/cli/exec.rb +1 -6
  7. data/lib/bundler/cli/gem.rb +3 -2
  8. data/lib/bundler/cli/install.rb +4 -17
  9. data/lib/bundler/cli/list.rb +7 -1
  10. data/lib/bundler/cli/open.rb +1 -2
  11. data/lib/bundler/cli/update.rb +1 -1
  12. data/lib/bundler/cli.rb +12 -9
  13. data/lib/bundler/definition.rb +38 -47
  14. data/lib/bundler/dsl.rb +40 -26
  15. data/lib/bundler/errors.rb +1 -1
  16. data/lib/bundler/installer/gem_installer.rb +3 -16
  17. data/lib/bundler/installer/standalone.rb +14 -9
  18. data/lib/bundler/installer.rb +0 -1
  19. data/lib/bundler/lockfile_parser.rb +1 -0
  20. data/lib/bundler/plugin/index.rb +4 -1
  21. data/lib/bundler/plugin/installer.rb +2 -0
  22. data/lib/bundler/plugin.rb +25 -6
  23. data/lib/bundler/resolver.rb +10 -17
  24. data/lib/bundler/rubygems_gem_installer.rb +5 -1
  25. data/lib/bundler/rubygems_integration.rb +2 -0
  26. data/lib/bundler/runtime.rb +16 -9
  27. data/lib/bundler/settings.rb +13 -1
  28. data/lib/bundler/setup.rb +2 -2
  29. data/lib/bundler/shared_helpers.rb +0 -7
  30. data/lib/bundler/source/git/git_proxy.rb +1 -2
  31. data/lib/bundler/source/rubygems.rb +23 -2
  32. data/lib/bundler/source/rubygems_aggregate.rb +4 -0
  33. data/lib/bundler/source.rb +4 -0
  34. data/lib/bundler/source_list.rb +16 -3
  35. data/lib/bundler/spec_set.rb +14 -37
  36. data/lib/bundler/templates/Executable.bundler +6 -6
  37. data/lib/bundler/templates/newgem/github/workflows/main.yml.tt +13 -2
  38. data/lib/bundler/templates/newgem/newgem.gemspec.tt +3 -1
  39. data/lib/bundler/version.rb +1 -1
  40. data/lib/bundler/worker.rb +17 -2
  41. data/lib/bundler.rb +11 -21
  42. metadata +3 -3
data/lib/bundler.rb CHANGED
@@ -636,6 +636,12 @@ EOF
636
636
  @rubygems = nil
637
637
  end
638
638
 
639
+ def configure_gem_home_and_path(path = bundle_path)
640
+ configure_gem_path
641
+ configure_gem_home(path)
642
+ Bundler.rubygems.clear_paths
643
+ end
644
+
639
645
  private
640
646
 
641
647
  def eval_yaml_gemspec(path, contents)
@@ -653,36 +659,20 @@ EOF
653
659
  rescue ScriptError, StandardError => e
654
660
  msg = "There was an error while loading `#{path.basename}`: #{e.message}"
655
661
 
656
- if e.is_a?(LoadError)
657
- msg += "\nDoes it try to require a relative path? That's been removed in Ruby 1.9"
658
- end
659
-
660
662
  raise GemspecError, Dsl::DSLError.new(msg, path, e.backtrace, contents)
661
663
  end
662
664
 
663
- def configure_gem_home_and_path
664
- configure_gem_path
665
- configure_gem_home
666
- bundle_path
667
- end
668
-
669
- def configure_gem_path(env = ENV)
670
- blank_home = env["GEM_HOME"].nil? || env["GEM_HOME"].empty?
671
- if !use_system_gems?
665
+ def configure_gem_path
666
+ unless use_system_gems?
672
667
  # this needs to be empty string to cause
673
668
  # PathSupport.split_gem_path to only load up the
674
669
  # Bundler --path setting as the GEM_PATH.
675
- env["GEM_PATH"] = ""
676
- elsif blank_home
677
- possibles = [Bundler.rubygems.gem_dir, Bundler.rubygems.gem_path]
678
- paths = possibles.flatten.compact.uniq.reject(&:empty?)
679
- env["GEM_PATH"] = paths.join(File::PATH_SEPARATOR)
670
+ Bundler::SharedHelpers.set_env "GEM_PATH", ""
680
671
  end
681
672
  end
682
673
 
683
- def configure_gem_home
684
- Bundler::SharedHelpers.set_env "GEM_HOME", File.expand_path(bundle_path, root)
685
- Bundler.rubygems.clear_paths
674
+ def configure_gem_home(path)
675
+ Bundler::SharedHelpers.set_env "GEM_HOME", path.to_s
686
676
  end
687
677
 
688
678
  def tmp_home_path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.23
4
+ version: 2.2.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -22,7 +22,7 @@ authors:
22
22
  autorequire:
23
23
  bindir: exe
24
24
  cert_chain: []
25
- date: 2021-07-09 00:00:00.000000000 Z
25
+ date: 2021-09-03 00:00:00.000000000 Z
26
26
  dependencies: []
27
27
  description: Bundler manages an application's dependencies through its entire life,
28
28
  across many machines, systematically and repeatably
@@ -354,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
354
354
  - !ruby/object:Gem::Version
355
355
  version: 2.5.2
356
356
  requirements: []
357
- rubygems_version: 3.2.23
357
+ rubygems_version: 3.2.27
358
358
  signing_key:
359
359
  specification_version: 4
360
360
  summary: The best way to manage your application's dependencies