jubjub 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,13 +37,13 @@ module Jubjub
37
37
  room_jid = Jubjub::Jid.new full_jid.node, full_jid.domain
38
38
 
39
39
  request = Nokogiri::XML::Builder.new do |xml|
40
- xml.iq(:type => 'set', :to => room_jid) {
41
- xml.query('xmlns' => 'http://jabber.org/protocol/muc#owner'){
42
- xml.x('xmlns' => 'jabber:x:data', :type => 'submit') {
40
+ xml.iq_(:type => 'set', :to => room_jid) {
41
+ xml.query_('xmlns' => 'http://jabber.org/protocol/muc#owner'){
42
+ xml.x_('xmlns' => 'jabber:x:data', :type => 'submit') {
43
43
  configuration.settings.each{|name,values|
44
- xml.field('var' => name){
44
+ xml.field_('var' => name){
45
45
  values.each {|v|
46
- xml.value v
46
+ xml.value_ v
47
47
  }
48
48
  }
49
49
  } if configuration
@@ -214,8 +214,8 @@ module Jubjub
214
214
  room_jid = Jubjub::Jid.new full_jid.node, full_jid.domain
215
215
 
216
216
  request = Nokogiri::XML::Builder.new do |xml|
217
- xml.iq(:to => room_jid, :type => 'get') {
218
- xml.query('xmlns' => 'http://jabber.org/protocol/muc#owner')
217
+ xml.iq_(:to => room_jid, :type => 'get') {
218
+ xml.query_('xmlns' => 'http://jabber.org/protocol/muc#owner')
219
219
  }
220
220
  end
221
221
 
@@ -267,9 +267,9 @@ module Jubjub
267
267
  # type='result'/>
268
268
  def destroy(jid)
269
269
  request = Nokogiri::XML::Builder.new do |xml|
270
- xml.iq(:to => jid, :type => 'set') {
271
- xml.query('xmlns' => 'http://jabber.org/protocol/muc#owner'){
272
- xml.destroy
270
+ xml.iq_(:to => jid, :type => 'set') {
271
+ xml.query_('xmlns' => 'http://jabber.org/protocol/muc#owner'){
272
+ xml.destroy_
273
273
  }
274
274
  }
275
275
  end
@@ -309,8 +309,8 @@ module Jubjub
309
309
  # </iq>
310
310
  def list(jid)
311
311
  request = Nokogiri::XML::Builder.new do |xml|
312
- xml.iq(:to => jid, :type => 'get') {
313
- xml.query('xmlns' => 'http://jabber.org/protocol/disco#items')
312
+ xml.iq_(:to => jid, :type => 'get') {
313
+ xml.query_('xmlns' => 'http://jabber.org/protocol/disco#items')
314
314
  }
315
315
  end
316
316
 
@@ -331,8 +331,8 @@ module Jubjub
331
331
 
332
332
  def presence(full_jid)
333
333
  request = Nokogiri::XML::Builder.new do |xml|
334
- xml.presence(:to => full_jid) {
335
- xml.x('xmlns' => 'http://jabber.org/protocol/muc')
334
+ xml.presence_(:to => full_jid) {
335
+ xml.x_('xmlns' => 'http://jabber.org/protocol/muc')
336
336
  }
337
337
  end
338
338
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jubjub
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Theo Cushion
@@ -19,7 +19,6 @@ date: 2011-02-01 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- prerelease: false
23
22
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
23
  none: false
25
24
  requirements:
@@ -29,11 +28,11 @@ dependencies:
29
28
  segments:
30
29
  - 0
31
30
  version: "0"
31
+ prerelease: false
32
32
  type: :runtime
33
- name: nokogiri
34
33
  requirement: *id001
34
+ name: nokogiri
35
35
  - !ruby/object:Gem::Dependency
36
- prerelease: false
37
36
  version_requirements: &id002 !ruby/object:Gem::Requirement
38
37
  none: false
39
38
  requirements:
@@ -43,11 +42,11 @@ dependencies:
43
42
  segments:
44
43
  - 0
45
44
  version: "0"
45
+ prerelease: false
46
46
  type: :development
47
- name: rake
48
47
  requirement: *id002
48
+ name: rake
49
49
  - !ruby/object:Gem::Dependency
50
- prerelease: false
51
50
  version_requirements: &id003 !ruby/object:Gem::Requirement
52
51
  none: false
53
52
  requirements:
@@ -57,11 +56,11 @@ dependencies:
57
56
  segments:
58
57
  - 0
59
58
  version: "0"
59
+ prerelease: false
60
60
  type: :development
61
- name: vcr
62
61
  requirement: *id003
62
+ name: vcr
63
63
  - !ruby/object:Gem::Dependency
64
- prerelease: false
65
64
  version_requirements: &id004 !ruby/object:Gem::Requirement
66
65
  none: false
67
66
  requirements:
@@ -72,11 +71,11 @@ dependencies:
72
71
  - 1
73
72
  - 6
74
73
  version: "1.6"
74
+ prerelease: false
75
75
  type: :development
76
- name: webmock
77
76
  requirement: *id004
77
+ name: webmock
78
78
  - !ruby/object:Gem::Dependency
79
- prerelease: false
80
79
  version_requirements: &id005 !ruby/object:Gem::Requirement
81
80
  none: false
82
81
  requirements:
@@ -87,9 +86,10 @@ dependencies:
87
86
  - 2
88
87
  - 4
89
88
  version: "2.4"
89
+ prerelease: false
90
90
  type: :development
91
- name: rspec
92
91
  requirement: *id005
92
+ name: rspec
93
93
  description: jubjub is designed to provie a simple API for controller XMPP servers and their resources. Currently it should be used in conjunction with xmpp_gateway, but the architecture has been left so that other backends could be implemented.
94
94
  email: theo.c@zepler.net
95
95
  executables: []
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  requirements: []
156
156
 
157
157
  rubyforge_project:
158
- rubygems_version: 1.4.1
158
+ rubygems_version: 1.5.0
159
159
  signing_key:
160
160
  specification_version: 3
161
161
  summary: An Object to XMPP mapper to make managing XMPP resources easy