minitest-rg 1.1.1 → 5.0.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
2
  SHA1:
3
- metadata.gz: 648bac70367bb48c0cc64bd902d8b52c09cd370a
4
- data.tar.gz: 769e843b5a5a6367b8a22b60f487f53844146091
3
+ metadata.gz: e5c12e03611c9fd09e0e39d024fcc5e9c8ae8e49
4
+ data.tar.gz: 190fc1acebf9cf082f7cc70d60b5c65ca33498a3
5
5
  SHA512:
6
- metadata.gz: bd5998f5a1faea16319643c1cab1859cfa0d538299bfc37b78747ca2bb7a75b08024c9e036d1d10d419ba9283987687744aa814ad95fdc4fd2401ad4e7d77e73
7
- data.tar.gz: 46c3b0e34cc610e4d0f6927c80bb4f668f115ed8d3a7cf4919a13356348bdcd123d2009b3a2b0a90c6f4098c8400af026dc96ce4d31f66eadace0075e6bb20d0
6
+ metadata.gz: f736d9a574da54c193e2e07e619669172b4c8ffddce8591116e2e23cbaafab4c5af6253ae06ac76e981b3f8ae7316466e25ddaf5dca3b4197e40ab9e9f900e1b
7
+ data.tar.gz: 2d7e7e643deb54acd5dcc6c53e34ffc223ad1719aa41a26664fda0dc0eb175873a59a2c3a41481ae16bd8040341b0bc5bbf5c62d24cff4f23c323f88b246bd50
@@ -1,3 +1,7 @@
1
+ === 5.0.0 / 2013-11-13
2
+
3
+ Updated for Minitest 5.0
4
+
1
5
  === 1.1.1 / 2013-04-23
2
6
 
3
7
  Set minitest dependency.
@@ -6,5 +6,6 @@ Manifest.txt
6
6
  README.rdoc
7
7
  Rakefile
8
8
  lib/minitest/rg.rb
9
+ lib/minitest/rg_plugin.rb
9
10
  minitest-rg.gemspec
10
11
  test/test_minitest-rg.rb
data/Rakefile CHANGED
@@ -14,11 +14,12 @@ Hoe.spec 'minitest-rg' do
14
14
  self.summary = 'RedGreen for MiniTest'
15
15
  self.description = 'Adds color to your MiniTest output'
16
16
  self.urls = ['http://blowmage.com/minitest-rg']
17
+ self.license "MIT"
17
18
 
18
19
  self.readme_file = 'README.rdoc'
19
20
  self.history_file = 'CHANGELOG.rdoc'
20
21
 
21
- dependency 'minitest', '< 5.0'
22
+ dependency 'minitest', '~> 5.0'
22
23
  end
23
24
 
24
25
  # vim: syntax=ruby
@@ -1,45 +1,4 @@
1
- require "minitest/unit"
1
+ require "minitest"
2
2
 
3
- module MiniTest
4
- class RG
5
- VERSION = "1.1.1"
6
-
7
- COLORS = {
8
- '.' => "\e[32m.\e[0m",
9
- 'E' => "\e[33mE\e[0m",
10
- 'F' => "\e[31mF\e[0m",
11
- 'S' => "\e[36mS\e[0m",
12
- }
13
-
14
- attr_reader :io, :colors
15
-
16
- def initialize io, colors = COLORS
17
- @io = io
18
- @colors = colors
19
- end
20
-
21
- def print o
22
- io.print(colors[o] || o)
23
- end
24
-
25
- def puts o=nil
26
- return io.puts if o.nil?
27
- if o =~ /(\d+) failures, (\d+) errors/
28
- if $1 != '0' || $2 != '0'
29
- io.puts "\e[31m#{o}\e[0m"
30
- else
31
- io.puts "\e[32m#{o}\e[0m"
32
- end
33
- else
34
- io.puts o
35
- end
36
- end
37
-
38
- def method_missing msg, *args
39
- return super unless io.respond_to? msg
40
- io.send(msg, *args)
41
- end
42
- end
43
- end
44
-
45
- MiniTest::Unit.output = MiniTest::RG.new(MiniTest::Unit.output)
3
+ Minitest.load_plugins
4
+ Minitest::RG.rg!
@@ -0,0 +1,64 @@
1
+ require "minitest/test"
2
+ require "minitest/rg"
3
+
4
+ module MiniTest
5
+
6
+ def self.plugin_rg_options opts, options # :nodoc:
7
+ end
8
+
9
+ def self.plugin_rg_init options # :nodoc:
10
+ io = RG.new options[:io]
11
+
12
+ self.reporter.reporters.grep(Minitest::Reporter).each do |rep|
13
+ rep.io = io
14
+ end
15
+ end
16
+
17
+ class RG
18
+ VERSION = "5.0.0"
19
+
20
+ COLORS = {
21
+ '.' => "\e[32m.\e[0m",
22
+ 'E' => "\e[33mE\e[0m",
23
+ 'F' => "\e[31mF\e[0m",
24
+ 'S' => "\e[36mS\e[0m",
25
+ }
26
+
27
+ attr_reader :io, :colors
28
+
29
+ def self.rg!
30
+ @rg = true
31
+ end
32
+
33
+ def self.rg?
34
+ @rg ||= false
35
+ end
36
+
37
+ def initialize io, colors = COLORS
38
+ @io = io
39
+ @colors = colors
40
+ end
41
+
42
+ def print o
43
+ io.print(colors[o] || o)
44
+ end
45
+
46
+ def puts o=nil
47
+ return io.puts if o.nil?
48
+ if o =~ /(\d+) failures, (\d+) errors/
49
+ if $1 != '0' || $2 != '0'
50
+ io.puts "\e[31m#{o}\e[0m"
51
+ else
52
+ io.puts "\e[32m#{o}\e[0m"
53
+ end
54
+ else
55
+ io.puts o
56
+ end
57
+ end
58
+
59
+ def method_missing msg, *args
60
+ return super unless io.respond_to? msg
61
+ io.send(msg, *args)
62
+ end
63
+ end
64
+ end
@@ -1,21 +1,23 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ # stub: minitest-rg 5.0.0.20131113213436 ruby lib
2
3
 
