rservicebus 0.0.61 → 0.0.63

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.
@@ -47,10 +47,10 @@ module RServiceBus
47
47
  end
48
48
 
49
49
  def addHandler( msgName, handler )
50
- # @handlerList[msgName] = Array.new unless @handlerList.has_key?( msgName )
51
50
  @handlerList[msgName] = Array.new if @handlerList[msgName].nil?
51
+ return unless @handlerList[msgName].index{ |x| x.class.name == handler.class.name }.nil?
52
+
52
53
  @handlerList[msgName] << handler
53
-
54
54
  self.setBusAttributeIfRequested( handler )
55
55
  self.interrogateHandlerForAppResources( handler )
56
56
  end
@@ -118,6 +118,7 @@ module RServiceBus
118
118
  r = @appResources[resourceName]
119
119
  @host.log "Commit resource, #{r.class.name}", true
120
120
  r.Commit
121
+ r.finished
121
122
  end
122
123
  end
123
124
 
@@ -129,6 +130,7 @@ module RServiceBus
129
130
  r = @appResources[resourceName]
130
131
  @host.log "Rollback resource, #{r.class.name}", true
131
132
  r.Rollback
133
+ r.finished
132
134
  rescue Exception => e1
133
135
  @host.log "Caught nested exception rolling back, #{r.class.name}, for msg, #{msgName}"
134
136
  @host.log "****"
@@ -197,6 +197,7 @@ module RServiceBus
197
197
  if statOutputCountdown == 0 then
198
198
  log @stats.getForReporting
199
199
  statOutputCountdown = @config.statOutputCountdown
200
+ GC.start
200
201
  end
201
202
  statOutputCountdown = statOutputCountdown - 1
202
203
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rservicebus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.61
4
+ version: 0.0.63
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: 2013-04-30 00:00:00.000000000 Z
12
+ date: 2013-05-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A Ruby interpretation of NServiceBus
15
15
  email: guy@guyirvine.com