ruby-ext 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/.git/index CHANGED
Binary file
data/.git/logs/HEAD CHANGED
@@ -13,3 +13,4 @@ f1eed82f16b829cf1f72f89142b089f43f99eda7 9fe2acc9bded3dc0d29b1dfc7dc1b3bed5d72c8
13
13
  ee69f9fad83c5b0668b62622037094e989d3c394 493774d80093f4ec3c6c3bfad21e1c8c9eaf41ec alex <alex@amac.local> 1265027678 +0300 commit: upd
14
14
  493774d80093f4ec3c6c3bfad21e1c8c9eaf41ec 09c02be5623fa00484aa07a311112b1e0828f7e9 alex <alex@amac.local> 1265749453 +0300 commit: upd
15
15
  09c02be5623fa00484aa07a311112b1e0828f7e9 edf084d86f4c5aa17fce73a22a44c2dda49c7cab alex <alex@amac.local> 1266000346 +0300 commit: upd
16
+ edf084d86f4c5aa17fce73a22a44c2dda49c7cab 76d8411ad8aa53f568f378bd48dee0cfbd107a16 alex <alex@amac.local> 1268137348 +0300 commit: upd
@@ -13,3 +13,4 @@ f1eed82f16b829cf1f72f89142b089f43f99eda7 9fe2acc9bded3dc0d29b1dfc7dc1b3bed5d72c8
13
13
  ee69f9fad83c5b0668b62622037094e989d3c394 493774d80093f4ec3c6c3bfad21e1c8c9eaf41ec alex <alex@amac.local> 1265027678 +0300 commit: upd
14
14
  493774d80093f4ec3c6c3bfad21e1c8c9eaf41ec 09c02be5623fa00484aa07a311112b1e0828f7e9 alex <alex@amac.local> 1265749453 +0300 commit: upd
15
15
  09c02be5623fa00484aa07a311112b1e0828f7e9 edf084d86f4c5aa17fce73a22a44c2dda49c7cab alex <alex@amac.local> 1266000346 +0300 commit: upd
16
+ edf084d86f4c5aa17fce73a22a44c2dda49c7cab 76d8411ad8aa53f568f378bd48dee0cfbd107a16 alex <alex@amac.local> 1268137348 +0300 commit: upd
@@ -12,3 +12,4 @@ f1eed82f16b829cf1f72f89142b089f43f99eda7 9fe2acc9bded3dc0d29b1dfc7dc1b3bed5d72c8
12
12
  ee69f9fad83c5b0668b62622037094e989d3c394 493774d80093f4ec3c6c3bfad21e1c8c9eaf41ec alex <alex@amac.local> 1265027703 +0300 update by push
13
13
  493774d80093f4ec3c6c3bfad21e1c8c9eaf41ec 09c02be5623fa00484aa07a311112b1e0828f7e9 alex <alex@amac.local> 1265749458 +0300 update by push
14
14
  09c02be5623fa00484aa07a311112b1e0828f7e9 edf084d86f4c5aa17fce73a22a44c2dda49c7cab alex <alex@amac.local> 1266000350 +0300 update by push
15
+ edf084d86f4c5aa17fce73a22a44c2dda49c7cab 76d8411ad8aa53f568f378bd48dee0cfbd107a16 alex <alex@amac.local> 1268137352 +0300 update by push
@@ -1 +1 @@
1
- edf084d86f4c5aa17fce73a22a44c2dda49c7cab
1
+ 76d8411ad8aa53f568f378bd48dee0cfbd107a16
@@ -1 +1 @@
1
- edf084d86f4c5aa17fce73a22a44c2dda49c7cab
1
+ 76d8411ad8aa53f568f378bd48dee0cfbd107a16
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ require 'fileutils'
18
18
 
19
19
  spec = Gem::Specification.new do |s|
20
20
  s.name = "ruby-ext"
21
- s.version = "0.2.5"
21
+ s.version = "0.2.6"
22
22
  s.summary = "Set of common Ruby language extensions"
23
23
  s.description = "Set of common Ruby language extensions"
24
24
  s.author = "Alexey Petrushin"
