amq-client 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5d893b26e321bc96d9674293138bdc7223ef4750
4
+ data.tar.gz: e80b4b6e288aae74ad5638073e95874a4bdbf988
5
+ SHA512:
6
+ metadata.gz: a4d3e3a5fcd18a0ce033f2ff74ece90da0f1f66a41dd72019038870f39caa3a650e06be089c195fb1a3cbf0fbfe6c648492d82ccd5134e457c0c587c8704a0dd
7
+ data.tar.gz: 74ea87c11d586998fc6ee3098da5272803ec22032351d3c855133ad4b5a4d4393c38fc25b0ce7b5a0cb15484cde3f4b8ad864cd925a01fb12bf3c7a3604df25b
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  # Dependencies
22
22
  s.add_dependency "eventmachine"
23
- s.add_dependency "amq-protocol", ">= 1.2.0"
23
+ s.add_dependency "amq-protocol", ">= 1.8.0"
24
24
 
25
25
 
26
26
  # RubyForge
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require "amq/protocol/client" # TODO: "amq/protocol/constants"
4
- require "uri"
4
+ require "amq/uri"
5
5
 
6
6
  module AMQ
7
7
  module Client
@@ -136,23 +136,7 @@ module AMQ
136
136
  # @see http://bit.ly/ks8MXK Connecting to The Broker documentation guide
137
137
  # @api public
138
138
  def self.parse_amqp_url(connection_string)
139
- uri = URI.parse(connection_string)
140
- raise ArgumentError.new("Connection URI must use amqp or amqps schema (example: amqp://bus.megacorp.internal:5766), learn more at http://bit.ly/ks8MXK") unless %w{amqp amqps}.include?(uri.scheme)
141
-
142
- opts = {}
143
-
144
- opts[:scheme] = uri.scheme
145
- opts[:user] = URI.unescape(uri.user) if uri.user
146
- opts[:pass] = URI.unescape(uri.password) if uri.password
147
- opts[:host] = uri.host if uri.host
148
- opts[:port] = uri.port || AMQ::Client::Settings::AMQP_PORTS[uri.scheme]
149
- opts[:ssl] = uri.scheme == AMQ::Client::Settings::AMQPS
150
- if uri.path =~ %r{^/(.*)}
151
- raise ArgumentError.new("#{uri} has multiple-segment path; please percent-encode any slashes in the vhost name (e.g. /production => %2Fproduction). Learn more at http://bit.ly/amqp-gem-and-connection-uris") if $1.index('/')
152
- opts[:vhost] = URI.unescape($1)
153
- end
154
-
155
- opts
139
+ AMQ::URI.parse(connection_string)
156
140
  end
157
141
  end
158
142
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AMQ
4
4
  module Client
5
- VERSION = "1.0.2"
5
+ VERSION = "1.0.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amq-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
5
- prerelease:
4
+ version: 1.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jakub Stastny
@@ -12,48 +11,43 @@ authors:
12
11
  autorequire:
13
12
  bindir: bin
14
13
  cert_chain: []
15
- date: 2013-04-25 00:00:00.000000000 Z
14
+ date: 2013-10-18 00:00:00.000000000 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: eventmachine
19
18
  requirement: !ruby/object:Gem::Requirement
20
- none: false
21
19
  requirements:
22
- - - ! '>='
20
+ - - '>='
23
21
  - !ruby/object:Gem::Version
24
22
  version: '0'
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
- - - ! '>='
27
+ - - '>='
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0'
33
30
  - !ruby/object:Gem::Dependency
34
31
  name: amq-protocol
35
32
  requirement: !ruby/object:Gem::Requirement
36
- none: false
37
33
  requirements:
38
- - - ! '>='
34
+ - - '>='
39
35
  - !ruby/object:Gem::Version
40
- version: 1.2.0
36
+ version: 1.8.0
41
37
  type: :runtime
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
- - - ! '>='
41
+ - - '>='
47
42
  - !ruby/object:Gem::Version
48
- version: 1.2.0
43
+ version: 1.8.0
49
44
  description: amq-client is a fully-featured, low-level AMQP 0.9.1 client with pluggable
50
45
  networking I/O adapters (EventMachine, cool.io, Eventpanda and so on) and supposed
51
46
  to back more opinionated AMQP clients (such as amqp gem) or be used directly in
52
47
  cases when access to more advanced AMQP 0.9.1 features is more important that convenient
53
48
  APIs
54
49
  email:
55
- - !binary |-
56
- c3Rhc3RueUAxMDFpZGVhcy5jeg==
50
+ - stastny@101ideas.cz
57
51
  - michael@novemberain.com
58
52
  executables: []
59
53
  extensions: []
@@ -226,27 +220,26 @@ files:
226
220
  - tasks.rb
227
221
  homepage: http://github.com/ruby-amqp/amq-client
228
222
  licenses: []
223
+ metadata: {}
229
224
  post_install_message:
230
225
  rdoc_options: []
231
226
  require_paths:
232
227
  - lib
233
228
  required_ruby_version: !ruby/object:Gem::Requirement
234
- none: false
235
229
  requirements:
236
- - - ! '>='
230
+ - - '>='
237
231
  - !ruby/object:Gem::Version
238
232
  version: '0'
239
233
  required_rubygems_version: !ruby/object:Gem::Requirement
240
- none: false
241
234
  requirements:
242
- - - ! '>='
235
+ - - '>='
243
236
  - !ruby/object:Gem::Version
244
237
  version: '0'
245
238
  requirements: []
246
239
  rubyforge_project: amq-client
247
- rubygems_version: 1.8.25
240
+ rubygems_version: 2.1.6
248
241
  signing_key:
249
- specification_version: 3
242
+ specification_version: 4
250
243
  summary: amq-client is a fully-featured, low-level AMQP 0.9.1 client
251
244
  test_files: []
252
245
  has_rdoc: