mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	[rubygems/rubygems] Bundler: change error/warning message for multiple global sources
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
316564b8fc
			
			
This commit is contained in:
		
							parent
							
								
									cb9fd920a3
								
							
						
					
					
						commit
						631b34ef95
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		|  | @ -465,12 +465,12 @@ module Bundler | |||
| 
 | ||||
|     def multiple_global_source_warning | ||||
|       if Bundler.feature_flag.bundler_3_mode? | ||||
|         msg = "This Gemfile contains multiple primary sources. " \ | ||||
|         msg = "This Gemfile contains multiple global sources. " \ | ||||
|           "Each source after the first must include a block to indicate which gems " \ | ||||
|           "should come from that source" | ||||
|         raise GemfileEvalError, msg | ||||
|       else | ||||
|         Bundler::SharedHelpers.major_deprecation 2, "Your Gemfile contains multiple primary sources. " \ | ||||
|         Bundler::SharedHelpers.major_deprecation 2, "Your Gemfile contains multiple global sources. " \ | ||||
|           "Using `source` more than once without a block is a security risk, and " \ | ||||
|           "may result in installing unexpected gems. To resolve this warning, use " \ | ||||
|           "a block to indicate which gems should come from the secondary source." | ||||
|  |  | |||
|  | @ -414,7 +414,7 @@ RSpec.describe "major deprecations" do | |||
| 
 | ||||
|     it "shows a deprecation", :bundler => "< 3" do | ||||
|       expect(deprecations).to include( | ||||
|         "Your Gemfile contains multiple primary sources. " \ | ||||
|         "Your Gemfile contains multiple global sources. " \ | ||||
|         "Using `source` more than once without a block is a security risk, and " \ | ||||
|         "may result in installing unexpected gems. To resolve this warning, use " \ | ||||
|         "a block to indicate which gems should come from the secondary source." | ||||
|  | @ -425,7 +425,7 @@ RSpec.describe "major deprecations" do | |||
|       bundle "install" | ||||
| 
 | ||||
|       expect(deprecations).to include( | ||||
|         "Your Gemfile contains multiple primary sources. " \ | ||||
|         "Your Gemfile contains multiple global sources. " \ | ||||
|         "Using `source` more than once without a block is a security risk, and " \ | ||||
|         "may result in installing unexpected gems. To resolve this warning, use " \ | ||||
|         "a block to indicate which gems should come from the secondary source." | ||||
|  | @ -438,7 +438,7 @@ RSpec.describe "major deprecations" do | |||
|       bundle "install" | ||||
| 
 | ||||
|       expect(deprecations).to include( | ||||
|         "Your Gemfile contains multiple primary sources. " \ | ||||
|         "Your Gemfile contains multiple global sources. " \ | ||||
|         "Using `source` more than once without a block is a security risk, and " \ | ||||
|         "may result in installing unexpected gems. To resolve this warning, use " \ | ||||
|         "a block to indicate which gems should come from the secondary source." | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Takuya Noguchi
						Takuya Noguchi