maxitest 1.5.6 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7d34ce17980dee6106e3b2937f700ef206b5a54
4
- data.tar.gz: a7d1131836422cdd4a863cdb57334adf02052a6d
3
+ metadata.gz: daf1f86dcaa5e7319eca2680e760a82ab0f3f117
4
+ data.tar.gz: 63b837de98a0ddec45921cba93085456727c45a9
5
5
  SHA512:
6
- metadata.gz: 18aef65c82c39f3a03e1a2681f5e3d667a1a075438c7349627e20f89207833422735c358175c6477b1b27003694abbc6932d8145d1cf3257fdeef6b06add69fe
7
- data.tar.gz: 0c55956852bf2ba93bea5aa06095a8f605f57c19e2d0323b08d22887e989c3436b333746274aa90d1446c4211b21cefbfc025889d716c3b4014fdd1b616189ff
6
+ metadata.gz: e849b319d4c1064347824aeccca914f6d0bafb5adb73d6e49cca834871cac9409a86e7e88727778f3a58351f9599a87f220dd06ec27fb992429789a5200e9c84
7
+ data.tar.gz: 704d91b74ee306ebb6dcd505ce308cde7b607e6998b2201bc660f4a00a74ee8970a5c58e12349b425fb83b4cd3759d1f9e1ce91a42a0c5b47869866b5ecdd722
@@ -27,8 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
27
  # https://raw.githubusercontent.com/blowmage/minitest-rg/master/lib/minitest/rg_plugin.rb
28
28
  # BEGIN generated by rake update, do not modify
29
29
  module MiniTest
30
-
31
- def self.plugin_rg_options opts, options # :nodoc:
30
+ def self.plugin_rg_options opts, _options # :nodoc:
32
31
  opts.on "--rg", "Add red/green to test output." do
33
32
  RG.rg!
34
33
  end
@@ -38,21 +37,21 @@ module MiniTest
38
37
  if RG.rg?
39
38
  io = RG.new options[:io]
40
39
 
41
- self.reporter.reporters.grep(Minitest::Reporter).each do |rep|
40
+ reporter.reporters.grep(Minitest::Reporter).each do |rep|
42
41
  rep.io = io if rep.io.tty?
43
42
  end
44
43
  end
45
44
  end
46
45
 
47
46
  class RG
48
- VERSION = "5.2.0"
47
+ VERSION = "5.2.0".freeze
49
48
 
50
49
  COLORS = {
51
- '.' => "\e[32m.\e[0m",
52
- 'E' => "\e[33mE\e[0m",
53
- 'F' => "\e[31mF\e[0m",
54
- 'S' => "\e[36mS\e[0m",
55
- }
50
+ "." => "\e[32m.\e[0m",
51
+ "E" => "\e[33mE\e[0m",
52
+ "F" => "\e[31mF\e[0m",
53
+ "S" => "\e[36mS\e[0m"
54
+ }.freeze
56
55
 
57
56
  attr_reader :io, :colors
58
57
 
@@ -73,10 +72,10 @@ module MiniTest
73
72
  io.print(colors[o] || o)
74
73
  end
75
74
 
76
- def puts o=nil
75
+ def puts o = nil
77
76
  return io.puts if o.nil?
78
77
  if o =~ /(\d+) failures, (\d+) errors/
79
- if $1 != '0' || $2 != '0'
78
+ if Regexp.last_match[1] != "0" || Regexp.last_match[2] != "0"
80
79
  io.puts "\e[31m#{o}\e[0m"
81
80
  else
82
81
  io.puts "\e[32m#{o}\e[0m"
@@ -1,3 +1,3 @@
1
1
  module Maxitest
2
- VERSION = "1.5.6"
2
+ VERSION = "1.5.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-27 00:00:00.000000000 Z
11
+ date: 2016-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest