rservicebus2 0.0.7 → 0.0.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd9d48db615541ba3a417e22e9d7600124c1f444
|
4
|
+
data.tar.gz: 3d330bfcd2dcbb5776add8aa95aab35deea04d6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89c3e81247c1e61fc56edb522f35b063fa8049c1ecb669d45bc780c40ce359937ab50879711d366a5b106c2218d7c7a7583ad82c77ad88cf51dcf0887652df82
|
7
|
+
data.tar.gz: 9844949ed2ac97493913598266b0a06f9c948699d52f2c473fad43f2473765a3cc647f6e31ac7582ee771ce27b87b07dc603733cad27eb09dae4d1f5d3ac88d7
|
@@ -7,17 +7,17 @@ module RServiceBus2
|
|
7
7
|
end
|
8
8
|
|
9
9
|
# Transaction Semantics
|
10
|
-
def
|
10
|
+
def Begin
|
11
11
|
@connection.begin
|
12
12
|
end
|
13
13
|
|
14
14
|
# Transaction Semantics
|
15
|
-
def
|
15
|
+
def Commit
|
16
16
|
@connection.commit
|
17
17
|
end
|
18
18
|
|
19
19
|
# Transaction Semantics
|
20
|
-
def
|
20
|
+
def Rollback
|
21
21
|
@connection.rollback
|
22
22
|
end
|
23
23
|
end
|
@@ -13,6 +13,9 @@ module RServiceBus2
|
|
13
13
|
v = v['fluiddb'.length..-1] if v.index('fluiddb') == 0
|
14
14
|
uri = URI.parse(v)
|
15
15
|
require 'rservicebus2/appresource/fluiddb'
|
16
|
+
|
17
|
+
key = k.sub('RSBFDB_', '') if k.start_with?('RSBFDB_')
|
18
|
+
key = k.sub('RSBFDB_', '') if k.start_with?('RSBFDB_')
|
16
19
|
rm.add k.sub('RSBFDB_', ''), AppResourceFluidDb.new(host, uri)
|
17
20
|
elsif v.is_a?(String) && k.start_with?('RSB_')
|
18
21
|
uri = URI.parse(v)
|
@@ -67,7 +67,7 @@ module RServiceBus2
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def add_handler(lc_msg_name, handler)
|
70
|
-
msg_name = lc_msg_name.gsub(/(?<=_|^)(\w)/){$1.upcase}.gsub(/(?:_)(\w)/,'\1')
|
70
|
+
msg_name = lc_msg_name.gsub(/(?<=_|^)(\w)/){$1.upcase}.gsub(/(?:_)(\w)/,'\1') # Turn snake_case string to CamelCase
|
71
71
|
@handler_list[msg_name] = [] if @handler_list[msg_name].nil?
|
72
72
|
return unless @handler_list[msg_name].index{ |x| x.class.name == handler.class.name }.nil?
|
73
73
|
|