minitest-colorin 0.1.2 → 0.1.3

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: d27414211d1f5f8c3f6e221243d93e12604003ce
4
- data.tar.gz: ef24dbcceab582cfbb1031d32a07bd32f4e6f437
3
+ metadata.gz: 2d050888063e7f336527935d23eca19bae7ed10d
4
+ data.tar.gz: 9f28268421da917d817e005fb1a4ddfd2732c989
5
5
  SHA512:
6
- metadata.gz: 6b1a7336eedf950e7d929d23476cc18a7cf898fe6e592d086ef47b5e5a40f2234115828ac1e5715ac2441590dd9f5d35737c3724f16e76a1ce48158a26d1a0cd
7
- data.tar.gz: 3f50e987b37d80b68771ede1074fa05cddb3c7ade4b869386a4597b23fb0ea9c0ba792915703924fdb928c50f0e4a8a24720818e9bc8ce54bc5012894952f98c
6
+ metadata.gz: 805b2fe302a9286977a71da7da52c0e24395aa47b4d066a841e8fe172d5ab84004f94b6831a1c4c5308fa932fc26e028a7601ad0ee0e1599c343dfec6dd7be4a
7
+ data.tar.gz: ef5ab95f6c5b83a099c25dd6830e04850d14c4ea1ddff80a2de9f9a343f15e1da623ebd207bcb226cf6def14e152b8fdce3c5f52c375b08b1880be0fb77fb022
@@ -34,12 +34,12 @@ module Minitest
34
34
  }
35
35
 
36
36
  COLORS = {
37
- tests: :blue_light,
38
- passed: :green_light,
39
- failures: :red_light,
40
- errors: :yellow_light,
41
- skips: :cyan_light,
42
- assertions: :magenta_light
37
+ tests: :blue_a700,
38
+ passed: :green_500,
39
+ failures: :red_500,
40
+ errors: :amber_300,
41
+ skips: :cyan_300,
42
+ assertions: :purple_400
43
43
  }
44
44
 
45
45
  attr_reader :io, :previous_context, :results, :started_at
@@ -67,8 +67,8 @@ module Minitest
67
67
  end
68
68
 
69
69
  label = colorin(LABELS[result.result_code], GROUPS[result.result_code])
70
- number = ::Colorin.dark(test_id.number)
71
- time = ::Colorin.dark("(#{result.time.round(3)}s)")
70
+ number = ::Colorin.grey_600(test_id.number)
71
+ time = ::Colorin.grey_600("(#{result.time.round(3)}s)")
72
72
  message = case result.result_code
73
73
  when 'S' then colorin(result.failures[0].message, :skips)
74
74
  when 'F' then colorin(relative_path(result.failures[0].location), :failures)
@@ -130,13 +130,13 @@ module Minitest
130
130
  if group == :errors
131
131
  io.puts colorin("#{indent}#{r.failures[0].exception.class}: #{r.failures[0].exception.message}", group)
132
132
  r.failures[0].backtrace.each do |line|
133
- io.puts ::Colorin.dark("#{indent}#{relative_path(line)}")
133
+ io.puts ::Colorin.grey_600("#{indent}#{relative_path(line)}")
134
134
  end
135
135
  else
136
136
  r.failures[0].message.split("\n").each do |line|
137
137
  io.puts colorin("#{indent}#{line}", group)
138
138
  end
139
- io.puts ::Colorin.dark("#{indent}#{relative_path(r.failures[0].location)}")
139
+ io.puts ::Colorin.grey_600("#{indent}#{relative_path(r.failures[0].location)}")
140
140
  end
141
141
  io.puts if i < group_results.count - 1
142
142
  end
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  class Colorin
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  spec.add_runtime_dependency 'minitest', '~> 5.0'
23
- spec.add_runtime_dependency 'colorin', '~> 1.0'
23
+ spec.add_runtime_dependency 'colorin', '~> 2.0'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.12'
26
26
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-colorin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-19 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement