bi-frost 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bifrost.rb +8 -0
- data/lib/bifrost/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 533fe67ffbe175327e17f804236dc3b90e033551
|
4
|
+
data.tar.gz: ae0b7820e19390971654ce9fc8c6eadbc2ec5d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3e78411ef1729d457cf91959ad3eb8868444dd94774bf983127784294f118bb423a89c206c8ca866c2f2ef4ba10286adb80db9d34143b0497af24382422b280
|
7
|
+
data.tar.gz: 37bb8f048d02fcd11513398d3a1e8ae58c07ff3e06ac29c11e96d4e5122a84cfbd3ed159194320c742c2596d6acaaa5cead22db55fd110efb1fec2572044062c
|
data/lib/bifrost.rb
CHANGED
@@ -4,9 +4,17 @@ require 'bifrost/topic'
|
|
4
4
|
require 'bifrost/subscriber'
|
5
5
|
require 'bifrost/manager'
|
6
6
|
require 'bifrost/worker'
|
7
|
+
require 'celluloid'
|
7
8
|
|
8
9
|
# Bifrost is a pub/sub gem built on top of the Azure MessageBus system
|
9
10
|
module Bifrost
|
11
|
+
|
12
|
+
# Workers and the infrastructure can log using the standard level of granularity affored to any
|
13
|
+
# standard logger (i.e. info, debug, error levels etc)
|
14
|
+
def self.logger=(log_provider)
|
15
|
+
Celluloid.logger = log_provider
|
16
|
+
end
|
17
|
+
|
10
18
|
# Simple utlity that creates a topic and a single subscriber for the given
|
11
19
|
# topic. The topic is returned
|
12
20
|
def self.create_topic_with_subscriber(topic, subscriber)
|
data/lib/bifrost/version.rb
CHANGED
@@ -9,7 +9,7 @@ module Bifrost
|
|
9
9
|
|
10
10
|
# The patch version of Bifrost, updated only for bug fixes from the last
|
11
11
|
# feature release.
|
12
|
-
PATCH_VERSION =
|
12
|
+
PATCH_VERSION = 2
|
13
13
|
|
14
14
|
# The full version as a string.
|
15
15
|
VERSION = "#{MAJOR_VERSION}.#{MINOR_VERSION}.#{PATCH_VERSION}".freeze
|