@@ -60,7 +60,7 @@ Module.class_eval do
60
60
  list = class_name.split("::")
61
61
  if list.size > 1
62
62
  list.pop
63
- return eval list.join("::"), TOPLEVEL_BINDING, __FILE__, __LINE__
63
+ return eval(list.join("::"), TOPLEVEL_BINDING, __FILE__, __LINE__)
64
64
  else
65
65
  return nil
66
66
  end
@@ -1,7 +1,9 @@
1
+ class AssertionError < RuntimeError; end
2
+
1
3
  Object.class_eval do
2
4
  def should_be! method
3
5
  unless self.send("#{method}?") == true
4
- raise RuntimeError, "
6
+ raise AssertionError, "
5
7
  ASSERTION FAILED:
6
8
  #{self.inspect} should be #{method}
7
9
  ", caller
@@ -13,7 +15,7 @@ Object.class_eval do
13
15
 
14
16
  def should_not_be! method
15
17
  unless self.send("#{method}?") == false
16
- raise RuntimeError, "
18
+ raise AssertionError, "
17
19
  ASSERTION FAILED:
18
20
  #{self.inspect} should not be #{method}
19
21
  ", caller
@@ -77,12 +79,12 @@ Object.class_eval do
77
79
 
78
80
  unless result
79
81
  unless arg.equal? NotDefined
80
- raise RuntimeError, "
82
+ raise AssertionError, "
81
83
  ASSERTION FAILED:
82
84
  #{self.inspect} should #{cmd} #{arg.inspect}
83
85
  ", caller
84
86
  else
85
- raise RuntimeError, "
87
+ raise AssertionError, "
86
88
  ASSERTION FAILED:
87
89
  #{self.inspect} should #{cmd}
88
90
  ", caller
@@ -147,12 +149,12 @@ Object.class_eval do
147
149
 
148
150
  if result
149
151
  unless arg.equal? NotDefined
150
- raise RuntimeError, "
152
+ raise AssertionError, "
151
153
  ASSERTION FAILED:
152
154
  #{self.inspect} should not #{cmd} #{arg.inspect}
153
155
  ", caller
154
156
  else
155
- raise RuntimeError, "
157
+ raise AssertionError, "
156
158
  ASSERTION FAILED:
157
159
  #{self.inspect} should not #{cmd}
158
160
  ", caller
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 6
9
+ version: 0.2.6
5
10
  platform: ruby
6
11
  authors:
7
12
  - Alexey Petrushin
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-12 00:00:00 +03:00
17
+ date: 2010-03-09 00:00:00 +03:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -189,6 +194,7 @@ files:
189
194
  - .git/objects/57/cf2479bb9c6e31118c42c5cceaffada1862c72
190
195
  - .git/objects/59/60bdbdc3be504b89371c2b4b09d22754251260
191
196
  - .git/objects/59/653cefe5b174e4a7002100f024448cdb337373
197
+ - .git/objects/59/f04835f47642d357c730bd445cfb6d81e977c2
192
198
  - .git/objects/5c/28c251bb201232470340d73ed4cc4926cd241d
193
199
  - .git/objects/5c/536c5d712f7cf34e21be5526aa3e826888810f
194
200
  - .git/objects/5d/281b39340e5d448c63c8f439c9ca4035ccaf66
@@ -207,6 +213,7 @@ files:
207
213
  - .git/objects/70/222d828221b1884b6b8ce124b7f22eea5d420d
208
214
  - .git/objects/70/24a34893a27973147a32aa305ed958181bf821
209
215
  - .git/objects/74/bf8f37d70d9818474e1fb5081f04c496741a28
216
+ - .git/objects/76/d8411ad8aa53f568f378bd48dee0cfbd107a16
210
217
  - .git/objects/77/141a7a91a61baff283e5f16e55a720d0bc65e0
211
218
  - .git/objects/7f/2c583d1fdcc5313140c57778be8b0d45824be9
212
219
  - .git/objects/81/6bb8c35fe2169fa9ecbcd40941c440e5d032e1
@@ -215,6 +222,7 @@ files:
215
222
  - .git/objects/84/2a9747ce87d8b90ee360f7252b557ff8e19352
