rspec-core 2.99.0.rc1 → 2.99.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e844e3a16636f30f32aa7782e8b28a295dff0d8d
4
- data.tar.gz: 977c3732fb2e92e0b2e4c386ba9819e5cad8da76
5
- SHA512:
6
- metadata.gz: 62510171d1efdfeffe0242cfd863a5bc841b2a6021f98008f1e9858f49511b2a248b656d47aeaacf2d3c361289668f1569e0ab52364c30a662248463402c000b
7
- data.tar.gz: 4a09e1cee3c3b365a6507ad7f33054cddf25c7d55a7bb8db3c09d0a763d65cb138a78ecdf1154e5992e0ab1c5d7bfa6c1deea422c5246836c8a1c6bf481b0aa9
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDVlNDg3NzUxMWY5NDk2MzQ2ZDQyMDhmNWY4YjJmZmEwOTgwMzZiMw==
5
+ data.tar.gz: !binary |-
6
+ MjkzYTI0M2ZkN2IxYzAxYmM1NmY1MWUzYjhmNDY5NGFhNjk0MjZiMA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MzBjODk5ZmU4ZTEzODk0ZmIyMTkwOTFiNWNhZTg2YWU4Yjc5ZjcxN2JkYWFm
10
+ YWE4ODk3YWFkZTkwM2M2NGZlZTFjYjI1ODRmNGIyOWY0YjQ0ZjMwNDhjNTUz
11
+ MDBjZDA3NjI2YWM1NmM2NGVlYzM1ZDE0ZDlmMjVlMmFkZGQ0NTU=
12
+ data.tar.gz: !binary |-
13
+ NTkwMmUxMzViOWE1MjQ2NTMzMTEwZWU1ODY4ODgxYjBlZjdkNjU3ODM2NDc5
14
+ YWRkNjA2M2U0NDE1OWJiOTNiN2E3ZTg3MDk4OTdlOTUwODk2M2JlMzBkZjU1
15
+ ODZlMjY4MjBkNWQ3YzgzMTUzNmJjZTFkMDllNTlkZTBmYjU0YjU=
@@ -1,3 +1,14 @@
1
+ ### 2.99.0 / 2014-06-01
2
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0.rc1...v2.99.0)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix `BaseTextFormatter` so that it does not re-close a closed output
7
+ stream. (Myron Marston)
8
+ * Use `RSpec::Configuration#backtrace_exclusion_patterns` rather than the
9
+ deprecated `RSpec::Configuration#backtrace_clean_patterns` when mocking
10
+ with rr. (David Dollar)
11
+
1
12
  ### 2.99.0.rc1 / 2014-05-18
2
13
  [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.99.0.beta2...v2.99.0.rc1)
3
14
 
@@ -162,7 +162,10 @@ module RSpec
162
162
  end
163
163
 
164
164
  def close
165
- output.close if IO === output && output != $stdout
165
+ return unless IO === output
166
+ return if output.closed? || output == $stdout
167
+
168
+ output.close
166
169
  end
167
170
 
168
171
  def self.const_missing(name)
@@ -1,6 +1,6 @@
1
1
  require 'rr'
2
2
 
3
- RSpec.configuration.backtrace_clean_patterns.push(RR::Errors::BACKTRACE_IDENTIFIER)
3
+ RSpec.configuration.backtrace_exclusion_patterns.push(RR::Errors::BACKTRACE_IDENTIFIER)
4
4
 
5
5
  module RSpec
6
6
  module Core
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Core
3
3
  module Version
4
- STRING = '2.99.0.rc1'
4
+ STRING = '2.99.0'
5
5
  end
6
6
  end
7
7
  end
@@ -5,6 +5,16 @@ describe RSpec::Core::Formatters::BaseTextFormatter do
5
5
  let(:output) { StringIO.new }
6
6
  let(:formatter) { RSpec::Core::Formatters::BaseTextFormatter.new(output) }
7
7
 
