1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/bundler/bundler
Daniel Niknam 49176e8c8c
[rubygems/rubygems] Refactor Bundler::Dsl#check_rubygems_source_safety to improve readability
`check_rubygems_source_safety` is responsible for:

1. if there are multiple global sources
  - for bundle 3.x raise an error
  - for bundle 2.x print a warning
2. print a warning if there is no explicit global source

The second responsibility was added recently and now the logic could be
extracted to improve readability. Conditions are still live in the `check_rubygems_source_safety` method
since we don't want to call both functions always and that would help us achieve that.

https://github.com/rubygems/rubygems/commit/f3d7e946ee
2021-07-27 09:25:57 +09:00
..
compact_index_client
fetcher Sync latest bundler & rubygems development version 2021-07-07 13:30:20 +09:00
installer
plugin [rubygems/rubygems] Explicitly define a global source for tests 2021-07-27 09:25:57 +09:00
settings
source [rubygems/rubygems] Implement Bundler::Source::Rubygems#no_remotes? 2021-07-27 09:25:56 +09:00
ui
build_metadata_spec.rb
bundler_spec.rb Merge RubyGems/Bundler master from 8459ebd6ad65ce3397233416dc64083ae7572bb9 2021-07-14 10:48:07 +09:00
cli_spec.rb [rubygems/rubygems] Explicitly define a global source for tests 2021-07-27 09:25:57 +09:00
definition_spec.rb Sync RubyGems and Bundler with upstream 2021-07-07 15:31:52 +09:00
dep_proxy_spec.rb
dsl_spec.rb [rubygems/rubygems] Refactor Bundler::Dsl#check_rubygems_source_safety to improve readability 2021-07-27 09:25:57 +09:00
endpoint_specification_spec.rb
env_spec.rb [rubygems/rubygems] Explicitly define a global source for tests 2021-07-27 09:25:57 +09:00
environment_preserver_spec.rb
fetcher_spec.rb
friendly_errors_spec.rb
gem_helper_spec.rb
gem_version_promoter_spec.rb
index_spec.rb
lockfile_parser_spec.rb
mirror_spec.rb
plugin_spec.rb [rubygems/rubygems] test loading bad plugins with nil/empty names 2021-07-16 15:40:07 +09:00
psyched_yaml_spec.rb
remote_specification_spec.rb
retry_spec.rb
ruby_dsl_spec.rb
ruby_version_spec.rb
rubygems_integration_spec.rb
settings_spec.rb Merge RubyGems/Bundler master from 8459ebd6ad65ce3397233416dc64083ae7572bb9 2021-07-14 10:48:07 +09:00
shared_helpers_spec.rb
source_list_spec.rb [rubygems/rubygems] Implement Bundler::SourceList#implicit_global_source? 2021-07-27 09:25:57 +09:00
source_spec.rb
spec_set_spec.rb
stub_specification_spec.rb
ui_spec.rb
uri_credentials_filter_spec.rb
vendored_persistent_spec.rb
version_ranges_spec.rb
worker_spec.rb [rubygems/rubygems] Fix interrupt handling in Bundler workers 2021-07-27 09:25:55 +09:00
yaml_serializer_spec.rb