mutant 0.7.2 → 0.7.3

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: 90851c1c4c4d7c0f23438bae72fe95f70a680514
4
- data.tar.gz: 7ac31c28d9329ec976bfac638a48a8fe515e3604
3
+ metadata.gz: 8ac2711065200d50b919a3e0856632db7dc1fa0f
4
+ data.tar.gz: 251207d0d61bb193bb431efd2f4ef4fb771bde09
5
5
  SHA512:
6
- metadata.gz: ab96c53e2d7ded947c58742c06bb5934b1b0f17437fefbe9e510d9ce25a7aea422d115aa420fc0538bd23260b2fd85c20d4aa25cb84e8f82362f08d8156f28c5
7
- data.tar.gz: db2ace76cbabbb97d18a0a32cfc75f7ad3a014424bf4b3ae52b566f38bf47fe3ff8929edcaf31776390fc52bc9c5a2d42323c6be26fc8c617067179977edeb9a
6
+ metadata.gz: ddbdc1636dd452296e90a2ccc2ccbe29910782e95bfb3560d21b93501ec499cfa0b5d0fbb722a650ec57edd021cbbfc0afdbc6ca1f434c7f33069575e3343efd
7
+ data.tar.gz: 5f371e23cc9676661cb58ae10cd78bce3176a1fe23e01d741a6b0833eb3d3e908f7bfecd93032ac6ed84ac3dd1c962d725156b731e9c6b4480a657d450012033
@@ -1,3 +1,7 @@
1
+ # v0.7.3 2014-12-09
2
+
3
+ * Fix communication between workers and killworks to work for all binaries.
4
+
1
5
  # v0.7.2 2014-12-08
2
6
 
3
7
  * Fix synthetic race conditon in actor implementation
@@ -38,7 +38,7 @@ module Mutant
38
38
  # @api private
39
39
  #
40
40
  def self.call(&block)
41
- reader, writer = IO.pipe
41
+ reader, writer = IO.pipe.map(&:binmode)
42
42
 
43
43
  pid = Process.fork do
44
44
  File.open('/dev/null', 'w') do |file|
@@ -55,10 +55,10 @@ module Mutant
55
55
  #
56
56
  # TODO: Move this to a callback registration
57
57
  #
58
- # Reporters other than CLI that might exist in futures
59
- # may only the final report. So providing a noop callback
60
- # registration makes more sense than. As only CLI reporters
61
- # exist currently I do not really care right now.
58
+ # Reporters other than CLI that might exist in future
59
+ # may only need the final report. So providing a noop callback
60
+ # registration makes more sense for these.
61
+ # As only CLI reporters exist currently I do not really care right now.
62
62
  #
63
63
  # @return [Float]
64
64
  #
@@ -1,4 +1,4 @@
1
1
  module Mutant
2
2
  # The current mutant version
3
- VERSION = '0.7.2'.freeze
3
+ VERSION = '0.7.3'.freeze
4
4
  end # Mutant
@@ -40,7 +40,7 @@ RSpec.describe Mutant::Isolation::Fork do
40
40
  end
41
41
 
42
42
  it 'wraps exceptions' do
43
- expect { object.call { fail } }.to raise_error(Mutant::Isolation::Error)
43
+ expect { object.call { fail } }.to raise_error(Mutant::Isolation::Error, 'marshal data too short')
44
44
  end
45
45
 
46
46
  it 'wraps exceptions caused by crashing ruby' do
@@ -64,11 +64,11 @@ RSpec.describe Mutant::Isolation::Fork do
64
64
  end
65
65
  end
66
66
 
67
- # Spec stubbing out the fork to ensure all lines are covered
68
- # with expectations
69
- it 'covers all lines' do
67
+ it 'uses primitives in correct order when fork succeeds' do
70
68
  reader, writer = double('reader'), double('writer')
71
69
  expect(IO).to receive(:pipe).ordered.and_return([reader, writer])
70
+ expect(reader).to receive(:binmode).and_return(reader).ordered
71
+ expect(writer).to receive(:binmode).and_return(writer).ordered
72
72
  pid = double('PID')
73
73
  expect(Process).to receive(:fork).ordered.and_yield.and_return(pid)
74
74
  file = double('file')
@@ -83,5 +83,18 @@ RSpec.describe Mutant::Isolation::Fork do
83
83
 
84
84
  expect(object.call { :foo }).to be(:foo)
85
85
  end
