Fixes #5062 - Use .length instead of .count (1.8 compat)

git-svn-id: file:///home/svn/framework3/trunk@13352 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2011-07-26 23:36:30 +00:00
parent 29585e0a95
commit f1473c4cb3
1 changed files with 2 additions and 2 deletions

View File

@ -173,8 +173,8 @@ module Shell
input.prompt.gsub!(/%U/, user.chomp)
end
input.prompt.gsub!(/%S/, framework.sessions.count.to_s)
input.prompt.gsub!(/%J/, framework.jobs.count.to_s)
input.prompt.gsub!(/%S/, framework.sessions.length.to_s)
input.prompt.gsub!(/%J/, framework.jobs.length.to_s)
input.prompt.gsub!(/%L/, Rex::Socket.source_address("50.50.50.50"))
input.prompt.gsub!(/%D/, ::Dir.getwd)
self.init_prompt = input.prompt