8
+ context "when closing the formatter", :isolated_directory => true do
9
+ it 'does not close an already closed output stream' do
10
+ output = File.new("./output_to_close", "w")
11
+ formatter = described_class.new(output)
12
+ output.close
13
+
14
+ expect { formatter.close }.not_to raise_error
15
+ end
16
+ end
17
+
8
18
  describe "#summary_line" do
9
19
  it "with 0s outputs pluralized (excluding pending)" do
10
20
  expect(formatter.summary_line(0,0,0)).to eq("0 examples, 0 failures")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.99.0.rc1
4
+ version: 2.99.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Baker
@@ -10,76 +10,76 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2014-05-18 00:00:00.000000000 Z
13
+ date: 2014-06-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
21
  version: 10.0.0
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - "~>"
26
+ - - ~>
27
27
  - !ruby/object:Gem::Version
28
28
  version: 10.0.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: cucumber
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - ~>
34
34
  - !ruby/object:Gem::Version
35
35
  version: 1.1.9
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - "~>"
40
+ - - ~>
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.1.9
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: minitest
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ~>
48
48
  - !ruby/object:Gem::Version
49
49
  version: '4.7'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - "~>"
54
+ - - ~>
55
55
  - !ruby/object:Gem::Version
56
56
  version: '4.7'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: aruba
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - "~>"
61
+ - - ~>
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0.5'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - "~>"
68
+ - - ~>
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0.5'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: ZenTest
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - "~>"
75
+ - - ~>
76
76
  - !ruby/object:Gem::Version
77
77
  version: '4.6'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - "~>"
82
+ - - ~>
83
83
  - !ruby/object:Gem::Version
84
84
  version: '4.6'
85
85
  - !ruby/object:Gem::Dependency
@@ -114,42 +114,42 @@ dependencies:
114
114
  name: mocha
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - "~>"
117
+ - - ~>
118
118
  - !ruby/object:Gem::Version
119
119
  version: 0.13.0
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - "~>"
124
+ - - ~>
125
125
  - !ruby/object:Gem::Version
126
126
  version: 0.13.0
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: rr
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - "~>"
131
+ - - ~>
132
132
  - !ruby/object:Gem::Version
133
133
  version: 1.0.4
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - "~>"
138
+ - - ~>
139
139
  - !ruby/object:Gem::Version
140
140
  version: 1.0.4
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: flexmock
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - "~>"
145
+ - - ~>
146
146
  - !ruby/object:Gem::Version
147
147
  version: 0.9.0
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - "~>"
152
+ - - ~>
153
153
  - !ruby/object:Gem::Version
154
154
  version: 0.9.0
155
155
  description: BDD for Ruby. RSpec runner and example groups.
@@ -160,13 +160,69 @@ executables:
160
160
  extensions: []
161
161
  extra_rdoc_files: []
162
162
  files:
