minitest-color 0.0.1 → 0.0.2

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: 40e2db1a79608ec4f5bd86d20c660f45431af5ae
4
- data.tar.gz: 163f45d61d438b5b9fb2dfba57c04cdbab10d3c4
3
+ metadata.gz: bea90254546e93f22f0b98e28771661c2917dfdf
4
+ data.tar.gz: bca66da6b69baf2d1342d2db2b1941c59333abbf
5
5
  SHA512:
6
- metadata.gz: 7e15b3620fdf267fc2b56cdda2f724cc8855094f80aa6707b3218e0b660f1b36b2aaef13f77208cee4521757d5c3d8a7efd3251730a3b6cb7333543db464fa91
7
- data.tar.gz: 3af0d7dc93b2ea92c4556779e0ec8b3e0abb86445cf2e50c2c155ad212adbc8d8e417dbfb6bcf78fa78b40723fa7e5844bddc80dda81fda3adfb328a4cc36415
6
+ metadata.gz: 43cb981ed8b55053bf354ed68e8d14eda8339171bc0ef41749f71b6470aefb0843541c4d56e3736ca9bc6d3057f578f3707867159f705f6ab7e481dac7e24af1
7
+ data.tar.gz: d7d012a573ec4523fb5ccc1a17127ee76bbeb34ccb2db3920c4562d2bb005b3406165018321aa2f3ffff4e19a280bf26dab148af0b10b91943b5241a08842368
data/README.md CHANGED
@@ -22,7 +22,8 @@ Minitest >= 5.0.0
22
22
 
23
23
  ## Usage
24
24
 
25
- Just pass `--color` as an argument while running your tests
25
+ Either pass `--color` as an argument while running your tests,
26
+ or `require 'minitest/color'` in your tests
26
27
 
27
28
  ## What's the difference?
28
29
  It colorizes your tests depending on their success
@@ -9,7 +9,7 @@ module Minitest
9
9
 
10
10
  def self.plugin_color_init options
11
11
  if Color.color?
12
- io = options.delete(:io) || $stdout
12
+ io = options.fetch(:io, $stdout)
13
13
  self.reporter.reporters.reject! {|o| o.is_a? ProgressReporter }
14
14
  self.reporter.reporters << Color.new(io, options)
15
15
  end
@@ -4,9 +4,9 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "minitest-color"
7
- spec.version = "0.0.1"
7
+ spec.version = "0.0.2"
8
8
  spec.authors = ["Teo Ljungberg"]
9
- spec.email = ["teo.ljungberg@gmail.com"]
9
+ spec.email = ["teo@teoljungberg.com"]
10
10
  spec.summary = "Color formatter for Minitest"
11
11
  spec.description = spec.summary
12
12
  spec.homepage = "https://github.com/teoljungberg/minitest-color"
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
+ spec.add_dependency "minitest", "~> 5"
20
21
  spec.add_development_dependency "bundler", "~> 1.5"
21
22
  spec.add_development_dependency "rake"
22
23
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-color
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Teo Ljungberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-27 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -40,7 +54,7 @@ dependencies:
40
54
  version: '0'
41
55
  description: Color formatter for Minitest
42
56
  email:
43
- - teo.ljungberg@gmail.com
57
+ - teo@teoljungberg.com
44
58
  executables: []
45
59
  extensions: []
46
60
  extra_rdoc_files: []
@@ -75,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
89
  version: '0'
76
90
  requirements: []
77
91
  rubyforge_project:
78
- rubygems_version: 2.2.2
92
+ rubygems_version: 2.4.8
79
93
  signing_key:
80
94
  specification_version: 4
81
95
  summary: Color formatter for Minitest