minitest-line 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/minitest/line_plugin.rb +2 -2
  3. metadata +8 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f044801efcc67afb2b576858ec11a4214e048b0
4
- data.tar.gz: 06d87c3848f4d297a183b7de8196b0acdfd10921
3
+ metadata.gz: f8b35cc08f01022ffca627fc0427e85511661263
4
+ data.tar.gz: 306d959d5b71f9fad694a6b956f59921ea8a9dac
5
5
  SHA512:
6
- metadata.gz: b84f0c75b45d2e31368e0c39b64c047be30937a4e2acdd88c7566f0a7eb0f075b79ef785a39fe55a16b108bf53ec2c8272d428ece2707908478b45ee2a476397
7
- data.tar.gz: e4fe4e0a823e4e7fefe54b661adcc6d268edc106ce758ec6a37454cb41d0d17e53f133ffdb898a7b70fb84dc71a38699517fd89d4cc89924ce0a83398a6a2ad1
6
+ metadata.gz: 25878b6f372f6ac6d80975e591139f5f78eef189032fb2cc643c0c841c8bc888038ee016311293c22a2089b9bfe0da6f46abdbbb205186c6538af6ee5d49c115
7
+ data.tar.gz: cf0d23a81ec907cc631b5e82be832236706359d5a26a063ce3986580cb80e07e46f8037a577b6717295c2ad64b2eeb2d92daea3cf37fd9f40dff2eed3195d9d3
@@ -24,8 +24,8 @@ module Minitest
24
24
 
25
25
  def describes_with_lines(target_file)
26
26
  runnables.map do |runnable|
27
- next unless caller = runnable.instance_variable_get(:@minitest_line_caller)
28
- next unless line = caller.detect { |line| line.include?(target_file) }
27
+ next unless caller = runnable.instance_variable_defined?(:@minitest_line_caller) && runnable.instance_variable_get(:@minitest_line_caller)
28
+ next unless line = caller.detect { |l| l.include?(target_file) }
29
29
  ["/#{Regexp.escape(runnable.name)}/", line[/:(\d+):in/, 1].to_i]
30
30
  end.compact
31
31
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-line
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus Holm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-13 00:00:00.000000000 Z
11
+ date: 2017-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.0'
27
27
  description: Focused tests for Minitest
@@ -42,19 +42,18 @@ require_paths:
42
42
  - lib
43
43
  required_ruby_version: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 2.0.0
48
48
  required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  requirements:
50
- - - ">="
50
+ - - '>='
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  requirements: []
54
54
  rubyforge_project:
55
- rubygems_version: 2.2.2
55
+ rubygems_version: 2.0.14.1
56
56
  signing_key:
57
57
  specification_version: 4
58
58
  summary: Focused tests for Minitest
59
59
  test_files: []
60
- has_rdoc: