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: 50cb216e5e246231fcb862b860f1b3078463af39
4
- data.tar.gz: ec90098602a275e83e1408e4c99685b59db01c38
3
+ metadata.gz: bd9d48db615541ba3a417e22e9d7600124c1f444
4
+ data.tar.gz: 3d330bfcd2dcbb5776add8aa95aab35deea04d6e
5
5
  SHA512:
6
- metadata.gz: 2c99c7c831942842d8b40e0be3815445af327d3a2305b7e3a3813fb30193d6e7d4be3a969aee8ab1e367d022407e642c2b8e0e5737a524816346c82b0caf6e1d
7
- data.tar.gz: 98dd8b56b3370dafbac3f15819317c53beccb9b1b0f1337848839841bf7759aaa5203a1e0d5078d0eee4c21fc7e35eff0269bffb99a3428cc0a9c785efdf1e40
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 begin
10
+ def Begin
11
11
  @connection.begin
12
12
  end
13
13
 
14
14
  # Transaction Semantics
15
- def commit
15
+ def Commit
16
16
  @connection.commit
17
17
  end
18
18
 
19
19
  # Transaction Semantics
20
- def rollback
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rservicebus2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guy Irvine