omf_common 6.0.0.pre.3 → 6.0.0.pre.4
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.
data/lib/omf_common/message.rb
CHANGED
@@ -13,7 +13,7 @@ module OmfCommon
|
|
13
13
|
# message.property('memory', 2) do |p|
|
14
14
|
# p.element('unit', 'gb')
|
15
15
|
# end
|
16
|
-
# end
|
16
|
+
# end
|
17
17
|
#
|
18
18
|
class Message < Niceogiri::XML::Node
|
19
19
|
OMF_NAMESPACE = "http://schema.mytestbed.net/#{OmfCommon::PROTOCOL_VERSION}/protocol"
|
@@ -28,7 +28,7 @@ module OmfCommon
|
|
28
28
|
xml.element('publish_to', args[0]) if operation == 'request'
|
29
29
|
xml.element('inform_type', args[1]) if operation == 'inform'
|
30
30
|
block.call(xml) if block
|
31
|
-
xml
|
31
|
+
xml.sign
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
data/lib/omf_common/version.rb
CHANGED
@@ -19,7 +19,7 @@ describe OmfCommon::Message do
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
22
|
-
end
|
22
|
+
end
|
23
23
|
message.valid?.must_equal true
|
24
24
|
end
|
25
25
|
end
|
@@ -32,12 +32,12 @@ describe OmfCommon::Message do
|
|
32
32
|
p.element('max_value', 'test')
|
33
33
|
end
|
34
34
|
end
|
35
|
-
end
|
35
|
+
end
|
36
36
|
request.valid?.must_equal true
|
37
37
|
end
|
38
38
|
|
39
39
|
it "must return a release XML element without failing" do
|
40
|
-
release = Message.release
|
40
|
+
release = Message.release
|
41
41
|
release.valid?.must_equal true
|
42
42
|
end
|
43
43
|
|
@@ -51,7 +51,7 @@ describe OmfCommon::Message do
|
|
51
51
|
p.element('target', 'test')
|
52
52
|
end
|
53
53
|
end
|
54
|
-
end
|
54
|
+
end
|
55
55
|
inform.valid?.must_equal true
|
56
56
|
end
|
57
57
|
end
|
@@ -65,7 +65,7 @@ describe OmfCommon::Message do
|
|
65
65
|
p.element('unit', 'mb')
|
66
66
|
p.element('precision', '0')
|
67
67
|
end
|
68
|
-
end.
|
68
|
+
end.to_xml
|
69
69
|
|
70
70
|
message = Message.parse(xml)
|
71
71
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omf_common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.0.pre.
|
4
|
+
version: 6.0.0.pre.4
|
5
5
|
prerelease: 6
|
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: 2012-
|
12
|
+
date: 2012-07-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -89,7 +89,6 @@ files:
|
|
89
89
|
- lib/omf_common.rb
|
90
90
|
- lib/omf_common/comm.rb
|
91
91
|
- lib/omf_common/command.rb
|
92
|
-
- lib/omf_common/core_ext/blather/dsl.rb
|
93
92
|
- lib/omf_common/core_ext/blather/dsl/pubsub.rb
|
94
93
|
- lib/omf_common/core_ext/blather/stream/features.rb
|
95
94
|
- lib/omf_common/core_ext/blather/stream/features/register.rb
|