3
4
  Gem::Specification.new do |s|
4
5
  s.name = "minitest-rg"
5
- s.version = "1.1.1.20130423080845"
6
+ s.version = "5.0.0.20131113213436"
6
7
 
7
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
9
  s.authors = ["Mike Moore"]
9
- s.date = "2013-04-23"
10
+ s.date = "2013-11-14"
10
11
  s.description = "Adds color to your MiniTest output"
11
12
  s.email = ["mike@blowmage.com"]
12
13
  s.extra_rdoc_files = ["CHANGELOG.rdoc", "Manifest.txt", "README.rdoc"]
13
- s.files = [".autotest", ".gemtest", "CHANGELOG.rdoc", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "lib/minitest/rg.rb", "minitest-rg.gemspec", "test/test_minitest-rg.rb"]
14
+ s.files = [".autotest", ".gemtest", "CHANGELOG.rdoc", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "lib/minitest/rg.rb", "lib/minitest/rg_plugin.rb", "minitest-rg.gemspec", "test/test_minitest-rg.rb"]
14
15
  s.homepage = "http://blowmage.com/minitest-rg"
16
+ s.licenses = ["MIT"]
15
17
  s.rdoc_options = ["--main", "README.rdoc"]
16
18
  s.require_paths = ["lib"]
17
19
  s.rubyforge_project = "minitest-rg"
18
- s.rubygems_version = "2.0.3"
20
+ s.rubygems_version = "2.1.9"
19
21
  s.summary = "RedGreen for MiniTest"
20
22
  s.test_files = ["test/test_minitest-rg.rb"]
21
23
 
@@ -23,17 +25,17 @@ Gem::Specification.new do |s|
23
25
  s.specification_version = 4
24
26
 
25
27
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
- s.add_runtime_dependency(%q<minitest>, ["< 5.0"])
28
+ s.add_runtime_dependency(%q<minitest>, ["~> 5.0"])
27
29
  s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
28
- s.add_development_dependency(%q<hoe>, ["~> 3.6"])
30
+ s.add_development_dependency(%q<hoe>, ["~> 3.7"])
29
31
  else
30
- s.add_dependency(%q<minitest>, ["< 5.0"])
32
+ s.add_dependency(%q<minitest>, ["~> 5.0"])
31
33
  s.add_dependency(%q<rdoc>, ["~> 4.0"])
32
- s.add_dependency(%q<hoe>, ["~> 3.6"])
34
+ s.add_dependency(%q<hoe>, ["~> 3.7"])
33
35
  end
34
36
  else
35
- s.add_dependency(%q<minitest>, ["< 5.0"])
37
+ s.add_dependency(%q<minitest>, ["~> 5.0"])
36
38
  s.add_dependency(%q<rdoc>, ["~> 4.0"])
37
- s.add_dependency(%q<hoe>, ["~> 3.6"])
39
+ s.add_dependency(%q<hoe>, ["~> 3.7"])
38
40
  end
39
41
  end
@@ -1,3 +1,4 @@
1
+ gem "minitest"
1
2
  require 'minitest/autorun'
2
3
  require 'minitest/rg'
3
4
 
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-23 00:00:00.000000000 Z
11
+ date: 2013-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - <
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - <
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdoc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: hoe
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.6'
47
+ version: '3.7'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.6'
54
+ version: '3.7'
55
55
  description: Adds color to your MiniTest output
56
56
  email:
57
57
  - mike@blowmage.com
@@ -62,38 +62,40 @@ extra_rdoc_files:
62
62
  - Manifest.txt
63
63
  - README.rdoc
64
64
  files:
65
- - .autotest
66
- - .gemtest
65
+ - ".autotest"
66
+ - ".gemtest"
67
67
  - CHANGELOG.rdoc
68
68
  - LICENSE
69
69
  - Manifest.txt
70
70
  - README.rdoc
71
71
  - Rakefile
72
72
  - lib/minitest/rg.rb
73
+ - lib/minitest/rg_plugin.rb
73
74
  - minitest-rg.gemspec
74
75
  - test/test_minitest-rg.rb
75
76
  homepage: http://blowmage.com/minitest-rg
76
- licenses: []
77
+ licenses:
78
+ - MIT
77
79
  metadata: {}
78
80
  post_install_message:
79
81
  rdoc_options:
80
- - --main
82
+ - "--main"
81
83
  - README.rdoc
82
84
  require_paths:
83
85
  - lib
84
86
  required_ruby_version: !ruby/object:Gem::Requirement
85
87
  requirements:
86
- - - '>='
88
+ - - ">="
87
89
  - !ruby/object:Gem::Version
88
90
  version: '0'
89
91
  required_rubygems_version: !ruby/object:Gem::Requirement
90
92
  requirements:
91
- - - '>='
93
+ - - ">="
92
94
  - !ruby/object:Gem::Version
93
95
  version: '0'
94
96
  requirements: []
95
97
  rubyforge_project: minitest-rg
96
- rubygems_version: 2.0.3
98
+ rubygems_version: 2.1.9
97
99
  signing_key:
98
100
  specification_version: 4
99
101
  summary: RedGreen for MiniTest