blather 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4c8d4444b9fed6c401deb5d97c8c984fead573f8
4
+ data.tar.gz: 1e303cf3c013030d2ce92be183ec13ce3410f1e4
5
+ SHA512:
6
+ metadata.gz: 1dcd5964fee72197c4d90c97ecc002fbdafa036645f4066467b03b55e3d5017d297626c0fc7fb22624bc46179397292a3decab49c0a189726ba614319eefcfd0
7
+ data.tar.gz: 5df62c1b0c02c5054c84fcfc05f34259ed64e16917d32fabed0227c055343cc966729f012e3d44550bd000ab13c8f7c76c15e495325b71ef6bb09813d506c6d9
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/adhearsion/blather/compare/master...develop)
2
2
 
3
+ # [v0.8.4](https://github.com/adhearsion/blather/compare/v0.8.3...v0.8.4) - [2013-03-20](https://rubygems.org/gems/blather/versions/0.8.4)
4
+ * Bugfix: Only finish stream parser if there is one. This prevents crashes on failure to connect.
5
+
3
6
  # [v0.8.3](https://github.com/adhearsion/blather/compare/v0.8.2...v0.8.3) - [2013-03-03](https://rubygems.org/gems/blather/versions/0.8.3)
4
7
  * Bugfix: Strange issue causing total failure with 0.8.2 - https://github.com/adhearsion/blather/issues/108
5
8
 
@@ -200,7 +200,6 @@ module Blather
200
200
  end
201
201
 
202
202
  def cleanup
203
- @parser.finish
204
203
  @connect_timer.cancel if @connect_timer
205
204
  end
206
205
 
@@ -17,6 +17,10 @@ class Stream
17
17
  super stanza
18
18
  end
19
19
 
20
+ def cleanup
21
+ @parser.finish if @parser
22
+ super
23
+ end
20
24
  end #Client
21
25
 
22
26
  end #Stream
@@ -26,6 +26,11 @@ class Stream
26
26
  @parser = Parser.new self
27
27
  send "<stream:stream to='#{@jid}' xmlns='#{NAMESPACE}' xmlns:stream='#{STREAM_NS}'>"
28
28
  end
29
+
30
+ def cleanup
31
+ @parser.finish if @parser
32
+ super
33
+ end
29
34
  end #Client
30
35
 
31
36
  end #Stream
@@ -1,3 +1,3 @@
1
1
  module Blather
2
- VERSION = '0.8.3'
2
+ VERSION = '0.8.4'
3
3
  end
@@ -139,7 +139,9 @@ end
139
139
  describe Blather::Stanza::X::Field do
140
140
  subject { Blather::Stanza::X::Field.new nil }
141
141
 
142
- its(:namespace) { subject.href.should be == 'jabber:x:data' }
142
+ it "should have the namespace 'jabber:x:data'" do
143
+ subject.namespace.href.should be == 'jabber:x:data'
144
+ end
143
145
 
144
146
  it 'will auto-inherit nodes' do
145
147
  n = parse_stanza "<field type='text-single' var='music' label='Music from the time of Shakespeare' />"
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blather
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
5
- prerelease:
4
+ version: 0.8.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jeff Smick
@@ -10,50 +9,45 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-03-03 00:00:00.000000000 Z
12
+ date: 2013-03-20 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: eventmachine
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: 1.0.0
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
27
  version: 1.0.0
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: nokogiri
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
32
  - - ~>
37
33
  - !ruby/object:Gem::Version
38
34
  version: '1.5'
39
- - - ! '>='
35
+ - - '>='
40
36
  - !ruby/object:Gem::Version
41
37
  version: 1.5.6
42
38
  type: :runtime
43
39
  prerelease: false
44
40
  version_requirements: !ruby/object:Gem::Requirement
45
- none: false
46
41
  requirements:
47
42
  - - ~>
48
43
  - !ruby/object:Gem::Version
49
44
  version: '1.5'
50
- - - ! '>='
45
+ - - '>='
51
46
  - !ruby/object:Gem::Version
52
47
  version: 1.5.6
53
48
  - !ruby/object:Gem::Dependency
54
49
  name: niceogiri
55
50
  requirement: !ruby/object:Gem::Requirement
56
- none: false
57
51
  requirements:
58
52
  - - ~>
