spectus 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Rakefile +1 -0
- data/VERSION.semver +1 -1
- data/checksum/spectus-2.6.0.gem.sha512 +1 -0
- data/checksum/spectus-2.7.0.gem.sha512 +1 -0
- data/lib/spectus/level/base.rb +24 -1
- metadata +5 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07c8c866806313aa6dd76d20cd16a210b7ec463e
|
4
|
+
data.tar.gz: 7230d480f8eeee4c7f4250585c17ce39dd5ee2f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4a66a9f0cfba508da590e374f0ad5fe14a79ab15afe4e4a4208f3f0b44c2d09f530e9d9a40cfc27eed059d0786b9561a4af2fcf3c6faba1d81e5e54629789cf
|
7
|
+
data.tar.gz: 15274e958e2909d61f4ef169ff5a9847b8f262aa4540ab3581a966d5380820c3316ae956244763bcf58fbdea16d4c18a40b7677251c987a00ccc8cb962e35ee0
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Rakefile
CHANGED
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.1
|
@@ -0,0 +1 @@
|
|
1
|
+
607b21ae08001de99938bf1bd144f94ffb5767630b2a5837c772af592e76bf376db3d0fd4116fc71f3038dba886c5c222411a03c4745e9cffe1678d631a408a5
|
@@ -0,0 +1 @@
|
|
1
|
+
aaf1870fb4733bcef6834cd11a1f7c08b28e7fc2eb28b6cc7b6eaedb505a122396b23158b0891d246f1b983e96818c7b1fb143f2b56bb8e3f0d259c1a09a6f75
|
data/lib/spectus/level/base.rb
CHANGED
@@ -65,7 +65,11 @@ module Spectus
|
|
65
65
|
|
66
66
|
# @return [Sandbox] The sandbox.
|
67
67
|
def sandbox
|
68
|
-
|
68
|
+
if Process.respond_to?(:fork)
|
69
|
+
fork_and_return { Sandbox.new(@req, @negate, @subject, *@challenges) }
|
70
|
+
else
|
71
|
+
Sandbox.new(@req, @negate, @subject, *@challenges)
|
72
|
+
end
|
69
73
|
end
|
70
74
|
|
71
75
|
# @param state [Sandbox] The sandbox that tested the code.
|
@@ -120,6 +124,25 @@ module Spectus
|
|
120
124
|
.tr('-_', ' ')
|
121
125
|
.downcase
|
122
126
|
end
|
127
|
+
|
128
|
+
# Run the code in a separate process.
|
129
|
+
#
|
130
|
+
# @api private
|
131
|
+
def fork_and_return
|
132
|
+
read, write = IO.pipe
|
133
|
+
|
134
|
+
pid = fork do
|
135
|
+
read.close
|
136
|
+
result = yield
|
137
|
+
Marshal.dump(result, write)
|
138
|
+
exit!(0)
|
139
|
+
end
|
140
|
+
|
141
|
+
write.close
|
142
|
+
result = read.read
|
143
|
+
Process.wait(pid)
|
144
|
+
Marshal.load(result)
|
145
|
+
end
|
123
146
|
end
|
124
147
|
end
|
125
148
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Wack
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
|
31
31
|
0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-09
|
33
|
+
date: 2015-10-09 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: defi
|
@@ -164,6 +164,8 @@ files:
|
|
164
164
|
- checksum/spectus-2.3.1.gem.sha512
|
165
165
|
- checksum/spectus-2.4.0.gem.sha512
|
166
166
|
- checksum/spectus-2.5.0.gem.sha512
|
167
|
+
- checksum/spectus-2.6.0.gem.sha512
|
168
|
+
- checksum/spectus-2.7.0.gem.sha512
|
167
169
|
- lib/spectus.rb
|
168
170
|
- lib/spectus/expectation_target.rb
|
169
171
|
- lib/spectus/level/base.rb
|
@@ -196,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
198
|
version: '0'
|
197
199
|
requirements: []
|
198
200
|
rubyforge_project:
|
199
|
-
rubygems_version: 2.4.5
|
201
|
+
rubygems_version: 2.4.5
|
200
202
|
signing_key:
|
201
203
|
specification_version: 4
|
202
204
|
summary: Expectation library with RFC 2119 keywords.
|
metadata.gz.sig
CHANGED
Binary file
|