mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Preserve each column positions in gems/bundled_gems
This commit is contained in:
		
							parent
							
								
									b1799267bf
								
							
						
					
					
						commit
						e44445596f
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -16,5 +16,7 @@ unless /^[^#]/ !~ (gem = $F[0]) | ||||||
|       $F[3..-1] = [] |       $F[3..-1] = [] | ||||||
|     end |     end | ||||||
|   end |   end | ||||||
|   $_ = [gem.name, gem.version, uri, *$F[3..-1]].join(" ") |   f = [gem.name, gem.version.to_s, uri, *$F[3..-1]] | ||||||
|  |   $_.gsub!(/\S+\s*/) {|s| f.shift.ljust(s.size)} | ||||||
|  |   $_ = [$_, *f].join(" ") unless f.empty? | ||||||
| end | end | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nobuyoshi Nakada
						Nobuyoshi Nakada