given_core 3.8.1 → 3.8.2

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
  SHA256:
3
- metadata.gz: c2ce7ea51dab945a3a92bc7686e17718443f175630d821ae97ef33f6cade7b3d
4
- data.tar.gz: 4aa4fe5f9c3b840ed997bfb2a38893cba1033f0bae87b847345b02bb49261fbb
3
+ metadata.gz: 3c2192daced24063b62f217adf7f4678e1494ead3f719b18163f966a3d6b1b8d
4
+ data.tar.gz: 0d31d574f7a14ae2c0d6604444cbc8f8b9310ddb3944e1b365536558291142ea
5
5
  SHA512:
6
- metadata.gz: 21b1eff320f1304008df96786cdcaa34c2e085a12223258024389c25a5c1d762e1530ecdb6f077aaf1f6e2909905c415878d22b399c57b61dbb0f50ae6948cd2
7
- data.tar.gz: f1786c7a8771b9c535270175090285f93fa5052e8c263ecc629a8951511e8b97f5a47925eb47cbf70d1d0a009707173c1692d1a57eb09b91ef1ee7ca6d141ff3
6
+ metadata.gz: 95982f411402f3fcffba65f5cbfa0f1925fe504af3cf9b1abc0774864a345383d3647ae4da10ccb4071c9a7ffb5dd805ed34daf751b5d0928995dd7ea3ed6792
7
+ data.tar.gz: 1f0e5b72fee72726667f45d4e7af536218b383dfab8cc964c1905bbebc1e5c57ee890a2cddb13597cd11e27fbed9ffeeeb12d3f5b399014b3226ccea0bb94ed0
@@ -2,21 +2,21 @@ GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
4
  diff-lcs (1.4.4)
5
- minitest (5.14.2)
6
- rake (13.0.1)
7
- rspec (3.9.0)
8
- rspec-core (~> 3.9.0)
9
- rspec-expectations (~> 3.9.0)
10
- rspec-mocks (~> 3.9.0)
11
- rspec-core (3.9.3)
12
- rspec-support (~> 3.9.3)
13
- rspec-expectations (3.9.2)
5
+ minitest (5.14.3)
6
+ rake (13.0.3)
7
+ rspec (3.10.0)
8
+ rspec-core (~> 3.10.0)
9
+ rspec-expectations (~> 3.10.0)
10
+ rspec-mocks (~> 3.10.0)
11
+ rspec-core (3.10.1)
12
+ rspec-support (~> 3.10.0)
13
+ rspec-expectations (3.10.1)
14
14
  diff-lcs (>= 1.2.0, < 2.0)
15
- rspec-support (~> 3.9.0)
16
- rspec-mocks (3.9.1)
15
+ rspec-support (~> 3.10.0)
16
+ rspec-mocks (3.10.2)
17
17
  diff-lcs (>= 1.2.0, < 2.0)
18
- rspec-support (~> 3.9.0)
19
- rspec-support (3.9.3)
18
+ rspec-support (~> 3.10.0)
19
+ rspec-support (3.10.2)
20
20
  sorcerer (2.0.1)
21
21
 
22
22
  PLATFORMS
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  | :----: |
5
5
  | [![Master Build Status](https://secure.travis-ci.org/rspec-given/rspec-given.png?branch=master)](https://travis-ci.org/rspec-given/rspec-given) |
6
6
 
7
- Covering rspec-given, minitest-given, and given-core, version 3.8.1.
7
+ Covering rspec-given, minitest-given, and given-core, version 3.8.2.
8
8
 
9
9
  rspec-given and minitest-given are extensions to your favorite testing
10
10
  framework to allow Given/When/Then notation when writing specs.
@@ -882,6 +882,10 @@ License. See the MIT-LICENSE file in the source distribution.
882
882
 
883
883
  # History
884
884
 
885
+ * Version 3.8.1
886
+
887
+ * Fix deprecation warnings fro Ruby 2.6 & up
888
+
885
889
  * Version 3.8.0
886
890
 
887
891
  * RSpec metadata can now be added to _Then_ clauses (see [#11](https://github.com/rspec-given/rspec-given/pull/11))
@@ -32,7 +32,11 @@ module Given
32
32
 
33
33
  # Return file and line number where the block is defined.
34
34
  def self.location_of(block)
35
- block.binding.source_location
35
+ if block.binding.respond_to?(:source_location)
36
+ block.binding.source_location
37
+ else
38
+ eval "[__FILE__, __LINE__]", block.binding
39
+ end
36
40
  end
37
41
 
38
42
  # Methods forwarded to the framework object.
@@ -3,7 +3,7 @@ module Given
3
3
  VERSION_NUMBERS = [
4
4
  VERSION_MAJOR = 3,
5
5
  VERSION_MINOR = 8,
6
- VERSION_BUILD = 1,
6
+ VERSION_BUILD = 2,
7
7
  ]
8
8
  VERSION = VERSION_NUMBERS.join(".")
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: given_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.1
4
+ version: 3.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-05 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorcerer
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubygems_version: 3.1.2
105
+ rubygems_version: 3.1.4
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Core engine for RSpec::Given and Minitest::Given.