rservicebus 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rservicebus.rb CHANGED
@@ -25,6 +25,8 @@ require "rservicebus/Stats"
25
25
  require "rservicebus/Message"
26
26
  require "rservicebus/Message/Subscription"
27
27
 
28
+ require "rservicebus/UserMessage/WithPayload"
29
+
28
30
  require "rservicebus/AppResource"
29
31
  require "rservicebus/AppResource/Redis"
30
32
 
@@ -11,17 +11,17 @@ module RServiceBus
11
11
 
12
12
  # Transaction Semantics
13
13
  def Begin
14
- @connection.execute( "BEGIN", [] )
14
+ @connection.connection.transaction()
15
15
  end
16
16
 
17
17
  # Transaction Semantics
18
18
  def Commit
19
- @connection.execute( "COMMIT", [] )
19
+ @connection.connection.commit()
20
20
  end
21
21
 
22
22
  # Transaction Semantics
23
23
  def Rollback
24
- @connection.execute( "ROLLBACK", [] )
24
+ @connection.connection.rollback()
25
25
  end
26
26
 
27
27
  end
@@ -135,7 +135,7 @@ module RServiceBus
135
135
  @host.log "Caught nested exception rolling back, #{r.class.name}, for msg, #{msgName}"
136
136
  @host.log "****"
137
137
  @host.log e1.message
138
- @host.log e.backtrace
138
+ @host.log e1.backtrace
139
139
  @host.log "****"
140
140
  end
141
141
  end
@@ -0,0 +1,14 @@
1
+ module RServiceBus
2
+
3
+ class UserMessage_WithPayload
4
+
5
+ attr_reader :payload
6
+
7
+ def initialize( payload )
8
+ @payload = payload
9
+ end
10
+
11
+ end
12
+
13
+ end
14
+
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.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -67,6 +67,7 @@ files:
67
67
  - lib/rservicebus/Test/Redis.rb
68
68
  - lib/rservicebus/Test.rb
69
69
  - lib/rservicebus/Transporter.rb
70
+ - lib/rservicebus/UserMessage/WithPayload.rb
70
71
  - lib/rservicebus.rb
71
72
  - bin/ReturnErroredMessagesToSourceQueue
72
73
  - bin/rservicebus