omf_common 6.0.0.pre.3 → 6.0.0.pre.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
1
1
  require 'blather/client/dsl'
2
- require 'omf_common/core_ext/blather/dsl'
3
2
  require 'omf_common/core_ext/blather/dsl/pubsub'
4
3
  require 'omf_common/core_ext/blather/stream/features'
5
4
  require 'omf_common/core_ext/blather/stream/features/register'
@@ -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.sign
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
 
@@ -1,4 +1,4 @@
1
1
  module OmfCommon
2
- VERSION = "6.0.0.pre.3"
2
+ VERSION = "6.0.0.pre.4"
3
3
  PROTOCOL_VERSION = "6.0"
4
4
  end
@@ -19,7 +19,7 @@ describe OmfCommon::Message do
19
19
  end
20
20
  end
21
21
  end
22
- end.sign
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.sign
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.sign
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.sign
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.sign.to_xml
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.3
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-06-18 00:00:00.000000000 Z
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
@@ -1,8 +0,0 @@
1
- module Blather
2
- module DSL
3
- def register(username, password, &block)
4
- stanza = Blather::Stanza::Registration.new(username, password)
5
- client.write_with_handler(stanza, &block)
6
- end
7
- end
8
- end