stomp 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/stomp.rb +2 -2
  2. metadata +3 -3
data/lib/stomp.rb CHANGED
@@ -261,13 +261,13 @@ module Stomp
261
261
  # Accepts a username (default ""), password (default ""),
262
262
  # host (default localhost), and port (default 61613)
263
263
  def initialize user="", pass="", host="localhost", port=61613, reliable=false
264
- if user =~ /stomp:\/\/(\w+):(\d+)/
264
+ if user =~ /stomp:\/\/([\w\.]+):(\d+)/
265
265
  user = ""
266
266
  pass = ""
267
267
  host = $1
268
268
  port = $2
269
269
  reliable = false
270
- elsif user =~ /stomp:\/\/(\w+):(\w+)@(\w+):(\d+)/
270
+ elsif user =~ /stomp:\/\/([\w\.]+):(\w+)@(\w+):(\d+)/
271
271
  user = $1
272
272
  pass = $2
273
273
  host = $3
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.9.1
3
3
  specification_version: 1
4
4
  name: stomp
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.4
7
- date: 2007-01-15 00:00:00 -08:00
6
+ version: 1.0.5
7
+ date: 2007-02-01 00:00:00 -08:00
8
8
  summary: Ruby client for the Stomp messaging protocol
9
9
  require_paths:
10
10
  - lib