163
- - ".document"
164
- - ".yardopts"
165
- - Changelog.md
166
- - License.txt
163
+ - lib/autotest/discover.rb
164
+ - lib/autotest/rspec2.rb
165
+ - lib/rspec/autorun.rb
166
+ - lib/rspec/core.rb
167
+ - lib/rspec/core/backtrace_cleaner.rb
168
+ - lib/rspec/core/backward_compatibility.rb
169
+ - lib/rspec/core/caller_filter.rb
170
+ - lib/rspec/core/command_line.rb
171
+ - lib/rspec/core/configuration.rb
172
+ - lib/rspec/core/configuration_options.rb
173
+ - lib/rspec/core/deprecated_mutable_array_proxy.rb
174
+ - lib/rspec/core/deprecation.rb
175
+ - lib/rspec/core/drb_command_line.rb
176
+ - lib/rspec/core/drb_options.rb
177
+ - lib/rspec/core/dsl.rb
178
+ - lib/rspec/core/example.rb
179
+ - lib/rspec/core/example_group.rb
180
+ - lib/rspec/core/extensions/instance_eval_with_args.rb
181
+ - lib/rspec/core/extensions/kernel.rb
182
+ - lib/rspec/core/extensions/module_eval_with_args.rb
183
+ - lib/rspec/core/extensions/ordered.rb
184
+ - lib/rspec/core/filter_manager.rb
185
+ - lib/rspec/core/formatters.rb
186
+ - lib/rspec/core/formatters/base_formatter.rb
187
+ - lib/rspec/core/formatters/base_text_formatter.rb
188
+ - lib/rspec/core/formatters/console_codes.rb
189
+ - lib/rspec/core/formatters/deprecation_formatter.rb
190
+ - lib/rspec/core/formatters/documentation_formatter.rb
191
+ - lib/rspec/core/formatters/helpers.rb
192
+ - lib/rspec/core/formatters/html_formatter.rb
193
+ - lib/rspec/core/formatters/html_printer.rb
194
+ - lib/rspec/core/formatters/json_formatter.rb
195
+ - lib/rspec/core/formatters/progress_formatter.rb
196
+ - lib/rspec/core/formatters/snippet_extractor.rb
197
+ - lib/rspec/core/formatters/text_mate_formatter.rb
198
+ - lib/rspec/core/hooks.rb
199
+ - lib/rspec/core/memoized_helpers.rb
200
+ - lib/rspec/core/metadata.rb
201
+ - lib/rspec/core/metadata_hash_builder.rb
202
+ - lib/rspec/core/minitest_assertions_adapter.rb
203
+ - lib/rspec/core/mocking/with_absolutely_nothing.rb
204
+ - lib/rspec/core/mocking/with_flexmock.rb
205
+ - lib/rspec/core/mocking/with_mocha.rb
206
+ - lib/rspec/core/mocking/with_rr.rb
207
+ - lib/rspec/core/mocking/with_rspec.rb
208
+ - lib/rspec/core/option_parser.rb
209
+ - lib/rspec/core/pending.rb
210
+ - lib/rspec/core/project_initializer.rb
211
+ - lib/rspec/core/rake_task.rb
212
+ - lib/rspec/core/reporter.rb
213
+ - lib/rspec/core/ruby_project.rb
214
+ - lib/rspec/core/runner.rb
215
+ - lib/rspec/core/shared_context.rb
216
+ - lib/rspec/core/shared_example_group.rb
217
+ - lib/rspec/core/shared_example_group/collection.rb
218
+ - lib/rspec/core/test_unit_assertions_adapter.rb
219
+ - lib/rspec/core/version.rb
220
+ - lib/rspec/core/world.rb
167
221
  - README.md
168
- - exe/autospec
169
- - exe/rspec
222
+ - License.txt
223
+ - Changelog.md
224
+ - .yardopts
225
+ - .document
170
226
  - features/Autotest.md
171
227
  - features/README.md
172
228
  - features/Upgrade.md
@@ -233,64 +289,6 @@ files:
233
289
  - features/subject/one_liner_syntax.feature
234
290
  - features/support/env.rb
235
291
  - features/support/rubinius.rb
