spectus 2.9.0 → 2.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f1486affdd6feecdb555121c32c11c69a448e96
4
- data.tar.gz: 4bd260c2f0295db5d5ffd7ecde20144be6509308
3
+ metadata.gz: ff23d3bdd10601a3c52063d4f757a9d06cd82041
4
+ data.tar.gz: 8696fa07b80141829bb7f17af5d1be7dde4d913c
5
5
  SHA512:
6
- metadata.gz: ba367974543e1325be7846b697aa7f14766e1135ecf95f6d7b3af0fd1bed4cd7b805274b85f26b5d5f97b5af29e30c6d5c829cd6635817dcecc8a4bbbf2e5589
7
- data.tar.gz: 33ed94ab7562d3ecfb0ca19c1efcac1b153bcfee782078fe1b166692bd5770a1803b3fe44823a01b59cfb1060ab1329735b37f0dfa1be16bf48c81e5f4a8f7b1
6
+ metadata.gz: 851aa0faafecbcb42c0c43fc64cf08032d51ec8e420c7498932995725736b192206a09f16de7d43607860f95f597ad75f98f511f547dbe7ee556745132908636
7
+ data.tar.gz: e33540869c597f4c37267b8a04af64834b4b526bd39e5554c488f2bd9e112f6e0e00a4a891e742dc792256e328ef4bbeccd74bec4dcb88ca398d9e6e7fffa829
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/.rubocop_todo.yml CHANGED
@@ -1,12 +1,12 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2015-10-13 23:48:38 +0200 using RuboCop version 0.34.2.
3
+ # on 2015-10-14 23:15:17 +0200 using RuboCop version 0.34.2.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 4
9
+ # Offense count: 3
10
10
  # Configuration parameters: CountComments.
11
11
  Metrics/MethodLength:
12
12
  Max: 12
data/VERSION.semver CHANGED
@@ -1 +1 @@
1
- 2.9.0
1
+ 2.9.1
@@ -0,0 +1 @@
1
+ 8be8b787e6553812a4962e801cb64268d81f45e74b4cfd7f5383b6a4335fe69df1de46c6fe4b4894c5133bacd413d4a038bd057ddf8fabe63552dac7a024036a
@@ -1,3 +1,5 @@
1
+ require 'aw'
2
+
1
3
  module Spectus
2
4
  # Namespace for the requirement levels.
3
5
  #
@@ -88,32 +90,13 @@ module Spectus
88
90
  #
89
91
  # @return [Sandbox] The sandbox.
90
92
  def sandbox(isolation)
91
- isolation ? fork_and_return { execute } : execute
93
+ isolation ? Aw.fork! { execute } : execute
92
94
  end
93
95
 
94
96
  # @return [Sandbox] The sandbox.
95
97
  def execute
96
98
  Sandbox.new(req, negate?, subject, *challenges)
97
99
  end
98
-
99
- # Run the code in a separate process.
100
- #
101
- # @yieldreturn [Sandbox] Execute the untested code in the sandbox.
102
- def fork_and_return
103
- read, write = IO.pipe
104
-
105
- pid = fork do
106
- read.close
107
- result = yield
108
- Marshal.dump(result, write)
109
- exit!(0)
110
- end
111
-
112
- write.close
113
- result = read.read
114
- Process.wait(pid)
115
- Marshal.load(result)
116
- end
117
100
  end
118
101
  end
119
102
  end
data/spectus.gemspec CHANGED
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
15
15
  spec.require_paths = ['lib']
16
16
 
17
+ spec.add_dependency 'aw', '~> 0.1.0'
17
18
  spec.add_dependency 'defi', '~> 1.1.0'
18
19
  spec.add_dependency 'matchi', '~> 0.0.9'
19
20
 
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.9.0
4
+ version: 2.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Wack
@@ -30,8 +30,22 @@ cert_chain:
30
30
  dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
31
31
  0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
32
32
  -----END CERTIFICATE-----
33
- date: 2015-10-13 00:00:00.000000000 Z
33
+ date: 2015-10-14 00:00:00.000000000 Z
34
34
  dependencies:
35
+ - !ruby/object:Gem::Dependency
36
+ name: aw
37
+ requirement: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: 0.1.0
42
+ type: :runtime
43
+ prerelease: false
44
+ version_requirements: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: 0.1.0
35
49
  - !ruby/object:Gem::Dependency
36
50
  name: defi
37
51
  requirement: !ruby/object:Gem::Requirement
@@ -169,6 +183,7 @@ files:
169
183
  - checksum/spectus-2.7.0.gem.sha512
170
184
  - checksum/spectus-2.7.1.gem.sha512
171
185
  - checksum/spectus-2.8.0.gem.sha512
186
+ - checksum/spectus-2.9.0.gem.sha512
172
187
  - lib/spectus.rb
173
188
  - lib/spectus/expectation_target.rb
174
189
  - lib/spectus/report.rb
metadata.gz.sig CHANGED
Binary file