minitest-rg 5.2.0 → 5.3.0

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
- SHA1:
3
- metadata.gz: d9825d9cc159787573b131d1a9ae84ee7c46de09
4
- data.tar.gz: defc0b98eb914f3d623bcabad02077f2a18d4664
2
+ SHA256:
3
+ metadata.gz: 51456eb04e86f229b8cd70613c2d933927d63f7b6336314dbc0b19f93a75bbe6
4
+ data.tar.gz: 356b290fe5e524c65e173db06988b73abf1679f6b03f8386be4add89f9b9e924
5
5
  SHA512:
6
- metadata.gz: bec6b3d7e472a548ac161a6b447090a37d112a859b519538c06d9b2b8fcbf0c04609bff2886fb45b95ddff9d1851fecc77d75fb513beaa62a004129b43f7cf97
7
- data.tar.gz: 87564ac1867c848343371cb82b01302107f6f9426923a6f2cd65b2f712fbfb8128c2347f0831622273c987a3fb131a5e75faf308abf68e5b6bf13b94a8d3d868
6
+ metadata.gz: 79060f30f6ce4609a91c52a5f049f5a04b0b361839f405dd50c564b667dfe57f088daa046658dd73cab483936faa08984b4516a03156c3adf85c643ec35b6069
7
+ data.tar.gz: 568de8ebd5a63fdd652ef493bebfd5fea298423bd9d072c504933248446159dac4fe05e96b28c6cb500a69cbeaa7789d1e244118caef95bbf27952aa2d1c1d27
data/.autotest CHANGED
@@ -1,8 +1,8 @@
1
1
  # -*- ruby -*-
2
2
 
3
- require 'autotest/restart'
3
+ require "autotest/restart"
4
4
 
5
5
  Autotest.add_hook :initialize do |at|
6
- at.testlib = 'minitest/autorun'
6
+ at.testlib = "minitest/autorun"
7
7
  at.find_directories = ARGV unless ARGV.empty?
8
8
  end
data/.rubocop.yml ADDED
@@ -0,0 +1,29 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ SuggestExtensions: false
4
+ TargetRubyVersion: 2.7
5
+ Exclude:
6
+ - "doc/**/*"
7
+ - "pkg/**/*"
8
+ - "vendor/**/*"
9
+ - "minitest-rg.gemspec"
10
+ - "Rakefile"
11
+ - "Gemfile"
12
+
13
+
14
+ Layout/SpaceAroundOperators:
15
+ Enabled: false
16
+ Metrics/AbcSize:
17
+ Max: 25
18
+ Metrics/CyclomaticComplexity:
19
+ Max: 10
20
+ Metrics/MethodLength:
21
+ Max: 15
22
+ Style/Documentation:
23
+ Enabled: false
24
+ Metrics/PerceivedComplexity:
25
+ Max: 10
26
+ Style/MethodDefParentheses:
27
+ EnforcedStyle: require_no_parentheses
28
+ Style/StringLiterals:
29
+ EnforcedStyle: double_quotes
data/CHANGELOG.rdoc CHANGED
@@ -1,4 +1,10 @@
1
- === 5.2.0 / 2014-04-16
1
+ === 5.3.0 / 2023-10-31
2
+
3
+ Add +--no-rg+ flag. (grosser)
4
+
5
+ Fix loading issue on newer Minitest versions. (zenspider/dazuma)
6
+
7
+ === 5.2.0 / 2015-08-14
2
8
 
3
9
  Only output red/green colors when TTY is supported. (cbougher)
4
10
  Add +--rg+ flag.
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
- source "http://rubygems.org"
1
+ # frozen_string_literal: true
2
2
 
3
- gem "minitest", "~> 5.0"
4
- gem "hoe", "~> 3.11", :group => :development
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
data/Manifest.txt CHANGED
@@ -1,5 +1,6 @@
1
1
  .autotest
2
2
  .gemtest
3
+ .rubocop.yml
3
4
  CHANGELOG.rdoc
4
5
  Gemfile
5
6
  LICENSE
@@ -9,4 +10,8 @@ Rakefile
9
10
  lib/minitest/rg.rb
10
11
  lib/minitest/rg_plugin.rb
11
12
  minitest-rg.gemspec
12
- test/test_minitest-rg.rb
13
+ scripts/run_error
14
+ scripts/run_fail
15
+ scripts/run_pass
16
+ scripts/run_skip
17
+ test/test_rg.rb
data/README.rdoc CHANGED
@@ -1,5 +1,11 @@
1
1
  = minitest-rg
2
2
 
3
+ home :: https://github.com/minitest/minitest-rg
4
+ bugs :: https://github.com/minitest/minitest-rg/issues
5
+
6
+ {rdoc-image:https://github.com/minitest/minitest-rg/actions/workflows/ci.yml/badge.svg}[https://github.com/minitest/minitest-rg/actions/workflows/ci.yml]
7
+ {rdoc-image:https://github.com/minitest/minitest-rg/actions/workflows/github-code-scanning/codeql/badge.svg}[https://github.com/minitest/minitest-rg/actions/workflows/github-code-scanning/codeql]
8
+
3
9
  Adds red/green color to your Minitest output.
4
10
 
5
11
  == Install
@@ -20,13 +26,23 @@ Or if you are using a rake task to run your tests you can set the `--rg` flag in
20
26
 
21
27
  $ rake test TESTOPTS="--rg"
22
28
 
23
- == Contribute
29
+ == Get Involved
30
+
31
+ Join the Github discussions to get help or offer suggestions:
32
+
33
+ https://github.com/minitest/minitest-rg/discussions
34
+
35
+ Report bugs by opening an issue:
36
+
37
+ https://github.com/minitest/minitest-rg/issues
38
+
39
+ Contribute changes by creating a pull request:
24
40
 
25
- http://github.com/blowmage/minitest-rg
41
+ https://github.com/minitest/minitest-rg/pulls
26
42
 
27
43
  == License
28
44
 
29
- Copyright (c) 2012 Mike Moore
45
+ Copyright (c) 2023 Mike Moore
30
46
 
31
47
  Permission is hereby granted, free of charge, to any person obtaining
32
48
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,24 +1,70 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # -*- ruby -*-
2
4
 
3
- require 'rubygems'
4
- require 'hoe'
5
+ require "rubygems"
6
+ require "hoe"
5
7
 
6
8
  Hoe.plugin :gemspec # `gem install hoe-gemspec`
7
9
  Hoe.plugin :git # `gem install hoe-git`
8
10
  Hoe.plugin :minitest # `gem install hoe-minitest`
9
11
 
10
- Hoe.spec 'minitest-rg' do
11
- developer 'Mike Moore', 'mike@blowmage.com'
12
+ Hoe.spec "minitest-rg" do
13
+ developer "Mike Moore", "mike@blowmage.com"
12
14
 
13
- self.summary = 'Red/Green for MiniTest'
14
- self.description = 'Colored red/green output for Minitest'
15
- self.urls = ['http://blowmage.com/minitest-rg']
16
- self.license "MIT"
15
+ self.summary = "Red/Green for Minitest"
16
+ self.description = "Colored red/green output for Minitest"
17
+ license "MIT"
17
18
 
18
- self.readme_file = 'README.rdoc'
19
- self.history_file = 'CHANGELOG.rdoc'
19
+ self.readme_file = "README.rdoc"
20
+ self.history_file = "CHANGELOG.rdoc"
20
21
 
21
- dependency 'minitest', '~> 5.0'
22
+ dependency "minitest", "~> 5.0"
23
+ dependency "rubocop", "~> 1.57.0", :dev
22
24
  end
23
25
 
24
26
  # vim: syntax=ruby
27
+
28
+ desc "Run all test type scripts"
29
+ task :sanity do
30
+ puts "="*72
31
+ puts "Running a \e[32mpassing\e[0m test:"
32
+ puts "="*72
33
+ puts
34
+ puts capture_output("pass")
35
+ puts
36
+
37
+ puts "="*72
38
+ puts "Running a \e[31mfailing\e[0m test:"
39
+ puts "="*72
40
+ puts
41
+ puts capture_output("fail")
42
+ puts
43
+
44
+ puts "="*72
45
+ puts "Running a \e[33merroring\e[0m test:"
46
+ puts "="*72
47
+ puts
48
+ puts capture_output("error")
49
+ puts
50
+
51
+ puts "="*72
52
+ puts "Running a \e[36mskipped\e[0m test:"
53
+ puts "="*72
54
+ puts
55
+ puts capture_output("skip")
56
+ puts
57
+ end
58
+
59
+ def capture_output command
60
+ os = `uname -s`.chomp
61
+ if os.include?("BSD") || os.include?("Darwin")
62
+ `script -q /dev/null ./scripts/run_#{command}`
63
+ else
64
+ `script -q -c ./scripts/run_#{command} /dev/null`
65
+ end
66
+ end
67
+
68
+ require "rubocop/rake_task"
69
+
70
+ RuboCop::RakeTask.new
data/lib/minitest/rg.rb CHANGED
@@ -1,4 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "minitest"
2
4
 
3
5
  Minitest.load_plugins
4
- Minitest::RG.rg!
6
+ Minitest::RG.rg! color: $stdout.tty?
@@ -1,37 +1,36 @@
1
- require "minitest/test"
1
+ # frozen_string_literal: true
2
2
 
3
- module MiniTest
3
+ require "minitest"
4
4
 
5
- def self.plugin_rg_options opts, options # :nodoc:
6
- opts.on "--rg", "Add red/green to test output." do
7
- RG.rg!
5
+ module Minitest
6
+ def self.plugin_rg_options opts, _options # :nodoc:
7
+ opts.on "--[no-]rg", "Add red/green to test output." do |bool|
8
+ RG.rg! color: bool
8
9
  end
9
10
  end
10
11
 
11
12
  def self.plugin_rg_init options # :nodoc:
12
- if RG.rg?
13
- io = RG.new options[:io]
13
+ return unless RG.rg?
14
14
 
15
- self.reporter.reporters.grep(Minitest::Reporter).each do |rep|
16
- rep.io = io if rep.io.tty?
17
- end
18
- end
15
+ io = RG.new options[:io]
16
+
17
+ reporter.reporters.grep(Minitest::Reporter).each { |rep| rep.io = io }
19
18
  end
20
19
 
21
20
  class RG
22
- VERSION = "5.2.0"
21
+ VERSION = "5.3.0"
23
22
 
24
23
  COLORS = {
25
- '.' => "\e[32m.\e[0m",
26
- 'E' => "\e[33mE\e[0m",
27
- 'F' => "\e[31mF\e[0m",
28
- 'S' => "\e[36mS\e[0m",
29
- }
24
+ "." => "\e[32m.\e[0m",
25
+ "E" => "\e[33mE\e[0m",
26
+ "F" => "\e[31mF\e[0m",
27
+ "S" => "\e[36mS\e[0m"
28
+ }.freeze
30
29
 
31
30
  attr_reader :io, :colors
32
31
 
33
- def self.rg!
34
- @rg = true
32
+ def self.rg! color: true
33
+ @rg = color
35
34
  end
36
35
 
37
36
  def self.rg?
@@ -43,26 +42,34 @@ module MiniTest
43
42
  @colors = colors
44
43
  end
45
44
 
46
- def print o
47
- io.print(colors[o] || o)
45
+ def print output
46
+ io.print(colors[output] || output)
48
47
  end
49
48
 
50
- def puts o=nil
51
- return io.puts if o.nil?
52
- if o =~ /(\d+) failures, (\d+) errors/
53
- if $1 != '0' || $2 != '0'
54
- io.puts "\e[31m#{o}\e[0m"
49
+ def puts output = nil
50
+ return io.puts if output.nil?
51
+
52
+ if output =~ /(\d+) failures, (\d+) errors/
53
+ if Regexp.last_match[1] != "0" || Regexp.last_match[2] != "0"
54
+ io.puts "\e[31m#{output}\e[0m"
55
55
  else
56
- io.puts "\e[32m#{o}\e[0m"
56
+ io.puts "\e[32m#{output}\e[0m"
57
57
  end
58
58
  else
59
- io.puts o
59
+ io.puts output
60
60
  end
61
61
  end
62
62
 
63
63
  def method_missing msg, *args
64
- return super unless io.respond_to? msg
65
- io.send(msg, *args)
64
+ return io.send(msg, *args) if io.respond_to? msg
65
+
66
+ super
67
+ end
68
+
69
+ def respond_to_missing? method_name, include_all = false
70
+ return true if io.respond_to? method_name, include_all
71
+
72
+ super
66
73
  end
67
74
  end
68
75
  end
data/minitest-rg.gemspec CHANGED
@@ -1,40 +1,29 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: minitest-rg 5.1.0.20140416094215 ruby lib
2
+ # stub: minitest-rg 5.3.0.20231031004948 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.name = "minitest-rg"
6
- s.version = "5.1.0.20140416094215"
5
+ s.name = "minitest-rg".freeze
6
+ s.version = "5.3.0.20231031004948"
7
7
 
8
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
- s.require_paths = ["lib"]
10
- s.authors = ["Mike Moore"]
11
- s.date = "2014-04-16"
12
- s.description = "Adds color to your MiniTest output"
13
- s.email = ["mike@blowmage.com"]
14
- s.extra_rdoc_files = ["CHANGELOG.rdoc", "Manifest.txt", "README.rdoc"]
15
- s.files = [".autotest", ".gemtest", "CHANGELOG.rdoc", "Gemfile", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "lib/minitest/rg.rb", "lib/minitest/rg_plugin.rb", "minitest-rg.gemspec", "test/test_minitest-rg.rb"]
16
- s.homepage = "http://blowmage.com/minitest-rg"
17
- s.licenses = ["MIT"]
18
- s.rdoc_options = ["--main", "README.rdoc"]
19
- s.rubygems_version = "2.2.2"
20
- s.summary = "RedGreen for MiniTest"
21
- s.test_files = ["test/test_minitest-rg.rb"]
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
+ s.metadata = { "bug_tracker_uri" => "https://github.com/minitest/minitest-rg/issues", "homepage_uri" => "https://github.com/minitest/minitest-rg" } if s.respond_to? :metadata=
10
+ s.require_paths = ["lib".freeze]
11
+ s.authors = ["Mike Moore".freeze]
12
+ s.date = "2023-10-31"
13
+ s.description = "Colored red/green output for Minitest".freeze
14
+ s.email = ["mike@blowmage.com".freeze]
15
+ s.extra_rdoc_files = ["CHANGELOG.rdoc".freeze, "Manifest.txt".freeze, "README.rdoc".freeze]
16
+ s.files = [".autotest".freeze, ".gemtest".freeze, ".rubocop.yml".freeze, "CHANGELOG.rdoc".freeze, "Gemfile".freeze, "LICENSE".freeze, "Manifest.txt".freeze, "README.rdoc".freeze, "Rakefile".freeze, "lib/minitest/rg.rb".freeze, "lib/minitest/rg_plugin.rb".freeze, "minitest-rg.gemspec".freeze, "scripts/run_error".freeze, "scripts/run_fail".freeze, "scripts/run_pass".freeze, "scripts/run_skip".freeze, "test/test_rg.rb".freeze]
17
+ s.homepage = "https://github.com/minitest/minitest-rg".freeze
18
+ s.licenses = ["MIT".freeze]
19
+ s.rdoc_options = ["--main".freeze, "README.rdoc".freeze]
20
+ s.rubygems_version = "3.4.12".freeze
21
+ s.summary = "Red/Green for Minitest".freeze
22
22
 
23
- if s.respond_to? :specification_version then
24
- s.specification_version = 4
23
+ s.specification_version = 4
25
24
 
26
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
- s.add_runtime_dependency(%q<minitest>, ["~> 5.0"])
28
- s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
29
- s.add_development_dependency(%q<hoe>, ["~> 3.11"])
30
- else
31
- s.add_dependency(%q<minitest>, ["~> 5.0"])
32
- s.add_dependency(%q<rdoc>, ["~> 4.0"])
33
- s.add_dependency(%q<hoe>, ["~> 3.11"])
34
- end
35
- else
36
- s.add_dependency(%q<minitest>, ["~> 5.0"])
37
- s.add_dependency(%q<rdoc>, ["~> 4.0"])
38
- s.add_dependency(%q<hoe>, ["~> 3.11"])
39
- end
25
+ s.add_runtime_dependency(%q<minitest>.freeze, ["~> 5.0"])
26
+ s.add_development_dependency(%q<rubocop>.freeze, ["~> 1.57.0"])
27
+ s.add_development_dependency(%q<rdoc>.freeze, [">= 4.0", "< 7"])
28
+ s.add_development_dependency(%q<hoe>.freeze, ["~> 4.0"])
40
29
  end
data/scripts/run_error ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ gem "minitest"
5
+ require "minitest/autorun"
6
+
7
+ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
8
+ require "minitest/rg"
9
+
10
+ class TestPass < Minitest::Test
11
+ def test_error
12
+ raise "Error should be YELLOW"
13
+ end
14
+ end
data/scripts/run_fail ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ gem "minitest"
5
+ require "minitest/autorun"
6
+
7
+ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
8
+ require "minitest/rg"
9
+
10
+ class TestPass < Minitest::Test
11
+ def test_fail
12
+ assert_equal 1, 2, "Failure should be RED"
13
+ end
14
+ end
data/scripts/run_pass ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ gem "minitest"
5
+ require "minitest/autorun"
6
+
7
+ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
8
+ require "minitest/rg"
9
+
10
+ class TestPass < Minitest::Test
11
+ def test_pass
12
+ assert_equal 1, 1, "Pass should be GREEN"
13
+ end
14
+ end
data/scripts/run_skip ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ gem "minitest"
5
+ require "minitest/autorun"
6
+
7
+ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
8
+ require "minitest/rg"
9
+
10
+ class TestPass < Minitest::Test
11
+ def test_skip
12
+ skip "Skip should be CYAN"
13
+ end
14
+ end
data/test/test_rg.rb ADDED
@@ -0,0 +1,79 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/setup"
4
+
5
+ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
6
+
7
+ require "minitest/autorun"
8
+ require "minitest/rg"
9
+
10
+ class TestRG < Minitest::Test
11
+ def test_pass_is_green
12
+ output = capture_output "pass"
13
+
14
+ exp_dot = "\e[32m.\e[0m"
15
+ exp_sum = "\e[32m1 runs, 1 assertions, 0 failures, 0 errors, 0 skips\e[0m"
16
+
17
+ assert_match exp_dot, output, "Passing tests are GREEN"
18
+ assert_match exp_sum, output, "Passing summary is GREEN"
19
+ end
20
+
21
+ def test_fail_is_red
22
+ output = capture_output "fail"
23
+
24
+ exp_dot = "\e[31mF\e[0m"
25
+ exp_sum = "\e[31m1 runs, 1 assertions, 1 failures, 0 errors, 0 skips\e[0m"
26
+
27
+ assert_match exp_dot, output, "Failing tests are RED"
28
+ assert_match exp_sum, output, "Failing summary is RED"
29
+ end
30
+
31
+ def test_error_is_yellow
32
+ output = capture_output "error"
33
+
34
+ exp_dot = "\e[33mE\e[0m"
35
+ exp_sum = "\e[31m1 runs, 0 assertions, 0 failures, 1 errors, 0 skips\e[0m"
36
+
37
+ assert_match exp_dot, output, "Erroring tests are YELLOW"
38
+ assert_match exp_sum, output, "Erroring summary is YELLOW"
39
+ end
40
+
41
+ def test_skip_is_cyan
42
+ output = capture_output "skip"
43
+
44
+ exp_dot = "\e[36mS\e[0m"
45
+ exp_sum = "\e[32m1 runs, 0 assertions, 0 failures, 0 errors, 1 skips\r\n" \
46
+ "\r\nYou have skipped tests. Run with --verbose for details.\e[0m"
47
+
48
+ assert_match exp_dot, output, "Skipped tests are CYAN"
49
+ assert_match exp_sum, output, "Skipped summary is CYAN"
50
+ end
51
+
52
+ def test_no_colors_via_option
53
+ output = capture_output "no_color"
54
+ assert_includes output, "\n1 runs"
55
+ end
56
+
57
+ def test_force_colors_via_option
58
+ output = capture_output "color", tty: false
59
+ assert_includes output, "\n\e[32m1 runs"
60
+ end
61
+
62
+ def test_no_color_without_tty
63
+ output = capture_output "pass", tty: false
64
+ assert_includes output, "\n1 runs"
65
+ end
66
+
67
+ def capture_output command, tty: true
68
+ if tty
69
+ os = `uname -s`.chomp
70
+ if os.include?("BSD") || os.include?("Darwin")
71
+ `script -q /dev/null ./scripts/run_#{command}`
72
+ else
73
+ `script -q -c ./scripts/run_#{command} /dev/null`
74
+ end
75
+ else
76
+ `scripts/run_#{command} </dev/null`
77
+ end
78
+ end
79
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rg
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-14 00:00:00.000000000 Z
11
+ date: 2023-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -25,33 +25,53 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rdoc
28
+ name: rubocop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.0'
33
+ version: 1.57.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.57.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rdoc
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
39
46
  - !ruby/object:Gem::Version
40
47
  version: '4.0'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '7'
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '4.0'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '7'
41
61
  - !ruby/object:Gem::Dependency
42
62
  name: hoe
43
63
  requirement: !ruby/object:Gem::Requirement
44
64
  requirements:
45
65
  - - "~>"
46
66
  - !ruby/object:Gem::Version
47
- version: '3.13'
67
+ version: '4.0'
48
68
  type: :development
49
69
  prerelease: false
50
70
  version_requirements: !ruby/object:Gem::Requirement
51
71
  requirements:
52
72
  - - "~>"
53
73
  - !ruby/object:Gem::Version
54
- version: '3.13'
74
+ version: '4.0'
55
75
  description: Colored red/green output for Minitest
56
76
  email:
57
77
  - mike@blowmage.com
@@ -64,6 +84,7 @@ extra_rdoc_files:
64
84
  files:
65
85
  - ".autotest"
66
86
  - ".gemtest"
87
+ - ".rubocop.yml"
67
88
  - CHANGELOG.rdoc
68
89
  - Gemfile
69
90
  - LICENSE
@@ -73,12 +94,18 @@ files:
73
94
  - lib/minitest/rg.rb
74
95
  - lib/minitest/rg_plugin.rb
75
96
  - minitest-rg.gemspec
76
- - test/test_minitest-rg.rb
77
- homepage: http://blowmage.com/minitest-rg
97
+ - scripts/run_error
98
+ - scripts/run_fail
99
+ - scripts/run_pass
100
+ - scripts/run_skip
101
+ - test/test_rg.rb
102
+ homepage: https://github.com/minitest/minitest-rg
78
103
  licenses:
79
104
  - MIT
80
- metadata: {}
81
- post_install_message:
105
+ metadata:
106
+ homepage_uri: https://github.com/minitest/minitest-rg
107
+ bug_tracker_uri: https://github.com/minitest/minitest-rg/issues
108
+ post_install_message:
82
109
  rdoc_options:
83
110
  - "--main"
84
111
  - README.rdoc
@@ -95,9 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
122
  - !ruby/object:Gem::Version
96
123
  version: '0'
97
124
  requirements: []
98
- rubyforge_project:
99
- rubygems_version: 2.4.6
100
- signing_key:
125
+ rubygems_version: 3.4.12
126
+ signing_key:
101
127
  specification_version: 4
102
- summary: Red/Green for MiniTest
128
+ summary: Red/Green for Minitest
103
129
  test_files: []
@@ -1,25 +0,0 @@
1
- gem "minitest"
2
- require 'minitest/autorun'
3
- require 'minitest/rg'
4
-
5
- describe 'minitest-rg' do
6
- # generate passing
7
- it "passes" do
8
- assert_equal 1, 1, "Pass should be GREEN"
9
- end
10
-
11
- # generate failing
12
- it "fails" do
13
- assert_equal 1, 2, "Failure should be RED"
14
- end
15
-
16
- # generate error
17
- it "error" do
18
- raise "Error should be YELLOW"
19
- end
20
-
21
- # generate skip
22
- it "skips" do
23
- skip "Skip should be CYAN"
24
- end
25
- end