esp-commons 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ require 'bunny'
2
2
 
3
3
  class MessageMaker
4
4
  def self.make_message(queue_name, routing_key, *message)
5
+ Rails.logger.debug("MessageMaker: [#{queue_name.inspect}]: #{routing_key}(#{[*message].map(&:inspect).join(', ')})")
5
6
  if Settings['amqp.url']
6
7
  amqp_client = Bunny.new(Settings['amqp.url'], :logging => false)
7
8
  amqp_client.start
@@ -18,7 +19,7 @@ class MessageMaker
18
19
  if Rails.env.production?
19
20
  raise 'Define amqp.url in config/settings.yml'
20
21
  else
21
- ActiveSupport::Deprecation.warn 'Define amqp.url in config/settings.yml'
22
+ Rails.logger.warn 'MessageMaker: Define amqp.url in config/settings.yml'
22
23
  end
23
24
  end
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module EspCommons
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esp-commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-17 00:00:00.000000000 Z
12
+ date: 2013-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: active_attr
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: -396900717818241928
176
+ hash: 693550452088203428
177
177
  required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  none: false
179
179
  requirements:
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  segments:
184
184
  - 0
185
- hash: -396900717818241928
185
+ hash: 693550452088203428
186
186
  requirements: []
187
187
  rubyforge_project:
188
188
  rubygems_version: 1.8.24