minitest-reporters-pride_reporter 0.0.1 → 0.0.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
  SHA1:
3
- metadata.gz: ae0487beb0516e7bd9cd6bec352f868c2d2aba21
4
- data.tar.gz: b40583b74bbdb51094ed9fcb8f46e8972de8db52
3
+ metadata.gz: b3ee73828a00e7996e73f31d28ea833ddfeda7c1
4
+ data.tar.gz: bc547cf4db256e36594fc00cb2ae3089dd678c32
5
5
  SHA512:
6
- metadata.gz: a96eed336c7f45fcda31b3cecd0acc11050b4a7e6cf8931a572c84d1d2c5d41a1c15684d8c1084a46b71404bc51eef679f2b2246f19fc8b7662a08a7bdd6bb39
7
- data.tar.gz: 995446d621fe9d7d9447978e5b4edd2883a018d1286641882935e545347574c19e44052236cc4c3cb290854d82f56e89d7bc7fdf48bd377593eeb0103fcf435c
6
+ metadata.gz: 920a040dd6404a9cbe2e6b51c0f33f88d746562b6947cdcd2f1af5bab729c33ff242e848c7ce097ddba3bc934d8f7104d8d6ae421cd6a40595278419e8f5c0a2
7
+ data.tar.gz: 9e77d4666b65676dd41d1339c9a25fe9ce0023f443530716d11daf9522dbd9ba738470068b1ef8497bd1e27c684d141193b03ad5995d47d445ba98e276acf59e
@@ -1 +1,28 @@
1
- require 'minitest/reporters/pride_reporter/version'
1
+ require 'minitest/reporters'
2
+ require 'minitest/pride_plugin'
3
+
4
+ module Minitest::Reporters
5
+ class PrideReporter < DefaultReporter
6
+ VERSION = '0.0.2'
7
+
8
+ def initialize(options = {})
9
+ super
10
+ @pride_io = Minitest::PrideLOL.new($stdout)
11
+ end
12
+
13
+ def record(test)
14
+ # Bypass super and call super's super
15
+ self.class.superclass.superclass
16
+ .instance_method(:record).bind(self).call(test)
17
+
18
+ print "#{"%.2f" % test.time} = " if options[:verbose]
19
+
20
+ @pride_io.print(test.result_code)
21
+
22
+ if @fast_fail && (test.skipped? || test.failure)
23
+ puts
24
+ print_failure(test)
25
+ end
26
+ end
27
+ end
28
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-reporters-pride_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - '["Josh Bodah"]'
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-18 00:00:00.000000000 Z
11
+ date: 2015-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest-reporters
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1'
27
55
  description: Love minitest-pride but wish it had all of the features of minitest-reporters?
28
56
  This is for you!
29
57
  email: jb3689@yahoo.com
@@ -32,7 +60,6 @@ extensions: []
32
60
  extra_rdoc_files: []
33
61
  files:
34
62
  - lib/minitest/reporters/pride_reporter.rb
35
- - lib/minitest/reporters/pride_reporter/version.rb
36
63
  homepage: https://github.com/jbodah/minitest-reporters-pride_reporter
37
64
  licenses:
38
65
  - MIT
@@ -1,7 +0,0 @@
1
- module Minitest
2
- module Reporters
3
- module PrideReporter
4
- VERSION = '0.0.1'
5
- end
6
- end
7
- end