rservicebus 0.1.10 → 0.1.12
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.
@@ -7,13 +7,13 @@ module RServiceBus
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def get( name )
|
10
|
-
return -1 unless @state.has_key?(
|
10
|
+
return -1 unless @state.has_key?(name)
|
11
11
|
|
12
|
-
return @state[
|
12
|
+
return @state[name]
|
13
13
|
end
|
14
14
|
|
15
|
-
def set( name,
|
16
|
-
@state[
|
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
|
@@ -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.
|
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-
|
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
|