minitest-utils 0.1.0 → 0.1.1

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: 2ad58bb62375ad893e3d7533596c906657793b20
4
- data.tar.gz: 918f0682ade6441d27b2f4f6b3e30cd69d0cbcf4
3
+ metadata.gz: 53f5939edeb86d8fc6b8c73a994a6a71c489ee6f
4
+ data.tar.gz: 7fb39036503556bb6736fdde724c253b28059b0a
5
5
  SHA512:
6
- metadata.gz: ad62a955a0ebdbc058edaaaec27011063344cc8b6da23bec279415f7163565fe3771cae04f4d8e808dd19a7d96fbeae66a4e4de99387d92484883cb8e3c52a76
7
- data.tar.gz: 466bdb54ea009e5e77aefff8fb7aa70f29fd717d33992c2173280a06ee1afdfde3057d2710f281f1db34f8efbef06e2435e0c993a098828ee3f3bdf7e795416d
6
+ metadata.gz: 7f8950291223aafaaad93d73c5561467dc81dfc45e4d090c3657da1d628fe2e9ece5517c323100d4236dd6080370d5a397fe471d026c25bac44ab73d34740f30
7
+ data.tar.gz: 109bd388af199abc5176793cf89d1d963fce8ef59eaccad5db0e319e4694e76d28d95435bdb07257059c4c94998b5f0550ecbd900cfba9daddc1bcfdfa606779
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "minitest/utils"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/rake ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rake', 'rake')
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -55,7 +55,7 @@ module Minitest
55
55
  end
56
56
 
57
57
  def indent(text)
58
- text.gsub(/^/, ' ')
58
+ text.gsub(/^/, ' ')
59
59
  end
60
60
 
61
61
  def display_failing(result, index)
@@ -64,7 +64,7 @@ module Minitest
64
64
  message = message.lines.tap(&:pop).join.chomp if result.error?
65
65
 
66
66
  str = "\n\n"
67
- str << color("#{index}) #{result_name(result.name)}")
67
+ str << color("%4d) %s" % [index, result_name(result.name)])
68
68
  str << "\n" << color(indent(message), :red)
69
69
  str << "\n" << color(backtrace, :blue)
70
70
  io.print str
@@ -73,7 +73,7 @@ module Minitest
73
73
  def display_skipped(result, index)
74
74
  location = location(result.failure.location)
75
75
  str = "\n\n"
76
- str << color("#{index}) #{result_name(result.name)} [SKIPPED]", :yellow)
76
+ str << color("%4d) %s [SKIPPED]" % [index, result_name(result.name)], :yellow)
77
77
  str << "\n" << indent(color(location, :yellow))
78
78
  io.print str
79
79
  end
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Utils
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
@@ -77,6 +77,9 @@ files:
77
77
  - Gemfile
78
78
  - README.md
79
79
  - Rakefile
80
+ - bin/console
81
+ - bin/rake
82
+ - bin/setup
80
83
  - lib/minitest/utils.rb
81
84
  - lib/minitest/utils/rails.rb
82
85
  - lib/minitest/utils/rails/capybara.rb