sane 0.21.3 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sane.rb +2 -2
- data/lib/sane/assert.rb +2 -0
- data/lib/sane/thread.rb +5 -0
- data/spec/spec.sane.rb +8 -2
- metadata +35 -13
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.22.0
|
data/lib/sane.rb
CHANGED
data/lib/sane/assert.rb
ADDED
data/lib/sane/thread.rb
ADDED
data/spec/spec.sane.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
$:.unshift File.expand_path('../lib')
|
2
2
|
require 'rubygems'
|
3
|
-
require 'fast_require' if RUBY_VERSION >= '1.9'
|
4
3
|
require File.dirname(__FILE__) + '/../lib/sane'
|
5
4
|
require 'spec/autorun'
|
6
5
|
|
@@ -158,5 +157,12 @@ describe Sane do
|
|
158
157
|
it "should have a File.home method" do
|
159
158
|
assert File.home == File.expand_path('~')
|
160
159
|
end
|
161
|
-
|
160
|
+
|
161
|
+
require 'benchmark'
|
162
|
+
|
163
|
+
it "should Thread.join_all_others" do
|
164
|
+
a = Thread.new { sleep 1 }
|
165
|
+
assert Benchmark.realtime{Thread.join_all_others} > 0.5
|
166
|
+
end
|
167
|
+
|
162
168
|
end
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 71
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 22
|
9
|
+
- 0
|
10
|
+
version: 0.22.0
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Roger Pack
|
@@ -9,29 +15,37 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date: 2010-
|
18
|
+
date: 2010-07-06 00:00:00 -06:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: os
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
23
32
|
version: "0"
|
24
|
-
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
25
35
|
- !ruby/object:Gem::Dependency
|
26
36
|
name: andand
|
27
|
-
|
28
|
-
|
29
|
-
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
30
40
|
requirements:
|
31
41
|
- - ">="
|
32
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
33
46
|
version: "0"
|
34
|
-
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
35
49
|
description: Helpers for ruby core to make it easier to work with--things that are missing from core but should arguably be there
|
36
50
|
email:
|
37
51
|
- rogerdpack@gmail.com
|
@@ -54,6 +68,7 @@ files:
|
|
54
68
|
- lib/sane/array_blank.rb
|
55
69
|
- lib/sane/array_contain.rb
|
56
70
|
- lib/sane/array_select_bang.rb
|
71
|
+
- lib/sane/assert.rb
|
57
72
|
- lib/sane/bugs.rb
|
58
73
|
- lib/sane/contain.rb
|
59
74
|
- lib/sane/file.rb
|
@@ -71,6 +86,7 @@ files:
|
|
71
86
|
- lib/sane/string_blank.rb
|
72
87
|
- lib/sane/test.rb
|
73
88
|
- lib/sane/test/assertions.rb
|
89
|
+
- lib/sane/thread.rb
|
74
90
|
- spec/files/pp_after.rb
|
75
91
|
- spec/files/pp_before_hand.rb
|
76
92
|
- spec/files/test.rb
|
@@ -89,21 +105,27 @@ rdoc_options:
|
|
89
105
|
require_paths:
|
90
106
|
- lib
|
91
107
|
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
92
109
|
requirements:
|
93
110
|
- - ">="
|
94
111
|
- !ruby/object:Gem::Version
|
112
|
+
hash: 3
|
113
|
+
segments:
|
114
|
+
- 0
|
95
115
|
version: "0"
|
96
|
-
version:
|
97
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
98
118
|
requirements:
|
99
119
|
- - ">="
|
100
120
|
- !ruby/object:Gem::Version
|
121
|
+
hash: 3
|
122
|
+
segments:
|
123
|
+
- 0
|
101
124
|
version: "0"
|
102
|
-
version:
|
103
125
|
requirements: []
|
104
126
|
|
105
127
|
rubyforge_project:
|
106
|
-
rubygems_version: 1.3.
|
128
|
+
rubygems_version: 1.3.7
|
107
129
|
signing_key:
|
108
130
|
specification_version: 3
|
109
131
|
summary: Helpers for ruby core to make it easier to work with--things that are missing from core but should arguably be there
|