rspec-core 3.7.0 → 3.7.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 +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +7 -2
- data/lib/rspec/core/configuration.rb +30 -0
- data/lib/rspec/core/version.rb +1 -1
- metadata +4 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 82269549116ef3ac8ad256ce6deafa672865194fcdb4b1a194f21e29c6e2bff7
|
4
|
+
data.tar.gz: 20f2bac3761d3b34c947cb1214b50ef3a6b27abddb9d852857f0302a0f84cd5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2acb4568e22713e22debbf548052112e903af5297c6ec8e8be9b9c8c2c657b79eb9c7a2c83efcf9d4366c40f7134bf77ca7eea3ba8f82dd36ac9a554a744e04e
|
7
|
+
data.tar.gz: 9b88592b83c97d497774f0b47fa837c895ffabd7c0e52806d3f8c773c505110e6b1f6f1fa8ae348b1533fde353d07fa803cc1c21511d27748e61147dbd505423
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
-
###
|
2
|
-
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.7.0...
|
1
|
+
### 3.7.1 / 2018-01-02
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.7.0...v3.7.1)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Work around duplicate config hook regression introduced
|
7
|
+
by Ruby 2.5's lazy proc allocation. (Myron Marston, #2497)
|
3
8
|
|
4
9
|
### 3.7.0 / 2017-10-17
|
5
10
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.6.0...v3.7.0)
|
@@ -1810,6 +1810,12 @@ module RSpec
|
|
1810
1810
|
handle_suite_hook(scope, meta) do
|
1811
1811
|
@before_suite_hooks << Hooks::BeforeHook.new(block, {})
|
1812
1812
|
end || begin
|
1813
|
+
# defeat Ruby 2.5 lazy proc allocation to ensure
|
1814
|
+
# the methods below are passed the same proc instances
|
1815
|
+
# so `Hook` equality is preserved. For more info, see:
|
1816
|
+
# https://bugs.ruby-lang.org/issues/14045#note-5
|
1817
|
+
block.__id__
|
1818
|
+
|
1813
1819
|
add_hook_to_existing_matching_groups(meta, scope) { |g| g.before(scope, *meta, &block) }
|
1814
1820
|
super(scope, *meta, &block)
|
1815
1821
|
end
|
@@ -1833,6 +1839,12 @@ module RSpec
|
|
1833
1839
|
handle_suite_hook(scope, meta) do
|
1834
1840
|
@before_suite_hooks.unshift Hooks::BeforeHook.new(block, {})
|
1835
1841
|
end || begin
|
1842
|
+
# defeat Ruby 2.5 lazy proc allocation to ensure
|
1843
|
+
# the methods below are passed the same proc instances
|
1844
|
+
# so `Hook` equality is preserved. For more info, see:
|
1845
|
+
# https://bugs.ruby-lang.org/issues/14045#note-5
|
1846
|
+
block.__id__
|
1847
|
+
|
1836
1848
|
add_hook_to_existing_matching_groups(meta, scope) { |g| g.prepend_before(scope, *meta, &block) }
|
1837
1849
|
super(scope, *meta, &block)
|
1838
1850
|
end
|
@@ -1851,6 +1863,12 @@ module RSpec
|
|
1851
1863
|
handle_suite_hook(scope, meta) do
|
1852
1864
|
@after_suite_hooks.unshift Hooks::AfterHook.new(block, {})
|
1853
1865
|
end || begin
|
1866
|
+
# defeat Ruby 2.5 lazy proc allocation to ensure
|
1867
|
+
# the methods below are passed the same proc instances
|
1868
|
+
# so `Hook` equality is preserved. For more info, see:
|
1869
|
+
# https://bugs.ruby-lang.org/issues/14045#note-5
|
1870
|
+
block.__id__
|
1871
|
+
|
1854
1872
|
add_hook_to_existing_matching_groups(meta, scope) { |g| g.after(scope, *meta, &block) }
|
1855
1873
|
super(scope, *meta, &block)
|
1856
1874
|
end
|
@@ -1874,6 +1892,12 @@ module RSpec
|
|
1874
1892
|
handle_suite_hook(scope, meta) do
|
1875
1893
|
@after_suite_hooks << Hooks::AfterHook.new(block, {})
|
1876
1894
|
end || begin
|
1895
|
+
# defeat Ruby 2.5 lazy proc allocation to ensure
|
1896
|
+
# the methods below are passed the same proc instances
|
1897
|
+
# so `Hook` equality is preserved. For more info, see:
|
1898
|
+
# https://bugs.ruby-lang.org/issues/14045#note-5
|
1899
|
+
block.__id__
|
1900
|
+
|
1877
1901
|
add_hook_to_existing_matching_groups(meta, scope) { |g| g.append_after(scope, *meta, &block) }
|
1878
1902
|
super(scope, *meta, &block)
|
1879
1903
|
end
|
@@ -1883,6 +1907,12 @@ module RSpec
|
|
1883
1907
|
#
|
1884
1908
|
# See {Hooks#around} for full `around` hook docs.
|
1885
1909
|
def around(scope=nil, *meta, &block)
|
1910
|
+
# defeat Ruby 2.5 lazy proc allocation to ensure
|
1911
|
+
# the methods below are passed the same proc instances
|
1912
|
+
# so `Hook` equality is preserved. For more info, see:
|
1913
|
+
# https://bugs.ruby-lang.org/issues/14045#note-5
|
1914
|
+
block.__id__
|
1915
|
+
|
1886
1916
|
add_hook_to_existing_matching_groups(meta, scope) { |g| g.around(scope, *meta, &block) }
|
1887
1917
|
super(scope, *meta, &block)
|
1888
1918
|
end
|
data/lib/rspec/core/version.rb
CHANGED
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: 3.7.
|
4
|
+
version: 3.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Baker
|
@@ -46,7 +46,7 @@ cert_chain:
|
|
46
46
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
47
47
|
F3MdtaDehhjC
|
48
48
|
-----END CERTIFICATE-----
|
49
|
-
date:
|
49
|
+
date: 2018-01-03 00:00:00.000000000 Z
|
50
50
|
dependencies:
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
name: rspec-support
|
@@ -277,9 +277,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
277
|
version: '0'
|
278
278
|
requirements: []
|
279
279
|
rubyforge_project:
|
280
|
-
rubygems_version: 2.
|
280
|
+
rubygems_version: 2.7.3
|
281
281
|
signing_key:
|
282
282
|
specification_version: 4
|
283
|
-
summary: rspec-core-3.7.
|
283
|
+
summary: rspec-core-3.7.1
|
284
284
|
test_files: []
|
285
|
-
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|