brm-ruby-logger 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
@@ -18,14 +18,13 @@ module BrmLogger
18
18
  @sequence_number += 1
19
19
  end
20
20
 
21
- def initialize(user_id, application, *args)
22
- @user_id = user_id
21
+ def initialize(application, *args)
23
22
  @application = application
24
23
 
25
24
  bunny_options = args.extract_options!
26
25
  @connection = Bunny.new bunny_options
27
26
  @connection.start
28
- @queue = @connection.queue "/"
27
+ @queue = @connection.queue "reactor.#{application}"
29
28
  end
30
29
 
31
30
  def disconnect()
@@ -14,16 +14,16 @@ RABBITMQ_VHOST = '/'
14
14
 
15
15
  describe "BrmLogger" do
16
16
  before(:each) do
17
- user_id = "123"
18
- application = "brm-ruby-logger-tests"
19
- @logger = BrmLogger::Logger.new(user_id, application,
20
- # :logging => true,
17
+ application = "mambanation-dev"
18
+ @logger = BrmLogger::Logger.new(application,
19
+ :logging => true,
21
20
  :host => RABBITMQ_HOST,
22
21
  :port => RABBITMQ_PORT,
23
22
  :user => RABBITMQ_USERNAME,
24
23
  :pass => RABBITMQ_PASSWORD,
25
24
  :vhost => RABBITMQ_VHOST
26
25
  )
26
+ @logger.user_id = "123"
27
27
  end
28
28
 
29
29
  after(:each) do
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
7
+ - 3
8
8
  - 0
9
- version: 0.2.0
9
+ version: 0.3.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - mathieuravaux