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 +4 -4
- data/Gemfile.lock +13 -13
- data/README.md +5 -1
- data/lib/given/module_methods.rb +5 -1
- data/lib/given/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c2192daced24063b62f217adf7f4678e1494ead3f719b18163f966a3d6b1b8d
|
4
|
+
data.tar.gz: 0d31d574f7a14ae2c0d6604444cbc8f8b9310ddb3944e1b365536558291142ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95982f411402f3fcffba65f5cbfa0f1925fe504af3cf9b1abc0774864a345383d3647ae4da10ccb4071c9a7ffb5dd805ed34daf751b5d0928995dd7ea3ed6792
|
7
|
+
data.tar.gz: 1f0e5b72fee72726667f45d4e7af536218b383dfab8cc964c1905bbebc1e5c57ee890a2cddb13597cd11e27fbed9ffeeeb12d3f5b399014b3226ccea0bb94ed0
|
data/Gemfile.lock
CHANGED
@@ -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.
|
6
|
-
rake (13.0.
|
7
|
-
rspec (3.
|
8
|
-
rspec-core (~> 3.
|
9
|
-
rspec-expectations (~> 3.
|
10
|
-
rspec-mocks (~> 3.
|
11
|
-
rspec-core (3.
|
12
|
-
rspec-support (~> 3.
|
13
|
-
rspec-expectations (3.
|
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.
|
16
|
-
rspec-mocks (3.
|
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.
|
19
|
-
rspec-support (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.
|
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))
|
data/lib/given/module_methods.rb
CHANGED
@@ -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.
|
data/lib/given/version.rb
CHANGED
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.
|
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:
|
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.
|
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.
|