mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Specify explicit separator not to be affected by $;
This commit is contained in:
parent
53efe63280
commit
2b7409a2f2
10 changed files with 11 additions and 11 deletions
|
@ -12,7 +12,7 @@ module Bundler
|
|||
Bundler::SharedHelpers.major_deprecation 2, "bundle console will be replaced " \
|
||||
"by `bin/console` generated by `bundle gem <name>`"
|
||||
|
||||
group ? Bundler.require(:default, *group.split.map!(&:to_sym)) : Bundler.require
|
||||
group ? Bundler.require(:default, *group.split(' ').map!(&:to_sym)) : Bundler.require
|
||||
ARGV.clear
|
||||
|
||||
console = get_console(Bundler.settings[:console] || "irb")
|
||||
|
|
|
@ -2222,7 +2222,7 @@ RULES
|
|||
message "creating Makefile\n"
|
||||
MakeMakefile.rm_f "#{CONFTEST}*"
|
||||
if CONFIG["DLEXT"] == $OBJEXT
|
||||
for lib in libs = $libs.split
|
||||
for lib in libs = $libs.split(' ')
|
||||
lib.sub!(/-l(.*)/, %%"lib\\1.#{$LIBEXT}"%)
|
||||
end
|
||||
$defs.push(format("-DEXTLIB='%s'", libs.join(",")))
|
||||
|
|
|
@ -970,7 +970,7 @@ module Net
|
|||
getok('UIDL')
|
||||
table = {}
|
||||
@socket.each_list_item do |line|
|
||||
num, uid = line.split
|
||||
num, uid = line.split(' ')
|
||||
table[num.to_i] = uid
|
||||
end
|
||||
return table
|
||||
|
|
|
@ -1042,7 +1042,7 @@ module Net
|
|||
return {} unless @string[3, 1] == '-'
|
||||
h = {}
|
||||
@string.lines.drop(1).each do |line|
|
||||
k, *v = line[4..-1].split
|
||||
k, *v = line[4..-1].split(' ')
|
||||
h[k] = v
|
||||
end
|
||||
h
|
||||
|
|
|
@ -178,7 +178,7 @@ class RDoc::Markup::PreProcess
|
|||
|
||||
blankline
|
||||
when 'include' then
|
||||
filename = param.split.first
|
||||
filename = param.split(' ', 2).first
|
||||
include_file filename, prefix, encoding
|
||||
when 'main' then
|
||||
@options.main_page = param if @options.respond_to? :main_page
|
||||
|
|
|
@ -256,7 +256,7 @@ option)
|
|||
|
||||
result = []
|
||||
|
||||
patterns.split.each do |patt|
|
||||
patterns.split(' ').each do |patt|
|
||||
candidates = Dir.glob(File.join(in_dir, patt))
|
||||
result.concat normalized_file_list(candidates, false, @options.exclude)
|
||||
end
|
||||
|
|
|
@ -356,7 +356,7 @@ or the PAGER environment variable.
|
|||
end
|
||||
end
|
||||
|
||||
argv = ENV['RI'].to_s.split.concat argv
|
||||
argv = ENV['RI'].to_s.split(' ').concat argv
|
||||
|
||||
opts.parse! argv
|
||||
|
||||
|
@ -1521,7 +1521,7 @@ or the PAGER environment variable.
|
|||
pagers.compact.uniq.each do |pager|
|
||||
next unless pager
|
||||
|
||||
pager_cmd = pager.split.first
|
||||
pager_cmd = pager.split(' ').first
|
||||
|
||||
next unless in_path? pager_cmd
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ class RDoc::RubygemsHook
|
|||
|
||||
case config_args = Gem.configuration[:rdoc]
|
||||
when String then
|
||||
args = args.concat config_args.split
|
||||
args = args.concat config_args.split(' ')
|
||||
when Array then
|
||||
args = args.concat config_args
|
||||
end
|
||||
|
|
|
@ -77,7 +77,7 @@ class Gem::Command
|
|||
when Array
|
||||
@extra_args = value
|
||||
when String
|
||||
@extra_args = value.split
|
||||
@extra_args = value.split(' ')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -728,7 +728,7 @@ class VCS
|
|||
|
||||
commits = cmd_read([COMMAND, "log", "--reverse", "--format=%H %ae %ce", "#{com}..@"], "rb").split("\n")
|
||||
commits.each_with_index do |l, i|
|
||||
r, a, c = l.split
|
||||
r, a, c = l.split(' ')
|
||||
dcommit = [COMMAND, "svn", "dcommit"]
|
||||
dcommit.insert(-2, "-n") if dryrun
|
||||
dcommit << "--add-author-from" unless a == c
|
||||
|
|
Loading…
Reference in a new issue