rservicebus 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ module RServiceBus
2
+
3
+ require "FluidDb/Db"
4
+
5
+ #Implementation of an AppResource - Redis
6
+ class AppResource_FluidDbPgsql<AppResource
7
+
8
+ def connect(uri)
9
+ return FluidDb::Db.new( uri )
10
+ end
11
+
12
+ # Transaction Semantics
13
+ def Begin
14
+ @connection.Begin
15
+ end
16
+
17
+ # Transaction Semantics
18
+ def Commit
19
+ @connection.Commit
20
+ end
21
+
22
+ # Transaction Semantics
23
+ def Rollback
24
+ @connection.Rollback
25
+ end
26
+
27
+ end
28
+ end
@@ -10,6 +10,9 @@ module RServiceBus
10
10
 
11
11
  env.each do |k,v|
12
12
  if v.is_a?(String) and
13
+ k.start_with?( "RSBFDB_" ) then
14
+ uri = URI.parse( v )
15
+ elsif v.is_a?(String) and
13
16
  k.start_with?( "RSB_" ) then
14
17
  uri = URI.parse( v )
15
18
  case uri.scheme
@@ -236,7 +236,7 @@ module RServiceBus
236
236
  rescue Exception => e
237
237
  sleep 0.5
238
238
 
239
- puts "*** Excepton occured"
239
+ puts "*** Exception occured"
240
240
  puts e.message
241
241
  puts e.backtrace
242
242
  puts "***"
@@ -24,7 +24,7 @@ class SubscriptionManager
24
24
  end
25
25
 
26
26
  def add( eventName, queueName )
27
- RServiceBus.log "Adding subscrption for, " + eventName + ", to, " + queueName
27
+ RServiceBus.log "Adding subscription for, " + eventName + ", to, " + queueName
28
28
  @subscriptions = @subscriptionStorage.add( eventName, queueName )
29
29
  end
30
30
 
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.14
4
+ version: 0.1.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -26,6 +26,7 @@ files:
26
26
  - lib/rservicebus/Agent.rb
27
27
  - lib/rservicebus/AppResource/Dir.rb
28
28
  - lib/rservicebus/AppResource/File.rb
29
+ - lib/rservicebus/AppResource/FluidDb.rb
29
30
  - lib/rservicebus/AppResource/FluidDbFirebird.rb
30
31
  - lib/rservicebus/AppResource/FluidDbMysql.rb
31
32
  - lib/rservicebus/AppResource/FluidDbMysql2.rb