jubjub 0.0.4 → 0.0.5
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/README.mdown +32 -1
- data/lib/jubjub/connection/xmpp_gateway/muc.rb +2 -10
- data/lib/jubjub/connection/xmpp_gateway/pubsub.rb +153 -1
- data/lib/jubjub/data_form.rb +91 -0
- data/lib/jubjub/muc.rb +15 -70
- data/lib/jubjub/pubsub.rb +95 -0
- data/lib/jubjub/user.rb +3 -0
- data/spec/connection/xmpp_gateway_pubsub_spec.rb +102 -0
- data/spec/fixtures/vcr_cassettes/pubsub_publish_with_dataform_payload.yml +28 -0
- data/spec/fixtures/vcr_cassettes/pubsub_publish_with_id.yml +28 -0
- data/spec/fixtures/vcr_cassettes/pubsub_publish_with_string_payload.yml +28 -0
- data/spec/fixtures/vcr_cassettes/pubsub_retract.yml +122 -0
- data/spec/fixtures/vcr_cassettes/pubsub_retrieve_items.yml +166 -0
- data/spec/fixtures/vcr_cassettes/pubsub_setup_node.yml +47 -0
- data/spec/models/data_form_spec.rb +7 -0
- data/spec/models/muc_collection_spec.rb +32 -3
- data/spec/models/muc_configuration_spec.rb +1 -453
- data/spec/models/pubsub_collection_spec.rb +26 -0
- data/spec/models/pubsub_item_collection_spec.rb +76 -0
- data/spec/models/pubsub_item_spec.rb +87 -0
- data/spec/models/pubsub_spec.rb +53 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/support/shared_examples.rb +477 -0
- metadata +46 -25
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:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Theo Cushion
|
@@ -15,11 +15,12 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-23 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
22
|
+
type: :runtime
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
24
|
none: false
|
24
25
|
requirements:
|
25
26
|
- - ">="
|
@@ -28,12 +29,12 @@ dependencies:
|
|
28
29
|
segments:
|
29
30
|
- 0
|
30
31
|
version: "0"
|
31
|
-
prerelease: false
|
32
|
-
type: :runtime
|
33
|
-
requirement: *id001
|
34
32
|
name: nokogiri
|
33
|
+
prerelease: false
|
34
|
+
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
|
36
|
+
type: :development
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
38
|
none: false
|
38
39
|
requirements:
|
39
40
|
- - ">="
|
@@ -42,12 +43,12 @@ dependencies:
|
|
42
43
|
segments:
|
43
44
|
- 0
|
44
45
|
version: "0"
|
45
|
-
prerelease: false
|
46
|
-
type: :development
|
47
|
-
requirement: *id002
|
48
46
|
name: rake
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *id002
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
|
50
|
+
type: :development
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
51
52
|
none: false
|
52
53
|
requirements:
|
53
54
|
- - ">="
|
@@ -56,12 +57,12 @@ dependencies:
|
|
56
57
|
segments:
|
57
58
|
- 0
|
58
59
|
version: "0"
|
59
|
-
prerelease: false
|
60
|
-
type: :development
|
61
|
-
requirement: *id003
|
62
60
|
name: vcr
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: *id003
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
|
-
|
64
|
+
type: :development
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
65
66
|
none: false
|
66
67
|
requirements:
|
67
68
|
- - ~>
|
@@ -71,12 +72,12 @@ dependencies:
|
|
71
72
|
- 1
|
72
73
|
- 6
|
73
74
|
version: "1.6"
|
74
|
-
prerelease: false
|
75
|
-
type: :development
|
76
|
-
requirement: *id004
|
77
75
|
name: webmock
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: *id004
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
|
-
|
79
|
+
type: :development
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
80
81
|
none: false
|
81
82
|
requirements:
|
82
83
|
- - ~>
|
@@ -86,10 +87,9 @@ dependencies:
|
|
86
87
|
- 2
|
87
88
|
- 4
|
88
89
|
version: "2.4"
|
89
|
-
prerelease: false
|
90
|
-
type: :development
|
91
|
-
requirement: *id005
|
92
90
|
name: rspec
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: *id005
|
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: []
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- lib/jubjub/connection/xmpp_gateway/muc.rb
|
104
104
|
- lib/jubjub/connection/xmpp_gateway/pubsub.rb
|
105
105
|
- lib/jubjub/connection/xmpp_gateway.rb
|
106
|
+
- lib/jubjub/data_form.rb
|
106
107
|
- lib/jubjub/errors.rb
|
107
108
|
- lib/jubjub/jid.rb
|
108
109
|
- lib/jubjub/muc.rb
|
@@ -123,18 +124,28 @@ files:
|
|
123
124
|
- spec/fixtures/vcr_cassettes/pubsub_destroy.yml
|
124
125
|
- spec/fixtures/vcr_cassettes/pubsub_destroy_with_redirect.yml
|
125
126
|
- spec/fixtures/vcr_cassettes/pubsub_list.yml
|
127
|
+
- spec/fixtures/vcr_cassettes/pubsub_publish_with_dataform_payload.yml
|
128
|
+
- spec/fixtures/vcr_cassettes/pubsub_publish_with_id.yml
|
129
|
+
- spec/fixtures/vcr_cassettes/pubsub_publish_with_string_payload.yml
|
130
|
+
- spec/fixtures/vcr_cassettes/pubsub_retract.yml
|
131
|
+
- spec/fixtures/vcr_cassettes/pubsub_retrieve_items.yml
|
132
|
+
- spec/fixtures/vcr_cassettes/pubsub_setup_node.yml
|
126
133
|
- spec/fixtures/vcr_cassettes/pubsub_subscribe.yml
|
127
134
|
- spec/fixtures/vcr_cassettes/pubsub_unsubscribe.yml
|
128
135
|
- spec/fixtures/vcr_cassettes/pubsub_unsubscribe_with_subid.yml
|
129
136
|
- spec/mixins/user_spec.rb
|
137
|
+
- spec/models/data_form_spec.rb
|
130
138
|
- spec/models/jid_spec.rb
|
131
139
|
- spec/models/muc_collection_spec.rb
|
132
140
|
- spec/models/muc_configuration_spec.rb
|
133
141
|
- spec/models/muc_spec.rb
|
134
142
|
- spec/models/pubsub_collection_spec.rb
|
143
|
+
- spec/models/pubsub_item_collection_spec.rb
|
144
|
+
- spec/models/pubsub_item_spec.rb
|
135
145
|
- spec/models/pubsub_spec.rb
|
136
146
|
- spec/models/pubsub_subscription_spec.rb
|
137
147
|
- spec/spec_helper.rb
|
148
|
+
- spec/support/shared_examples.rb
|
138
149
|
- .rspec
|
139
150
|
- .infinity_test
|
140
151
|
has_rdoc: true
|
@@ -169,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
180
|
requirements: []
|
170
181
|
|
171
182
|
rubyforge_project:
|
172
|
-
rubygems_version: 1.
|
183
|
+
rubygems_version: 1.6.2
|
173
184
|
signing_key:
|
174
185
|
specification_version: 3
|
175
186
|
summary: An Object to XMPP mapper to make managing XMPP resources easy
|
@@ -186,17 +197,27 @@ test_files:
|
|
186
197
|
- spec/fixtures/vcr_cassettes/pubsub_destroy.yml
|
187
198
|
- spec/fixtures/vcr_cassettes/pubsub_destroy_with_redirect.yml
|
188
199
|
- spec/fixtures/vcr_cassettes/pubsub_list.yml
|
200
|
+
- spec/fixtures/vcr_cassettes/pubsub_publish_with_dataform_payload.yml
|
201
|
+
- spec/fixtures/vcr_cassettes/pubsub_publish_with_id.yml
|
202
|
+
- spec/fixtures/vcr_cassettes/pubsub_publish_with_string_payload.yml
|
203
|
+
- spec/fixtures/vcr_cassettes/pubsub_retract.yml
|
204
|
+
- spec/fixtures/vcr_cassettes/pubsub_retrieve_items.yml
|
205
|
+
- spec/fixtures/vcr_cassettes/pubsub_setup_node.yml
|
189
206
|
- spec/fixtures/vcr_cassettes/pubsub_subscribe.yml
|
190
207
|
- spec/fixtures/vcr_cassettes/pubsub_unsubscribe.yml
|
191
208
|
- spec/fixtures/vcr_cassettes/pubsub_unsubscribe_with_subid.yml
|
192
209
|
- spec/mixins/user_spec.rb
|
210
|
+
- spec/models/data_form_spec.rb
|
193
211
|
- spec/models/jid_spec.rb
|
194
212
|
- spec/models/muc_collection_spec.rb
|
195
213
|
- spec/models/muc_configuration_spec.rb
|
196
214
|
- spec/models/muc_spec.rb
|
197
215
|
- spec/models/pubsub_collection_spec.rb
|
216
|
+
- spec/models/pubsub_item_collection_spec.rb
|
217
|
+
- spec/models/pubsub_item_spec.rb
|
198
218
|
- spec/models/pubsub_spec.rb
|
199
219
|
- spec/models/pubsub_subscription_spec.rb
|
200
220
|
- spec/spec_helper.rb
|
221
|
+
- spec/support/shared_examples.rb
|
201
222
|
- .rspec
|
202
223
|
- .infinity_test
|