mnemosyne-ruby 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b409992651786fbf3e023732bf1d745823aa6a82e547ef6a94f0cc0651942661
4
- data.tar.gz: 927de0967e11668e64bc539cb776285432413cba49299fdacff0bfce11aafe0f
3
+ metadata.gz: 8b3674fc820231bdb3c0b6892c4664814297b4a1a1175f79b73e5dc8f7eab71d
4
+ data.tar.gz: b5e99d73a9c45673b0a49ef55db063c7a6dfeea06117ff71681cd73df73565b9
5
5
  SHA512:
6
- metadata.gz: 4dc45187bffa6fee59c62aafba5bd209c1e19d44d6dd4f9e0f860200ef247333174bb24b2b57fb4fa6d72324b4858c13af666c648bbe359c881fd209f02714fd
7
- data.tar.gz: 15bcbfc123797b580e17ddadbf8b815edaaeb3fa7269e5333a10be6741c19e17a224c0e94959d76346f2d4459651a6a15d77ffb4fa779ad1578349bb52d49faa
6
+ metadata.gz: 003cce5ff6fc29f506dac88eb3c442215045f268b04b47bd095064a88af46729951bfca2065d7ff1b469884c09b5cd39e2a62743f9340caf64d4efc72aca7228
7
+ data.tar.gz: e2d5e5cba337751ebe0511bc4fac7800fdc4f8ee922c9301a213a9b8ff962144cc156b45079f18c82a7a570910ed438b9357d27641205a8fa48647dbcccc8a45
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.1
4
+
5
+ * Avoid using internal AMQP constant: Fix compat with amq-protocol 2.3+
6
+
3
7
  ## 1.5.0
4
8
 
5
9
  * Add ActiveJob perform probe
@@ -52,13 +52,18 @@ module Mnemosyne
52
52
  Socket.gethostname
53
53
  end
54
54
 
55
+ DEFAULT_PORTS = {
56
+ 'amqp' => 5672,
57
+ 'amqps' => 5671
58
+ }
59
+
55
60
  def make_amqp_uri(amqp) # rubocop:disable AbcSize
56
61
  uri = URI('')
57
62
 
58
63
  uri.scheme = amqp[:scheme]
59
64
  uri.user = amqp[:user]
60
65
  uri.host = amqp[:host]
61
- uri.port = amqp[:port] if amqp[:port] != AMQ::URI::AMQP_PORTS[uri.scheme]
66
+ uri.port = amqp[:port] if amqp[:port] != DEFAULT_PORTS[uri.scheme]
62
67
  uri.path = '/' + ::CGI.escape(amqp[:vhost]) if amqp[:vhost] != '/'
63
68
 
64
69
  uri
@@ -4,7 +4,7 @@ module Mnemosyne
4
4
  module VERSION
5
5
  MAJOR = 1
6
6
  MINOR = 5
7
- PATCH = 0
7
+ PATCH = 1
8
8
  STAGE = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mnemosyne-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2018-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.7.2
130
+ rubygems_version: 2.7.4
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Ruby/Rails client for Mnemosyne APM