86
+
87
+ it 'uses primitives in correct order when fork fails' do
88
+ reader, writer = double('reader'), double('writer')
89
+ expect(IO).to receive(:pipe).ordered.and_return([reader, writer])
90
+ expect(reader).to receive(:binmode).and_return(reader).ordered
91
+ expect(writer).to receive(:binmode).and_return(writer).ordered
92
+ expect(Process).to receive(:fork).ordered.and_return(nil)
93
+ expect(Process).to_not receive(:waitpid)
94
+
95
+ expect(writer).to receive(:close).ordered
96
+ expect(reader).to receive(:read).ordered.and_return(Marshal.dump(:foo))
97
+ expect(object.call).to be(:foo)
98
+ end
86
99
  end
87
100
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
@@ -14,230 +14,230 @@ dependencies:
14
14
  name: parser
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.2.pre.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.2.pre.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ast
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: diff-lcs
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: parallel
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.3'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: morpher
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.2.3
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.2.3
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: procto
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.0.2
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.0.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: abstract_type
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: 0.0.7
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.0.7
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: unparser
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.1.16
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.1.16
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: ice_nine
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: 0.11.1
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.11.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: adamantium
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
145
  version: 0.2.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.2.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: memoizable
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ~>
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
159
  version: 0.4.2
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ~>
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: 0.4.2
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: equalizer
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ~>
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
173
  version: 0.0.9
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ~>
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: 0.0.9
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: anima
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ~>
185
+ - - "~>"
186
186
  - !ruby/object:Gem::Version
187
187
  version: 0.2.0
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ~>
192
+ - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: 0.2.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: concord
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ~>
199
+ - - "~>"
200
200
  - !ruby/object:Gem::Version
201
201
  version: 0.1.5
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ~>
206
+ - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: 0.1.5
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: bundler
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ~>
213
+ - - "~>"
214
214
  - !ruby/object:Gem::Version
215
215
  version: '1.3'
216
- - - '>='
216
+ - - ">="
217
217
  - !ruby/object:Gem::Version
218
218
  version: 1.3.5
219
219
  type: :development
220
220
  prerelease: false
221
221
  version_requirements: !ruby/object:Gem::Requirement
222
222
  requirements:
223
- - - ~>
223
+ - - "~>"
224
224
  - !ruby/object:Gem::Version
225
225
  version: '1.3'
226
- - - '>='
226
+ - - ">="
227
227
  - !ruby/object:Gem::Version
228
228
  version: 1.3.5
229
229
  - !ruby/object:Gem::Dependency
230
230
  name: ffi
231
231
  requirement: !ruby/object:Gem::Requirement
232
232
  requirements:
233
- - - ~>
233
+ - - "~>"
234
234
  - !ruby/object:Gem::Version
235
235
  version: 1.9.6
236
236
  type: :development
237
237
  prerelease: false
238
238
  version_requirements: !ruby/object:Gem::Requirement
239
239
  requirements:
240
- - - ~>
240
+ - - "~>"
241
241
  - !ruby/object:Gem::Version
242
242
  version: 1.9.6
243
243
  description: Mutation testing for ruby
@@ -250,11 +250,11 @@ extra_rdoc_files:
250
250
  - TODO
251
251
  - LICENSE
252
252
  files:
253
- - .gitignore
254
- - .rspec
255
- - .rubocop.yml
256
- - .ruby-gemset
257
- - .travis.yml
253
+ - ".gitignore"
254
+ - ".rspec"
255
+ - ".rubocop.yml"
256
+ - ".ruby-gemset"
257
+ - ".travis.yml"
258
258
  - Changelog.md
259
259
  - Gemfile
260
260
  - Gemfile.devtools
@@ -544,17 +544,17 @@ require_paths:
544
544
  - lib
545
545
  required_ruby_version: !ruby/object:Gem::Requirement
546
546
  requirements:
547
- - - '>='
547
+ - - ">="
548
548
  - !ruby/object:Gem::Version
549
549
  version: 2.0.0
550
550
  required_rubygems_version: !ruby/object:Gem::Requirement
551
551
  requirements:
552
- - - '>='
552
+ - - ">="
553
553
  - !ruby/object:Gem::Version
554
554
  version: '0'
555
555
  requirements: []
556
556
  rubyforge_project:
557
- rubygems_version: 2.0.14
557
+ rubygems_version: 2.2.2
558
558
  signing_key:
559
559
  specification_version: 4
560
560
  summary: Mutation testing tool for ruby under MRI and Rubinius
@@ -615,4 +615,3 @@ test_files:
615
615
  - spec/unit/mutant/subject_spec.rb
616
616
  - spec/unit/mutant/warning_filter_spec.rb
617
617
  - spec/unit/mutant_spec.rb
618
- has_rdoc: