minitest-reporters 1.0.8 → 1.0.9

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: c5b61b265a409a4a0c2869a91d36ad9816f4240c
4
- data.tar.gz: 92092cf854a5e58aaa6139f422c46614ae4027ce
3
+ metadata.gz: 803976a6ef7059a363142b42a84bfa5dd0a38d5e
4
+ data.tar.gz: e9b5b59529b2e7466f76d77a5dbb2e1ae4b5d615
5
5
  SHA512:
6
- metadata.gz: 9b50a9509cbcfa54235e68b1c33b462c2fca2357590a87088165fd02c5017b1d7180fa1b261d354ecc9fb8ab2522c171de21dfbb8feb3430706bf63f21f9a06b
7
- data.tar.gz: f50c070ba8392915cb2b830f95d942a3aeb80821fbc4f862f6f9a9c7fc5087cf3eacf3d2f69bd0d8dec06fb59dda5b931ba621ec6b6622e69053148c52966d17
6
+ metadata.gz: d620cefda362bbe7c7ecb356fc7a769c70ee93b3c1c4fb0efb0c45cba45bf2f73bd6c1535342936b9c906f568031da85229c3a08e651d6353992e0c75001df93
7
+ data.tar.gz: d6904bad1c42746bac96a82a1afa8b1f96110956bf257298d85bf1988099b8d7d9303c961efd318638b5a3559fc702d8f17dff440802d883738d0071515a4c32
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ end
10
10
  rubymine_home = [
11
11
  ENV["RUBYMINE_HOME"],
12
12
  "../rubymine-contrib/ruby-testing/src/rb/testing/patch/common",
13
- "/Applications/RubyMine.app/rb/testing/patch/common",
13
+ "/Applications/RubyMine.app/Contents/rb/testing/patch/common",
14
14
  ].compact.detect { |d| Dir.exist?(d) }
15
15
 
16
16
  Rake::TestTask.new("test:gallery") do |t|
@@ -7,6 +7,7 @@ module Minitest
7
7
  module Reporters
8
8
  require "minitest/reporters/version"
9
9
 
10
+ autoload :ANSI, "minitest/reporters/ansi"
10
11
  autoload :BaseReporter, "minitest/reporters/base_reporter"
11
12
  autoload :DefaultReporter, "minitest/reporters/default_reporter"
12
13
  autoload :SpecReporter, "minitest/reporters/spec_reporter"
@@ -0,0 +1,24 @@
1
+ module Minitest
2
+ module Reporters
3
+ module ANSI
4
+ module Code
5
+ if ($stdin.tty?)
6
+ require 'ansi/code'
7
+
8
+ include ::ANSI::Code
9
+ extend ::ANSI::Code
10
+ else
11
+ def black(s = nil)
12
+ block_given? ? yield : s
13
+ end
14
+
15
+ %w[ red green yellow blue magenta cyan white ].each do |color|
16
+ alias_method color, :black
17
+ end
18
+
19
+ extend self
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,5 +1,3 @@
1
- require 'ansi/code'
2
-
3
1
  module Minitest
4
2
  module Reporters
5
3
  # A reporter identical to the standard Minitest reporter except with more
@@ -8,7 +6,9 @@ module Minitest
8
6
  # Based upon Ryan Davis of Seattle.rb's Minitest (MIT License).
9
7
  #
10
8
  # @see https://github.com/seattlerb/minitest Minitest
9
+
11
10
  class DefaultReporter < BaseReporter
11
+ include ANSI::Code
12
12
  include RelativePosition
13
13
 
14
14
  def initialize(options = {})
@@ -1,4 +1,3 @@
1
- require 'ansi/code'
2
1
  require 'builder'
3
2
  require 'fileutils'
4
3
  module Minitest
@@ -1,4 +1,3 @@
1
- require 'ansi/code'
2
1
  require 'ruby-progressbar'
3
2
 
4
3
  module Minitest
@@ -1,5 +1,3 @@
1
- require 'ansi/code'
2
-
3
1
  module Minitest
4
2
  module Reporters
5
3
  # Simple reporter designed for RubyMate.
@@ -1,7 +1,6 @@
1
1
  # Test results reporter for RubyMine IDE (http://www.jetbrains.com/ruby/) and
2
2
  # TeamCity(http://www.jetbrains.com/teamcity/) Continuous Integration Server
3
3
 
4
- require 'ansi/code'
5
4
  begin
6
5
  require 'teamcity/runner_common'
7
6
  require 'teamcity/utils/service_message_factory'
@@ -1,5 +1,3 @@
1
- require 'ansi/code'
2
-
3
1
  module Minitest
4
2
  module Reporters
5
3
  # Turn-like reporter that reads like a spec.
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Reporters
3
- VERSION = '1.0.8'
3
+ VERSION = '1.0.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-reporters
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-24 00:00:00.000000000 Z
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -117,6 +117,7 @@ files:
117
117
  - lib/minitest/old_activesupport_fix.rb
118
118
  - lib/minitest/relative_position.rb
119
119
  - lib/minitest/reporters.rb
120
+ - lib/minitest/reporters/ansi.rb
120
121
  - lib/minitest/reporters/base_reporter.rb
121
122
  - lib/minitest/reporters/default_reporter.rb
122
123
  - lib/minitest/reporters/junit_reporter.rb
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  version: '0'
153
154
  requirements: []
154
155
  rubyforge_project: minitest-reporters
155
- rubygems_version: 2.2.2
156
+ rubygems_version: 2.4.4
156
157
  signing_key:
157
158
  specification_version: 4
158
159
  summary: Create customizable Minitest output formats