rservicebus 0.1.60 → 0.1.61

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,4 +16,4 @@ module RServiceBus
16
16
  end
17
17
  end
18
18
 
19
- end
19
+ end
@@ -550,7 +550,7 @@ module RServiceBus
550
550
  queueName = self.getEndpointForMsg( eventName )
551
551
  subscription = Message_Subscription.new( eventName )
552
552
 
553
- self._SendNeedsWrapping( subscription, queueName )
553
+ self._SendNeedsWrapping( subscription, queueName, nil )
554
554
  end
555
555
 
556
556
  end
@@ -58,11 +58,11 @@ module RServiceBus
58
58
  v.Rollback
59
59
  v.finished
60
60
  rescue Exception => e1
61
- @host.log "Caught nested exception rolling back, #{v.class.name}, for msg, #{msgName}"
62
- @host.log "****"
63
- @host.log e1.message
64
- @host.log e1.backtrace
65
- @host.log "****"
61
+ puts "Caught nested exception rolling back, #{v.class.name}, for msg, #{msgName}"
62
+ puts "****"
63
+ puts e1.message
64
+ puts e1.backtrace
65
+ puts "****"
66
66
  end
67
67
  end
68
68
 
@@ -13,7 +13,7 @@ module RServiceBus
13
13
  if string.nil? then
14
14
  string = "dir:///tmp"
15
15
  end
16
-
16
+
17
17
  uri = URI.parse( string )
18
18
  @stateStorage = StateStorage.Get( uri )
19
19
 
@@ -7,6 +7,9 @@ module RServiceBus
7
7
  when "dir"
8
8
  require 'rservicebus/StateStorage/Dir.rb'
9
9
  return StateStorage_Dir.new( uri )
10
+ when "inmem"
11
+ require 'rservicebus/StateStorage/InMemory.rb'
12
+ return StateStorage_InMemory.new( uri )
10
13
  else
11
14
  abort("Scheme, #{uri.scheme}, not recognised when configuring StateStorage, #{uri.to_s}");
12
15
  end
@@ -0,0 +1,31 @@
1
+ module RServiceBus
2
+
3
+ class StateStorage_InMemory
4
+
5
+ def initialize( uri )
6
+ @hash = Hash.new
7
+ end
8
+
9
+ #Start
10
+ def Begin
11
+ @list = Array.new
12
+ end
13
+
14
+ #Get
15
+ def Get( handler )
16
+ hash = @hash[handler.class.name]
17
+ @list << Hash["name", handler.class.name, "hash", hash]
18
+
19
+ return hash
20
+ end
21
+
22
+ #Finish
23
+ def Commit
24
+ @list.each do |e|
25
+ @hash[ e['name'] ] = e['hash']
26
+ end
27
+ end
28
+
29
+ end
30
+
31
+ end
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.1.60
4
+ version: 0.1.61
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-16 00:00:00.000000000 Z
12
+ date: 2014-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uuidtools
16
- requirement: &70315473714980 !ruby/object:Gem::Requirement
16
+ requirement: &70302801620640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70315473714980
24
+ version_requirements: *70302801620640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &70315473714080 !ruby/object:Gem::Requirement
27
+ requirement: &70302801619340 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70315473714080
35
+ version_requirements: *70302801619340
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: beanstalk-client
38
- requirement: &70315473713580 !ruby/object:Gem::Requirement
38
+ requirement: &70302798446360 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70315473713580
46
+ version_requirements: *70302798446360
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: fluiddb
49
- requirement: &70315473712940 !ruby/object:Gem::Requirement
49
+ requirement: &70302798445760 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70315473712940
57
+ version_requirements: *70302798445760
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: parse-cron
60
- requirement: &70315473712120 !ruby/object:Gem::Requirement
60
+ requirement: &70302798445300 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70315473712120
68
+ version_requirements: *70302798445300
69
69
  description: A Ruby interpretation of NServiceBus
70
70
  email: guy@guyirvine.com
71
71
  executables:
@@ -135,6 +135,7 @@ files:
135
135
  - lib/rservicebus/SendAtStorage.rb
136
136
  - lib/rservicebus/StateManager.rb
137
137
  - lib/rservicebus/StateStorage/Dir.rb
138
+ - lib/rservicebus/StateStorage/InMemory.rb
138
139
  - lib/rservicebus/StateStorage.rb
139
140
  - lib/rservicebus/StatisticManager.rb
140
141
  - lib/rservicebus/Stats.rb