Rails 2.3.5
Upgrade to Rails 2.3.5. Also work around this bug: https://rails.lighthouseapp.com/projects/8994/tickets/3524 created by the aforementioned Rails release.
This commit is contained in:
parent
a6429f8c22
commit
e3832c6f79
187 changed files with 2316 additions and 891 deletions
|
@ -131,16 +131,16 @@ module Rails
|
|||
opt.on('-q', '--quiet', 'Suppress normal output.') { |v| options[:quiet] = v }
|
||||
opt.on('-t', '--backtrace', 'Debugging: show backtrace on errors.') { |v| options[:backtrace] = v }
|
||||
opt.on('-c', '--svn', 'Modify files with subversion. (Note: svn must be in path)') do
|
||||
options[:svn] = `svn status`.inject({}) do |opt, e|
|
||||
opt[e.chomp[7..-1]] = true
|
||||
opt
|
||||
options[:svn] = {}
|
||||
`svn status`.each_line do |line|
|
||||
options[:svn][line.chomp[7..-1]] = true
|
||||
end
|
||||
end
|
||||
opt.on('-g', '--git', 'Modify files with git. (Note: git must be in path)') do
|
||||
options[:git] = `git status`.inject({:new => {}, :modified => {}}) do |opt, e|
|
||||
opt[:new][e.chomp[14..-1]] = true if e =~ /new file:/
|
||||
opt[:modified][e.chomp[14..-1]] = true if e =~ /modified:/
|
||||
opt
|
||||
options[:git] = {:new => {}, :modified => {}}
|
||||
`git status`.each_line do |line|
|
||||
options[:git][:new][line.chomp[14..-1]] = true if line =~ /new file:/
|
||||
options[:git][:modified][line.chomp[14..-1]] = true if line =~ /modified:/
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue