rspec-support 3.10.0 → 3.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +10 -0
- data/lib/rspec/support/ruby_features.rb +3 -2
- data/lib/rspec/support/spec.rb +3 -3
- data/lib/rspec/support/spec/deprecation_helpers.rb +13 -29
- data/lib/rspec/support/spec/shell_out.rb +7 -2
- data/lib/rspec/support/version.rb +1 -1
- metadata +5 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0be846a7cb6f9beea5cfef26b956941bb7f8d484eb3e64108b5048cfa59faca9
|
4
|
+
data.tar.gz: 97080c0ee2193acce8355f57c01da00c61cd8bd0b71e09339362fbf95d6f2409
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e1527304c7ce880144c856172bb15096fdf927e068bbded2891b159232e0f0270d72bc7c3c08bddc7dc816bf2f9160198d7c76c1ea7d4a685ad40434932a202
|
7
|
+
data.tar.gz: 3d1919d9e66ce31692ce339d506a500972f42e6f1c2e01c48f0353902d44d0655dea3546067908ae3e47f875cd214b3460d73a477ff12fba2bde658104890706
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,8 +1,18 @@
|
|
1
|
+
### 3.10.1 / 2020-12-27
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.0...v3.10.1)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Fix deprecation expectations to fail correctly when
|
7
|
+
asserting on messages. (Phil Pirozhkov, #453)
|
8
|
+
|
1
9
|
### 3.10.0 / 2020-10-30
|
10
|
+
[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.4...v3.10.0)
|
2
11
|
|
3
12
|
No changes. Released to support other RSpec releases.
|
4
13
|
|
5
14
|
### 3.9.4 / 2020-10-23
|
15
|
+
[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.3...v3.9.4)
|
6
16
|
|
7
17
|
Bug Fixes:
|
8
18
|
|
@@ -60,7 +60,7 @@ module RSpec
|
|
60
60
|
module RubyFeatures
|
61
61
|
module_function
|
62
62
|
|
63
|
-
if Ruby.jruby?
|
63
|
+
if Ruby.jruby? && RUBY_VERSION.to_f < 1.9
|
64
64
|
# On JRuby 1.7 `--1.8` mode, `Process.respond_to?(:fork)` returns true,
|
65
65
|
# but when you try to fork, it raises an error:
|
66
66
|
# NotImplementedError: fork is not available on this platform
|
@@ -111,7 +111,8 @@ module RSpec
|
|
111
111
|
ripper_requirements.push(Ruby.jruby_version >= '1.7.5')
|
112
112
|
# Ripper on JRuby 9.0.0.0.rc1 - 9.1.8.0 reports wrong line number
|
113
113
|
# or cannot parse source including `:if`.
|
114
|
-
# Ripper on JRuby 9.x.x.x < 9.
|
114
|
+
# Ripper on JRuby 9.x.x.x < 9.1.17.0 can't handle keyword arguments
|
115
|
+
# Neither can JRuby 9.2, e.g. < 9.2.1.0
|
115
116
|
ripper_requirements.push(!Ruby.jruby_version.between?('9.0.0.0.rc1', '9.2.0.0'))
|
116
117
|
end
|
117
118
|
|
data/lib/rspec/support/spec.rb
CHANGED
@@ -36,9 +36,9 @@ RSpec.configure do |c|
|
|
36
36
|
|
37
37
|
c.example_status_persistence_file_path = "./spec/examples.txt"
|
38
38
|
|
39
|
-
c.define_derived_metadata :
|
40
|
-
meta[:pending] ||= "This spec fails on
|
41
|
-
end if ENV['
|
39
|
+
c.define_derived_metadata :failing_on_windows_ci do |meta|
|
40
|
+
meta[:pending] ||= "This spec fails on Windows CI and needs someone to fix it."
|
41
|
+
end if RSpec::Support::OS.windows? && ENV['CI']
|
42
42
|
end
|
43
43
|
|
44
44
|
module RSpec
|
@@ -1,35 +1,22 @@
|
|
1
1
|
module RSpecHelpers
|
2
|
-
def expect_no_deprecation
|
3
|
-
expect(RSpec.configuration.reporter).not_to receive(:deprecation)
|
4
|
-
end
|
5
|
-
|
6
2
|
def expect_deprecation_with_call_site(file, line, snippet=//)
|
7
|
-
expect(RSpec.configuration.reporter).to receive(:deprecation)
|
8
|
-
|
9
|
-
expect(options[:deprecated]).to match(snippet)
|
10
|
-
end
|
3
|
+
expect(RSpec.configuration.reporter).to receive(:deprecation).
|
4
|
+
with(include(:deprecated => match(snippet), :call_site => include([file, line].join(':'))))
|
11
5
|
end
|
12
6
|
|
13
7
|
def expect_deprecation_without_call_site(snippet=//)
|
14
|
-
expect(RSpec.configuration.reporter).to receive(:deprecation)
|
15
|
-
|
16
|
-
expect(options[:deprecated]).to match(snippet)
|
17
|
-
end
|
8
|
+
expect(RSpec.configuration.reporter).to receive(:deprecation).
|
9
|
+
with(include(:deprecated => match(snippet), :call_site => eq(nil)))
|
18
10
|
end
|
19
11
|
|
20
12
|
def expect_warn_deprecation_with_call_site(file, line, snippet=//)
|
21
|
-
expect(RSpec.configuration.reporter).to receive(:deprecation)
|
22
|
-
message
|
23
|
-
expect(message).to match(snippet)
|
24
|
-
expect(message).to include([file, line].join(':'))
|
25
|
-
end
|
13
|
+
expect(RSpec.configuration.reporter).to receive(:deprecation).
|
14
|
+
with(include(:message => match(snippet), :call_site => include([file, line].join(':'))))
|
26
15
|
end
|
27
16
|
|
28
17
|
def expect_warn_deprecation(snippet=//)
|
29
|
-
expect(RSpec.configuration.reporter).to receive(:deprecation)
|
30
|
-
message
|
31
|
-
expect(message).to match(snippet)
|
32
|
-
end
|
18
|
+
expect(RSpec.configuration.reporter).to receive(:deprecation).
|
19
|
+
with(include(:message => match(snippet)))
|
33
20
|
end
|
34
21
|
|
35
22
|
def allow_deprecation
|
@@ -39,19 +26,16 @@ module RSpecHelpers
|
|
39
26
|
def expect_no_deprecations
|
40
27
|
expect(RSpec.configuration.reporter).not_to receive(:deprecation)
|
41
28
|
end
|
29
|
+
alias expect_no_deprecation expect_no_deprecations
|
42
30
|
|
43
31
|
def expect_warning_without_call_site(expected=//)
|
44
|
-
expect(::Kernel).to receive(:warn)
|
45
|
-
|
46
|
-
expect(message).to_not match(/Called from/)
|
47
|
-
end
|
32
|
+
expect(::Kernel).to receive(:warn).
|
33
|
+
with(match(expected).and(satisfy { |message| !(/Called from/ =~ message) }))
|
48
34
|
end
|
49
35
|
|
50
36
|
def expect_warning_with_call_site(file, line, expected=//)
|
51
|
-
expect(::Kernel).to receive(:warn)
|
52
|
-
|
53
|
-
expect(message).to match(/Called from #{file}:#{line}/)
|
54
|
-
end
|
37
|
+
expect(::Kernel).to receive(:warn).
|
38
|
+
with(match(expected).and(match(/Called from #{file}:#{line}/)))
|
55
39
|
end
|
56
40
|
|
57
41
|
def expect_no_warnings
|
@@ -59,7 +59,7 @@ module RSpec
|
|
59
59
|
%r{bundler/source/rubygems},
|
60
60
|
# Ignore bundler + rubygems warning.
|
61
61
|
%r{site_ruby/\d\.\d\.\d/rubygems},
|
62
|
-
%r{jruby-\d\.\d\.\d
|
62
|
+
%r{jruby-\d\.\d\.\d+\.\d/lib/ruby/stdlib/rubygems},
|
63
63
|
# This is required for windows for some reason
|
64
64
|
%r{lib/bundler/rubygems},
|
65
65
|
# This is a JRuby file that generates warnings on 9.0.3.0
|
@@ -70,8 +70,13 @@ module RSpec
|
|
70
70
|
%r{ffi-1\.13\.\d+-java},
|
71
71
|
%r{uninitialized constant FFI},
|
72
72
|
# These are related to the above, there is a warning about io from FFI
|
73
|
-
%r{jruby-\d\.\d\.\d
|
73
|
+
%r{jruby-\d\.\d\.\d+\.\d/lib/ruby/stdlib/io},
|
74
74
|
%r{io/console on JRuby shells out to stty for most operations},
|
75
|
+
# This is a JRuby 9.1.17.0 error on Github Actions
|
76
|
+
%r{io/console not supported; tty will not be manipulated},
|
77
|
+
# This is a JRuby 9.2.1.x error
|
78
|
+
%r{jruby/kernel/gem_prelude},
|
79
|
+
%r{lib/jruby\.jar!/jruby/preludes},
|
75
80
|
]
|
76
81
|
|
77
82
|
def strip_known_warnings(input)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.10.
|
4
|
+
version: 3.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chelimsky
|
@@ -48,7 +48,7 @@ cert_chain:
|
|
48
48
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
49
49
|
F3MdtaDehhjC
|
50
50
|
-----END CERTIFICATE-----
|
51
|
-
date: 2020-
|
51
|
+
date: 2020-12-27 00:00:00.000000000 Z
|
52
52
|
dependencies:
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: rake
|
@@ -125,7 +125,7 @@ licenses:
|
|
125
125
|
- MIT
|
126
126
|
metadata:
|
127
127
|
bug_tracker_uri: https://github.com/rspec/rspec-support/issues
|
128
|
-
changelog_uri: https://github.com/rspec/rspec-support/blob/v3.10.
|
128
|
+
changelog_uri: https://github.com/rspec/rspec-support/blob/v3.10.1/Changelog.md
|
129
129
|
documentation_uri: https://rspec.info/documentation/
|
130
130
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
131
131
|
source_code_uri: https://github.com/rspec/rspec-support
|
@@ -145,8 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.2.3
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
|
-
summary: rspec-support-3.10.
|
151
|
+
summary: rspec-support-3.10.1
|
152
152
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|