rservicebus 0.1.10 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,13 +7,13 @@ module RServiceBus
7
7
  end
8
8
 
9
9
  def get( name )
10
- return -1 unless @state.has_key?("name")
10
+ return -1 unless @state.has_key?(name)
11
11
 
12
- return @state["name"]
12
+ return @state[name]
13
13
  end
14
14
 
15
- def set( name, id )
16
- @state["name"] = id
15
+ def set( name, value )
16
+ @state[name] = value
17
17
  end
18
18
 
19
19
  def load
@@ -49,6 +49,9 @@ module RServiceBus
49
49
  when "smb"
50
50
  require "rservicebus/AppResource/Smb"
51
51
  resources[k.sub( "RSB_", "" )] = AppResource_Smb.new( host, uri )
52
+ when "state"
53
+ require "rservicebus/AppResource/State"
54
+ resources[k.sub( "RSB_", "" )] = AppResource_State.new( host, uri )
52
55
  else
53
56
  abort("Scheme, #{uri.scheme}, not recognised when configuring app resource, #{k}=#{v}");
54
57
  end
@@ -107,7 +107,7 @@ class Transporter
107
107
  @destination.close
108
108
  @remoteQueueName = nil
109
109
  end
110
-
110
+
111
111
 
112
112
  def process
113
113
  #Get the next job from the source queue
@@ -1,4 +1,7 @@
1
1
  module RServiceBus
2
+
3
+ class PropertyNotSet<StandardError
4
+ end
2
5
 
3
6
  def RServiceBus.convertDTOToHash( obj )
4
7
  hash = {};
@@ -44,4 +47,11 @@ module RServiceBus
44
47
 
45
48
  end
46
49
 
50
+ def RServiceBus.RaisePropertyNotSet( propertyName, handlerName, explaination )
51
+ puts "*** Set RSB_#{propertyName} for, #{handlerName}"
52
+ puts explaination
53
+
54
+ raise PropertyNotSet.new( error )
55
+ end
56
+
47
57
  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.10
4
+ version: 0.1.12
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-08-29 00:00:00.000000000 Z
12
+ date: 2013-08-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A Ruby interpretation of NServiceBus
15
15
  email: guy@guyirvine.com