216
223
  - .git/objects/90/eea923ef08bb39013e7cd5be777b7539733638
217
224
  - .git/objects/93/276f74ef0e157c5f81eeec7844f30d4eceda7a
225
+ - .git/objects/93/92809cf06164fad87b55582cad4ac84233e7cc
218
226
  - .git/objects/97/260e66124380267a414850b1d648da79324455
219
227
  - .git/objects/98/359366defef2b74ad1f641f1f237f284d663e2
220
228
  - .git/objects/99/3591274b3b946f334d086b62dfca5bc904d810
@@ -234,12 +242,14 @@ files:
234
242
  - .git/objects/b4/cbb05893636d6b7314fbc4df7e3a8dcaeb0de1
235
243
  - .git/objects/b6/17a8cc2ae7f6ea496051db493aa56edc178073
236
244
  - .git/objects/b6/863b5d4c0a4d87b81a9bbc29e786fcf7ef0df2
245
+ - .git/objects/b8/919f6b8ea7306a4e75c38cf9743e5fb276516b
237
246
  - .git/objects/b8/c374e1a9042d9c4a478bee2c2b5b469aba55d6
238
247
  - .git/objects/bc/ee5c51061bdb9ab5a5aea4f00245a8ab3689b2
239
248
  - .git/objects/bd/0327e9af9fce9cb9ff1a16b0d51df043c5f8cb
240
249
  - .git/objects/be/a9ade8ddb19a7ff5b18bc77fac5cb27d6cf284
241
250
  - .git/objects/c2/063002322bb3367c490c5a3b8ecb6c50951dc0
242
251
  - .git/objects/c3/faad9ba42388a50a57acf9df88f6d2a64a4122
252
+ - .git/objects/c5/23a701b0f4d7b69ec9744b4cd5fcd6dd7cbb50
243
253
  - .git/objects/c9/c39c710d4de2a46c0ed97985641c2b8e4533a2
244
254
  - .git/objects/ca/9716fd518aac44d4acaa94a86838cde6030f6a
245
255
  - .git/objects/d0/b6eae8243889753a5a3e9a801b4dd5bcd09d91
@@ -249,10 +259,12 @@ files:
249
259
  - .git/objects/e0/79f0e8854797974df458de31b88bb8b4b0fdbf
250
260
  - .git/objects/e0/c54997bfab8a0bf135d0de79ddee431b9112ad
251
261
  - .git/objects/e1/3f643da891453763504616e4f5a8195b8ffdb9
262
+ - .git/objects/e1/a14b4ea58a788a7c7917ca6ca8162e51a8971d
252
263
  - .git/objects/e9/03ba4c283cd16c7291500d4f80da24c8f5f4df
253
264
  - .git/objects/e9/d385c1913656b7ce15a1ac1424361d2e065a6c
254
265
  - .git/objects/ed/f084d86f4c5aa17fce73a22a44c2dda49c7cab
255
266
  - .git/objects/ee/69f9fad83c5b0668b62622037094e989d3c394
267
+ - .git/objects/ef/877695fc5c02b534ed53fcd877149e21d1534d
256
268
  - .git/objects/f0/c37cf78e53e6f859111f35d9dbf52cbfbc633d
257
269
  - .git/objects/f0/f0c35fd385e1ac016e6d3f7d72ea188c578b77
258
270
  - .git/objects/f1/03c61b701ab4d981c4d16888c11bee87d65a0d
@@ -285,18 +297,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
285
297
  requirements:
286
298
  - - ">="
287
299
  - !ruby/object:Gem::Version
300
+ segments:
301
+ - 0
288
302
  version: "0"
289
- version:
290
303
  required_rubygems_version: !ruby/object:Gem::Requirement
291
304
  requirements:
292
305
  - - ">="
293
306
  - !ruby/object:Gem::Version
307
+ segments:
308
+ - 0
294
309
  version: "0"
295
- version:
296
310
  requirements: []
297
311
 
298
312
  rubyforge_project:
299
- rubygems_version: 1.3.5
313
+ rubygems_version: 1.3.6
300
314
  signing_key:
301
315
  specification_version: 3
302
316
  summary: Set of common Ruby language extensions