59
53
  - !ruby/object:Gem::Version
@@ -61,7 +55,6 @@ dependencies:
61
55
  type: :runtime
62
56
  prerelease: false
63
57
  version_requirements: !ruby/object:Gem::Requirement
64
- none: false
65
58
  requirements:
66
59
  - - ~>
67
60
  - !ruby/object:Gem::Version
@@ -69,39 +62,34 @@ dependencies:
69
62
  - !ruby/object:Gem::Dependency
70
63
  name: activesupport
71
64
  requirement: !ruby/object:Gem::Requirement
72
- none: false
73
65
  requirements:
74
- - - ! '>='
66
+ - - '>='
75
67
  - !ruby/object:Gem::Version
76
68
  version: 2.3.11
77
69
  type: :runtime
78
70
  prerelease: false
79
71
  version_requirements: !ruby/object:Gem::Requirement
80
- none: false
81
72
  requirements:
82
- - - ! '>='
73
+ - - '>='
83
74
  - !ruby/object:Gem::Version
84
75
  version: 2.3.11
85
76
  - !ruby/object:Gem::Dependency
86
77
  name: girl_friday
87
78
  requirement: !ruby/object:Gem::Requirement
88
- none: false
89
79
  requirements:
90
- - - ! '>='
80
+ - - '>='
91
81
  - !ruby/object:Gem::Version
92
82
  version: '0'
93
83
  type: :runtime
94
84
  prerelease: false
95
85
  version_requirements: !ruby/object:Gem::Requirement
96
- none: false
97
86
  requirements:
98
- - - ! '>='
87
+ - - '>='
99
88
  - !ruby/object:Gem::Version
100
89
  version: '0'
101
90
  - !ruby/object:Gem::Dependency
102
91
  name: bundler
103
92
  requirement: !ruby/object:Gem::Requirement
104
- none: false
105
93
  requirements:
106
94
  - - ~>
107
95
  - !ruby/object:Gem::Version
@@ -109,7 +97,6 @@ dependencies:
109
97
  type: :development
110
98
  prerelease: false
111
99
  version_requirements: !ruby/object:Gem::Requirement
112
- none: false
113
100
  requirements:
114
101
  - - ~>
115
102
  - !ruby/object:Gem::Version
@@ -117,23 +104,20 @@ dependencies:
117
104
  - !ruby/object:Gem::Dependency
118
105
  name: rake
119
106
  requirement: !ruby/object:Gem::Requirement
120
- none: false
121
107
  requirements:
122
- - - ! '>='
108
+ - - '>='
123
109
  - !ruby/object:Gem::Version
124
110
  version: '0'
125
111
  type: :development
126
112
  prerelease: false
127
113
  version_requirements: !ruby/object:Gem::Requirement
128
- none: false
129
114
  requirements:
130
- - - ! '>='
115
+ - - '>='
131
116
  - !ruby/object:Gem::Version
132
117
  version: '0'
133
118
  - !ruby/object:Gem::Dependency
134
119
  name: rspec
135
120
  requirement: !ruby/object:Gem::Requirement
136
- none: false
137
121
  requirements:
138
122
  - - ~>
139
123
  - !ruby/object:Gem::Version
@@ -141,7 +125,6 @@ dependencies:
141
125
  type: :development
142
126
  prerelease: false
143
127
  version_requirements: !ruby/object:Gem::Requirement
144
- none: false
145
128
  requirements:
146
129
  - - ~>
147
130
  - !ruby/object:Gem::Version
@@ -149,7 +132,6 @@ dependencies:
149
132
  - !ruby/object:Gem::Dependency
150
133
  name: mocha
151
134
  requirement: !ruby/object:Gem::Requirement
152
- none: false
153
135
  requirements:
154
136
  - - ~>
155
137
  - !ruby/object:Gem::Version
@@ -157,7 +139,6 @@ dependencies:
157
139
  type: :development
158
140
  prerelease: false
159
141
  version_requirements: !ruby/object:Gem::Requirement
160
- none: false
161
142
  requirements:
162
143
  - - ~>
163
144
  - !ruby/object:Gem::Version
@@ -165,23 +146,20 @@ dependencies:
165
146
  - !ruby/object:Gem::Dependency
166
147
  name: guard-rspec
167
148
  requirement: !ruby/object:Gem::Requirement