236
- - lib/autotest/discover.rb
237
- - lib/autotest/rspec2.rb
238
- - lib/rspec/autorun.rb
239
- - lib/rspec/core.rb
240
- - lib/rspec/core/backtrace_cleaner.rb
241
- - lib/rspec/core/backward_compatibility.rb
242
- - lib/rspec/core/caller_filter.rb
243
- - lib/rspec/core/command_line.rb
244
- - lib/rspec/core/configuration.rb
245
- - lib/rspec/core/configuration_options.rb
246
- - lib/rspec/core/deprecated_mutable_array_proxy.rb
247
- - lib/rspec/core/deprecation.rb
248
- - lib/rspec/core/drb_command_line.rb
249
- - lib/rspec/core/drb_options.rb
250
- - lib/rspec/core/dsl.rb
251
- - lib/rspec/core/example.rb
252
- - lib/rspec/core/example_group.rb
253
- - lib/rspec/core/extensions/instance_eval_with_args.rb
254
- - lib/rspec/core/extensions/kernel.rb
255
- - lib/rspec/core/extensions/module_eval_with_args.rb
256
- - lib/rspec/core/extensions/ordered.rb
257
- - lib/rspec/core/filter_manager.rb
258
- - lib/rspec/core/formatters.rb
259
- - lib/rspec/core/formatters/base_formatter.rb
260
- - lib/rspec/core/formatters/base_text_formatter.rb
261
- - lib/rspec/core/formatters/console_codes.rb
262
- - lib/rspec/core/formatters/deprecation_formatter.rb
263
- - lib/rspec/core/formatters/documentation_formatter.rb
264
- - lib/rspec/core/formatters/helpers.rb
265
- - lib/rspec/core/formatters/html_formatter.rb
266
- - lib/rspec/core/formatters/html_printer.rb
267
- - lib/rspec/core/formatters/json_formatter.rb
268
- - lib/rspec/core/formatters/progress_formatter.rb
269
- - lib/rspec/core/formatters/snippet_extractor.rb
270
- - lib/rspec/core/formatters/text_mate_formatter.rb
271
- - lib/rspec/core/hooks.rb
272
- - lib/rspec/core/memoized_helpers.rb
273
- - lib/rspec/core/metadata.rb
274
- - lib/rspec/core/metadata_hash_builder.rb
275
- - lib/rspec/core/minitest_assertions_adapter.rb
276
- - lib/rspec/core/mocking/with_absolutely_nothing.rb
277
- - lib/rspec/core/mocking/with_flexmock.rb
278
- - lib/rspec/core/mocking/with_mocha.rb
279
- - lib/rspec/core/mocking/with_rr.rb
280
- - lib/rspec/core/mocking/with_rspec.rb
281
- - lib/rspec/core/option_parser.rb
282
- - lib/rspec/core/pending.rb
283
- - lib/rspec/core/project_initializer.rb
284
- - lib/rspec/core/rake_task.rb
285
- - lib/rspec/core/reporter.rb
286
- - lib/rspec/core/ruby_project.rb
287
- - lib/rspec/core/runner.rb
288
- - lib/rspec/core/shared_context.rb
289
- - lib/rspec/core/shared_example_group.rb
290
- - lib/rspec/core/shared_example_group/collection.rb
291
- - lib/rspec/core/test_unit_assertions_adapter.rb
292
- - lib/rspec/core/version.rb
293
- - lib/rspec/core/world.rb
294
292
  - spec/autotest/discover_spec.rb
295
293
  - spec/autotest/failed_results_re_spec.rb
296
294
  - spec/autotest/rspec_spec.rb
@@ -360,31 +358,33 @@ files:
360
358
  - spec/support/shared_example_groups.rb
361
359
  - spec/support/silence_dsl_deprecations.rb
362
360
  - spec/support/spec_files.rb
361
+ - exe/autospec
362
+ - exe/rspec
363
363
  homepage: http://github.com/rspec/rspec-core
364
364
  licenses:
365
365
  - MIT
366
366
  metadata: {}
367
367
  post_install_message:
368
368
  rdoc_options:
369
- - "--charset=UTF-8"
369
+ - --charset=UTF-8
370
370
  require_paths:
371
371
  - lib
372
372
  required_ruby_version: !ruby/object:Gem::Requirement
373
373
  requirements:
374
- - - ">="
374
+ - - ! '>='
375
375
  - !ruby/object:Gem::Version
376
376
  version: '0'
377
377
  required_rubygems_version: !ruby/object:Gem::Requirement
378
378
  requirements:
379
- - - ">"
379
+ - - ! '>='
380
380
  - !ruby/object:Gem::Version
381
- version: 1.3.1
381
+ version: '0'
382
382
  requirements: []
383
383
  rubyforge_project: rspec
384
- rubygems_version: 2.2.2
384
+ rubygems_version: 2.0.7
385
385
  signing_key:
386
386
  specification_version: 4
387
- summary: rspec-core-2.99.0.rc1
387
+ summary: rspec-core-2.99.0
388
388
  test_files:
389
389
  - features/Autotest.md
390
390
  - features/README.md