shingara-blather 0.4.9 → 0.4.14

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.
@@ -3,6 +3,7 @@ $:.unshift File.expand_path(File.join(File.dirname(__FILE__), *%w[.. lib]))
3
3
 
4
4
  require 'blather'
5
5
  require 'rubygems'
6
+ gem 'minitest', '>=1.7.1'
6
7
  require 'minitest/spec'
7
8
  require 'mocha'
8
9
  require 'mocha/expectation_error'
@@ -29,6 +30,33 @@ module MiniTest
29
30
  assert_equal([args[:from], args[:to]], [(init_val if args[:from]), new_val], msg) if args[:to]
30
31
  refute_equal(init_val, new_val, msg) if args.empty?
31
32
  end
33
+
34
+ def assert_nothing_raised(*args)
35
+ self._assertions += 1
36
+ if Module === args.last
37
+ msg = nil
38
+ else
39
+ msg = args.pop
40
+ end
41
+ begin
42
+ line = __LINE__; yield
43
+ rescue Exception => e
44
+ bt = e.backtrace
45
+ as = e.instance_of?(MiniTest::Assertion)
46
+ if as
47
+ ans = /\A#{Regexp.quote(__FILE__)}:#{line}:in /o
48
+ bt.reject! {|ln| ans =~ ln}
49
+ end
50
+ if ((args.empty? && !as) ||
51
+ args.any? {|a| a.instance_of?(Module) ? e.is_a?(a) : e.class == a })
52
+ msg = message(msg) { "Exception raised:\n<#{mu_pp(e)}>" }
53
+ raise MiniTest::Assertion, msg.call, bt
54
+ else
55
+ raise
56
+ end
57
+ end
58
+ nil
59
+ end
32
60
  end
33
61
  end
34
62
 
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shingara-blather
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 4
8
- - 9
9
- version: 0.4.9
9
+ - 14
10
+ version: 0.4.14
10
11
  platform: ruby
11
12
  authors:
12
13
  - Jeff Smick
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-05-18 00:00:00 +02:00
19
+ date: 2010-09-09 00:00:00 +02:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
@@ -26,6 +27,7 @@ dependencies:
26
27
  requirements:
27
28
  - - ">="
28
29
  - !ruby/object:Gem::Version
30
+ hash: 35
29
31
  segments:
30
32
  - 0
31
33
  - 12
@@ -41,6 +43,7 @@ dependencies:
41
43
  requirements:
42
44
  - - ">="
43
45
  - !ruby/object:Gem::Version
46
+ hash: 7
44
47
  segments:
45
48
  - 1
46
49
  - 4
@@ -56,14 +59,30 @@ dependencies:
56
59
  requirements:
57
60
  - - ">="
58
61
  - !ruby/object:Gem::Version
62
+ hash: 7
59
63
  segments:
60
64
  - 3
61
65
  - 0
62
66
  - 0
63
- - beta3
64
- version: 3.0.0.beta3
67
+ version: 3.0.0
65
68
  type: :runtime
66
69
  version_requirements: *id003
70
+ - !ruby/object:Gem::Dependency
71
+ name: minitest
72
+ prerelease: false
73
+ requirement: &id004 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ hash: 9
79
+ segments:
80
+ - 1
81
+ - 7
82
+ - 1
83
+ version: 1.7.1
84
+ type: :development
85
+ version_requirements: *id004
67
86
  description: An XMPP DSL for Ruby written on top of EventMachine and Nokogiri
68
87
  email: sprsquish@gmail.com
69
88
  executables: []
@@ -99,8 +118,10 @@ files:
99
118
  - lib/blather/stanza/disco/disco_info.rb
100
119
  - lib/blather/stanza/disco/disco_items.rb
101
120
  - lib/blather/stanza/iq.rb
121
+ - lib/blather/stanza/iq/command.rb
102
122
  - lib/blather/stanza/iq/query.rb
103
123
  - lib/blather/stanza/iq/roster.rb
124
+ - lib/blather/stanza/iq/vcard.rb
104
125
  - lib/blather/stanza/message.rb
105
126
  - lib/blather/stanza/presence.rb
106
127
  - lib/blather/stanza/presence/status.rb
@@ -120,6 +141,7 @@ files:
120
141
  - lib/blather/stanza/pubsub_owner.rb
121
142
  - lib/blather/stanza/pubsub_owner/delete.rb
122
143
  - lib/blather/stanza/pubsub_owner/purge.rb
144
+ - lib/blather/stanza/x.rb
123
145
  - lib/blather/stream.rb
124
146
  - lib/blather/stream/client.rb
125
147
  - lib/blather/stream/component.rb
@@ -145,8 +167,10 @@ files:
145
167
  - spec/blather/roster_spec.rb
146
168
  - spec/blather/stanza/discos/disco_info_spec.rb
147
169
  - spec/blather/stanza/discos/disco_items_spec.rb
170
+ - spec/blather/stanza/iq/command_spec.rb
148
171
  - spec/blather/stanza/iq/query_spec.rb
149
172
  - spec/blather/stanza/iq/roster_spec.rb
173
+ - spec/blather/stanza/iq/vcard_query_spec.rb
150
174
  - spec/blather/stanza/iq_spec.rb
151
175
  - spec/blather/stanza/message_spec.rb
152
176
  - spec/blather/stanza/presence/status_spec.rb
@@ -166,6 +190,7 @@ files:
166
190
  - spec/blather/stanza/pubsub_owner/purge_spec.rb
167
191
  - spec/blather/stanza/pubsub_owner_spec.rb
168
192
  - spec/blather/stanza/pubsub_spec.rb
193
+ - spec/blather/stanza/x_spec.rb
169
194
  - spec/blather/stanza_spec.rb
170
195
  - spec/blather/stream/client_spec.rb
171
196
  - spec/blather/stream/component_spec.rb
@@ -187,6 +212,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
212
  requirements:
188
213
  - - ">="
189
214
  - !ruby/object:Gem::Version
215
+ hash: 3
190
216
  segments:
191
217
  - 0
192
218
  version: "0"
@@ -195,6 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
221
  requirements:
196
222
  - - ">="
197
223
  - !ruby/object:Gem::Version
224
+ hash: 3
198
225
  segments:
199
226
  - 0
200
227
  version: "0"
@@ -219,8 +246,10 @@ test_files:
219
246
  - spec/blather/roster_spec.rb
220
247
  - spec/blather/stanza/discos/disco_info_spec.rb
221
248
  - spec/blather/stanza/discos/disco_items_spec.rb
249
+ - spec/blather/stanza/iq/command_spec.rb
222
250
  - spec/blather/stanza/iq/query_spec.rb
223
251
  - spec/blather/stanza/iq/roster_spec.rb
252
+ - spec/blather/stanza/iq/vcard_query_spec.rb
224
253
  - spec/blather/stanza/iq_spec.rb
225
254
  - spec/blather/stanza/message_spec.rb
226
255
  - spec/blather/stanza/presence/status_spec.rb
@@ -240,6 +269,7 @@ test_files:
240
269
  - spec/blather/stanza/pubsub_owner/purge_spec.rb
241
270
  - spec/blather/stanza/pubsub_owner_spec.rb
242
271
  - spec/blather/stanza/pubsub_spec.rb
272
+ - spec/blather/stanza/x_spec.rb
243
273
  - spec/blather/stanza_spec.rb
244
274
  - spec/blather/stream/client_spec.rb
245
275
  - spec/blather/stream/component_spec.rb