168
- none: false
169
149
  requirements:
170
- - - ! '>='
150
+ - - '>='
171
151
  - !ruby/object:Gem::Version
172
152
  version: '0'
173
153
  type: :development
174
154
  prerelease: false
175
155
  version_requirements: !ruby/object:Gem::Requirement
176
- none: false
177
156
  requirements:
178
- - - ! '>='
157
+ - - '>='
179
158
  - !ruby/object:Gem::Version
180
159
  version: '0'
181
160
  - !ruby/object:Gem::Dependency
182
161
  name: yard
183
162
  requirement: !ruby/object:Gem::Requirement
184
- none: false
185
163
  requirements:
186
164
  - - ~>
187
165
  - !ruby/object:Gem::Version
@@ -189,7 +167,6 @@ dependencies:
189
167
  type: :development
190
168
  prerelease: false
191
169
  version_requirements: !ruby/object:Gem::Requirement
192
- none: false
193
170
  requirements:
194
171
  - - ~>
195
172
  - !ruby/object:Gem::Version
@@ -197,39 +174,34 @@ dependencies:
197
174
  - !ruby/object:Gem::Dependency
198
175
  name: bluecloth
199
176
  requirement: !ruby/object:Gem::Requirement
200
- none: false
201
177
  requirements:
202
- - - ! '>='
178
+ - - '>='
203
179
  - !ruby/object:Gem::Version
204
180
  version: '0'
205
181
  type: :development
206
182
  prerelease: false
207
183
  version_requirements: !ruby/object:Gem::Requirement
208
- none: false
209
184
  requirements:
210
- - - ! '>='
185
+ - - '>='
211
186
  - !ruby/object:Gem::Version
212
187
  version: '0'
213
188
  - !ruby/object:Gem::Dependency
214
189
  name: countdownlatch
215
190
  requirement: !ruby/object:Gem::Requirement
216
- none: false
217
191
  requirements:
218
- - - ! '>='
192
+ - - '>='
219
193
  - !ruby/object:Gem::Version
220
194
  version: '0'
221
195
  type: :development
222
196
  prerelease: false
223
197
  version_requirements: !ruby/object:Gem::Requirement
224
- none: false
225
198
  requirements:
226
- - - ! '>='
199
+ - - '>='
227
200
  - !ruby/object:Gem::Version
228
201
  version: '0'
229
202
  - !ruby/object:Gem::Dependency
230
203
  name: rb-fsevent
231
204
  requirement: !ruby/object:Gem::Requirement
232
- none: false
233
205
  requirements:
234
206
  - - ~>
235
207
  - !ruby/object:Gem::Version
@@ -237,7 +209,6 @@ dependencies:
237
209
  type: :development
238
210
  prerelease: false
239
211
  version_requirements: !ruby/object:Gem::Requirement
240
- none: false
241
212
  requirements:
242
213
  - - ~>
243
214
  - !ruby/object:Gem::Version
@@ -400,34 +371,27 @@ files:
400
371
  - yard/templates/default/class/text/handlers.erb
401
372
  homepage: http://adhearsion.com/blather
402
373
  licenses: []
374
+ metadata: {}
403
375
  post_install_message:
404
376
  rdoc_options:
405
377
  - --charset=UTF-8
406
378
  require_paths:
407
379
  - lib
408
380
  required_ruby_version: !ruby/object:Gem::Requirement
409
- none: false
410
381
  requirements:
411
- - - ! '>='
382
+ - - '>='
412
383
  - !ruby/object:Gem::Version
413
384
  version: '0'
414
- segments:
415
- - 0
416
- hash: 1627319762610126719
417
385
  required_rubygems_version: !ruby/object:Gem::Requirement
418
- none: false
419
386
  requirements:
420
- - - ! '>='
387
+ - - '>='
421
388
  - !ruby/object:Gem::Version
422
389
  version: '0'
423
- segments:
424
- - 0
425
- hash: 1627319762610126719
426
390
  requirements: []
427
391
  rubyforge_project:
428
- rubygems_version: 1.8.24
392
+ rubygems_version: 2.0.0
429
393
  signing_key:
430
- specification_version: 3
394
+ specification_version: 4
431
395
  summary: Simpler XMPP built for speed
432
396
  test_files:
433
397
  - spec/blather/client/client_spec.rb