top_tests 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: e7dda877ea636154577883b27d5d45909ace9d6c
4
- data.tar.gz: 13d749b4704108b1bde1ed72e682b0d5d1acc7b9
3
+ metadata.gz: c6500236650bc3f1c6babb8f418a2bcc79f50c4d
4
+ data.tar.gz: 6828b2b696aabce0d0de989cec4e61f216bf9e5e
5
5
  SHA512:
6
- metadata.gz: cd223c0d87ed0f7a3823ba5e22d7459efc5a9764ed25b4b3af26b9ba1f56dbdd4d4aa0fe0f29eb1b81a36e53415716c39d5736445245a73bdf52b2e0f54eee9d
7
- data.tar.gz: 2e019d6d355d95d76effcdc54eeca92e332179732a39ba44c44ceb072d25db6cafb3f07503366d4d6cfe47c629aaf9c0358415922e3dfbd57008d356cadc7e35
6
+ metadata.gz: 4a75e5a94e7ca70f614408d4fc059ae64b91ec16c6269cfe76a0924b0df403933bbfb8d474d88fd84e650c99373794438e712afb73553258bfd0ecf635675cf8
7
+ data.tar.gz: ca955f0edf7fa624230c54bb72558fd89e65119fe1e28b5c142a05283e708e5e02f1e96cc496d4f0288492e6b66ef926814f9c5e5212607ec0b6ffa55fe4f4e2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- top_tests (0.0.3)
4
+ top_tests (0.0.4)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -2,7 +2,7 @@
2
2
 
3
3
  module TopTests
4
4
 
5
- VERSION = '0.0.4'.freeze
5
+ VERSION = "0.0.5".freeze
6
6
 
7
7
  end
8
8
 
data/lib/top_tests.rb CHANGED
@@ -22,9 +22,10 @@ module TopTests
22
22
 
23
23
  def after_teardown
24
24
  super
25
- if @timer_started_at # Unset when a setup hook fails before top test.
26
- name = self.class.to_s + '#' + @__name__
27
- self.class.tests_durations << [name, Time.now - @timer_started_at]
25
+ if @timer_started_at # Unset when a setup hook fails before top test.
26
+ # Instance variable @__name__ is used prior to minitest 5.
27
+ test_name = "#{self.class}##{@__name__ || name}"
28
+ self.class.tests_durations << [test_name, Time.now - @timer_started_at]
28
29
  end
29
30
  end
30
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: top_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Bernard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-04 00:00:00.000000000 Z
11
+ date: 2014-05-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Top tests lists the 10 slowest tests after execution
14
14
  email:
@@ -17,7 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - .gitignore
20
+ - ".gitignore"
21
21
  - Gemfile
22
22
  - Gemfile.lock
23
23
  - LICENSE
@@ -38,17 +38,17 @@ require_paths:
38
38
  - lib
39
39
  required_ruby_version: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
44
  required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  requirements: []
50
50
  rubyforge_project:
51
- rubygems_version: 2.0.0.rc.2
51
+ rubygems_version: 2.2.1
52
52
  signing_key:
53
53
  specification_version: 4
54
54
  summary: Top tests lists the 10 slowest tests after execution