rspec-support 3.10.1 → 3.10.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0be846a7cb6f9beea5cfef26b956941bb7f8d484eb3e64108b5048cfa59faca9
4
- data.tar.gz: 97080c0ee2193acce8355f57c01da00c61cd8bd0b71e09339362fbf95d6f2409
3
+ metadata.gz: f7b30f3003419ac0253a0804a457ff3d9fc97309c7eafb345aa9e94e379352d8
4
+ data.tar.gz: fbacd747f72cb8bc4e06af5559e48150065d0a32580c73744dcc2355c2f6aa9b
5
5
  SHA512:
6
- metadata.gz: 3e1527304c7ce880144c856172bb15096fdf927e068bbded2891b159232e0f0270d72bc7c3c08bddc7dc816bf2f9160198d7c76c1ea7d4a685ad40434932a202
7
- data.tar.gz: 3d1919d9e66ce31692ce339d506a500972f42e6f1c2e01c48f0353902d44d0655dea3546067908ae3e47f875cd214b3460d73a477ff12fba2bde658104890706
6
+ metadata.gz: eb71f6ad88d243a87719fb8aa5f7ba383f090920d8bb3df0b2da859d07d99fc9e3641f92ef6b94ee68d216b7056667406bd216256c35a8db72a62bd6f81d993c
7
+ data.tar.gz: 07eae42126cc684e1c925bed6a19c1137522a7e5a694ed16cae8162fa166737d9266d3d22f32088789f062e4892f4203aa996c0d1c0dc11efe927c0e34188085
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,11 @@
1
+ ### 3.10.2 / 2021-01-28
2
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.1...v3.10.2)
3
+
4
+ Bug Fixes:
5
+
6
+ * Fix issue with `RSpec::Support.define_optimized_require_for_rspec` on JRuby
7
+ 9.1.17.0 (Jon Rowe, #492)
8
+
1
9
  ### 3.10.1 / 2020-12-27
2
10
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.0...v3.10.1)
3
11
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # RSpec::Support
1
+ # RSpec::Support [![Build Status](https://github.com/rspec/rspec-support/workflows/RSpec%20CI/badge.svg?branch=3-10-maintenance)](https://github.com/rspec/rspec-support/actions)
2
2
 
3
3
  `RSpec::Support` provides common functionality to `RSpec::Core`,
4
4
  `RSpec::Expectations` and `RSpec::Mocks`. It is considered
@@ -14,7 +14,12 @@ module RSpec
14
14
  def self.define_optimized_require_for_rspec(lib, &require_relative)
15
15
  name = "require_rspec_#{lib}"
16
16
 
17
- if Kernel.respond_to?(:require_relative)
17
+ if RUBY_PLATFORM == 'java' && !Kernel.respond_to?(:require)
18
+ # JRuby 9.1.17.0 has developed a regression for require
19
+ (class << self; self; end).__send__(:define_method, name) do |f|
20
+ Kernel.send(:require, "rspec/#{lib}/#{f}")
21
+ end
22
+ elsif Kernel.respond_to?(:require_relative)
18
23
  (class << self; self; end).__send__(:define_method, name) do |f|
19
24
  require_relative.call("#{lib}/#{f}")
20
25
  end
@@ -65,8 +65,8 @@ module RSpec
65
65
 
66
66
  def self.start_simplecov(&block)
67
67
  SimpleCov.start do
68
- add_filter "./bundle/"
69
- add_filter "./tmp/"
68
+ add_filter "bundle/"
69
+ add_filter "tmp/"
70
70
  add_filter do |source_file|
71
71
  # Filter out `spec` directory except when it is under `lib`
72
72
  # (as is the case in rspec-support)
@@ -92,7 +92,7 @@ module RSpec
92
92
  if Ruby.jruby?
93
93
  def filter(output)
94
94
  output.each_line.reject do |line|
95
- line.include?("lib/ruby/shared/rubygems/defaults/jruby")
95
+ line.include?("lib/ruby/shared/rubygems")
96
96
  end.join($/)
97
97
  end
98
98
  else
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Support
3
3
  module Version
4
- STRING = '3.10.1'
4
+ STRING = '3.10.2'
5
5
  end
6
6
  end
7
7
  end
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.1
4
+ version: 3.10.2
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-12-27 00:00:00.000000000 Z
51
+ date: 2021-01-28 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.1/Changelog.md
128
+ changelog_uri: https://github.com/rspec/rspec-support/blob/v3.10.2/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.2.3
148
+ rubygems_version: 3.2.4
149
149
  signing_key:
150
150
  specification_version: 4
151
- summary: rspec-support-3.10.1
151
+ summary: rspec-support-3.10.2
152
152
  test_files: []
metadata.gz.sig CHANGED
Binary file