Re: [rt-users] Fix: ruby rt_client breaks when RT sub version number has two digits

2011-08-15 Thread Ruslan Zakirov
On Mon, Aug 15, 2011 at 1:41 AM, Thierry Thelliez thierry.thelliez.t...@gmail.com wrote: Upgrading from RT 3.8.7 to 3.8.10 revealed a bug in the Ruby rt-client library. In several places, the following regular expression is used in client.rb: resp.gsub!(/RT\/\d\.\d\.\d\s\d{3}\s.*\n\n/,) #

Re: [rt-users] Fix: ruby rt_client breaks when RT sub version number has two digits

2011-08-15 Thread Thierry Thelliez
Actually, since there is no version checking, there could be a simpler check for just ' * 200 Ok'. Thierry RT Training Sessions (http://bestpractical.com/services/training.html) * Chicago, IL, USA September 26 27, 2011 * San Francisco, CA, USA October 18 19, 2011 * Washington DC,

[rt-users] Fix: ruby rt_client breaks when RT sub version number has two digits

2011-08-14 Thread Thierry Thelliez
Upgrading from RT 3.8.7 to 3.8.10 revealed a bug in the Ruby rt-client library. In several places, the following regular expression is used in client.rb: resp.gsub!(/RT\/\d\.\d\.\d\s\d{3}\s.*\n\n/,) # toss the HTTP response but that does not catch 3.8.10. It could/should be: