Author: mcpierce
Date: Fri May 30 15:21:56 2014
New Revision: 1598629
URL: http://svn.apache.org/r1598629
Log:
QPID-5794: Fix the regex in spout.rb
In Ruby > 1.8 the regular expression worked as is. But in 1.8 it
requires that the braces be escaped.
Modified:
qpid/trunk/qpid/cpp/bindings/qpid/ruby/examples/spout.rb
Modified: qpid/trunk/qpid/cpp/bindings/qpid/ruby/examples/spout.rb
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qpid/ruby/examples/spout.rb?rev=1598629&r1=1598628&r2=1598629&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/qpid/ruby/examples/spout.rb (original)
+++ qpid/trunk/qpid/cpp/bindings/qpid/ruby/examples/spout.rb Fri May 30
15:21:56 2014
@@ -109,9 +109,9 @@ options[:address] = ARGV[0] unless ARGV[
# process the connection options
unless options[:connection_options].nil?
- fields = options[:connection_options].gsub(/^{(.*)}$/, '\1')
+ fields = options[:connection_options].gsub(/^\{(.*)\}$/, '\1')
# remove any surrounding braces
- if /{.*}/ =~ fields
+ if /\{.*\}/ =~ fields
fields = fields[1..-2]
end
# break up the options separated by commas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]