freegenie-redgreen 0.1.7 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -1,3 +1,3 @@
1
- # freegenie-redgreen
1
+ # Redgreen
2
2
 
3
3
 
data/Rakefile CHANGED
@@ -1,27 +1,25 @@
1
- # require 'rake'
2
- #
3
- # $LOAD_PATH.unshift('lib')
4
- #
5
- # begin
6
- # require 'jeweler'
7
- # Jeweler::Tasks.new do |gem|
8
- # gem.name = "freegenie-redgreen"
9
- # gem.summary = "freegenie-redgreen colourises console output for tests."
10
- # gem.email = "freegenie@gmail.com"
11
- # gem.homepage = "http://github.com/freegenie/redgreen"
12
- # gem.description = "freegenie-redgreen colourises console output for tests. " + \
13
- # "It's a fork. Original authors Pat Eyler, Chris Wanstrath, Luke Pearce."
14
- # gem.authors = []
15
- # end
16
- #
17
- # rescue LoadError
18
- # puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
19
- # end
20
- #
21
- # require 'rake/rdoctask'
22
- # Rake::RDocTask.new do |rdoc|
23
- # rdoc.rdoc_dir = 'rdoc'
24
- # rdoc.title = 'freegenie-redgreen'
25
- # rdoc.rdoc_files.include('README.markdown')
26
- # rdoc.rdoc_files.include('lib/**/*.rb')
27
- # end
1
+ require 'rake'
2
+
3
+ $LOAD_PATH.unshift('lib')
4
+
5
+ begin
6
+ require 'jeweler'
7
+ Jeweler::Tasks.new do |gem|
8
+ gem.name = "redgreen"
9
+ gem.summary = "freegenie-redgreen colourises windows console output for tests."
10
+ gem.email = "freegenie@gmail.com"
11
+ gem.homepage = "http://github.com/freegenie/redgreen"
12
+ gem.description = "freegenie-redgreen colourises windows console output for tests. This version works with ZenTest 4.0.0, autotest, snarl, XP and Vista. Please see the README file for setup or issues with Snarl."
13
+ gem.authors = ["Pat Eyler", "Chris Wanstrath", "Luke Pearce"]
14
+ end
15
+ rescue LoadError
16
+ puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
17
+ end
18
+
19
+ require 'rake/rdoctask'
20
+ Rake::RDocTask.new do |rdoc|
21
+ rdoc.rdoc_dir = 'rdoc'
22
+ rdoc.title = 'freegenie-redgreen'
23
+ rdoc.rdoc_files.include('README.markdown')
24
+ rdoc.rdoc_files.include('lib/**/*.rb')
25
+ end
data/bin/rg CHANGED
@@ -3,11 +3,4 @@ require 'rubygems'
3
3
  require 'redgreen'
4
4
  require 'win32console' if PLATFORM =~ /win32/
5
5
 
6
- if ARGV.size == 0
7
- puts "RedGreen executable requires a test file to run!"
8
- exit
9
- end
10
-
11
6
  require $0 = ARGV.first
12
-
13
-
data/lib/redgreen.rb CHANGED
@@ -2,6 +2,7 @@ if ARGV.size > 0 and ARGV[0].include? 'test'
2
2
  require 'test/unit'
3
3
  require 'test/unit/ui/console/testrunner'
4
4
 
5
+ # cute.
5
6
  module RedGreen
6
7
  module Color
7
8
  # # 37 = white, 30 = black
@@ -32,11 +33,14 @@ if ARGV.size > 0 and ARGV[0].include? 'test'
32
33
 
33
34
  def output_single(something, level=NORMAL)
34
35
  return unless (output?(level))
35
- something = case something
36
- when '.' then RedGreen::Color.green('.')
37
- when 'F' then RedGreen::Color.red("F")
38
- when 'E' then RedGreen::Color.yellow("E")
39
- else something
36
+ if something == "."
37
+ something = RedGreen::Color.green(something)
38
+ elsif something == 'F'
39
+ something = RedGreen::Color.red(something)
40
+ elsif something == "E"
41
+ something = RedGreen::Color.yellow(something)
42
+ elsif something =~ /\* DEFERRED: (.+)/i
43
+ something = RedGreen::Color.yellow(something)
40
44
  end
41
45
  @io.write(something)
42
46
  @io.flush
data/rakefile ADDED
@@ -0,0 +1,25 @@
1
+ require 'rake'
2
+
3
+ $LOAD_PATH.unshift('lib')
4
+
5
+ begin
6
+ require 'jeweler'
7
+ Jeweler::Tasks.new do |gem|
8
+ gem.name = "redgreen"
9
+ gem.summary = "freegenie-redgreen colourises windows console output for tests."
10
+ gem.email = "freegenie@gmail.com"
11
+ gem.homepage = "http://github.com/freegenie/redgreen"
12
+ gem.description = "freegenie-redgreen colourises windows console output for tests. This version works with ZenTest 4.0.0, autotest, snarl, XP and Vista. Please see the README file for setup or issues with Snarl."
13
+ gem.authors = ["Pat Eyler", "Chris Wanstrath", "Luke Pearce"]
14
+ end
15
+ rescue LoadError
16
+ puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
17
+ end
18
+
19
+ require 'rake/rdoctask'
20
+ Rake::RDocTask.new do |rdoc|
21
+ rdoc.rdoc_dir = 'rdoc'
22
+ rdoc.title = 'freegenie-redgreen'
23
+ rdoc.rdoc_files.include('README.markdown')
24
+ rdoc.rdoc_files.include('lib/**/*.rb')
25
+ end
@@ -1,14 +1,18 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
1
4
  # -*- encoding: utf-8 -*-
2
5
 
3
6
  Gem::Specification.new do |s|
4
7
  s.name = %q{freegenie-redgreen}
5
- s.version = "0.1.7"
8
+ version_from_file = YAML::load(File.read('version.yml'))
9
+ s.version = "#{version_from_file[:major]}.#{version_from_file[:minor]}.#{version_from_file[:patch]}"
10
+
6
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
- s.authors = []
8
- s.date = %q{2009-11-15}
12
+ s.authors = ["Fabrizio Regini"]
13
+ s.date = %q{2009-12-26}
9
14
  s.default_executable = %q{rg}
10
- s.description = %q{redgreen colourises console output for tests. It's a fork.
11
- Original authors "Pat Eyler", "Chris Wanstrath", "Luke Pearce".'}
15
+ s.description = %q{Fork of the original redgreen gem from Pat Eyler, Chris Wanstrath, Luke Pearce.}
12
16
  s.email = %q{freegenie@gmail.com}
13
17
  s.executables = ["rg"]
14
18
  s.extra_rdoc_files = [
@@ -16,26 +20,28 @@ Gem::Specification.new do |s|
16
20
  ]
17
21
  s.files = [
18
22
  "README.markdown",
19
- "Rakefile",
20
- "bin/rg",
21
- "lib/redgreen.rb",
22
- "lib/redgreen/autotest.rb",
23
- "freegenie-redgreen.gemspec",
23
+ "Rakefile",
24
+ "bin/rg",
25
+ "lib/redgreen.rb",
26
+ "lib/redgreen/autotest.rb",
27
+ "rakefile",
28
+ "redgreen.gemspec",
29
+ "version.yml"
24
30
  ]
25
- s.has_rdoc = false
26
31
  s.homepage = %q{http://github.com/freegenie/redgreen}
27
32
  s.rdoc_options = ["--charset=UTF-8"]
28
33
  s.require_paths = ["lib"]
29
34
  s.rubygems_version = %q{1.3.5}
30
- s.summary = %q{redgreen colourises console output for tests.}
35
+ s.summary = %q{freegenie-redgreen colourises windows console output for tests.}
31
36
 
32
37
  if s.respond_to? :specification_version then
33
38
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
34
- s.specification_version = 2
39
+ s.specification_version = 3
35
40
 
36
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.3.5') then
41
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
37
42
  else
38
43
  end
39
44
  else
40
45
  end
41
46
  end
47
+
data/version.yml ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :major: 1
3
+ :minor: 2
4
+ :patch: 0
metadata CHANGED
@@ -1,21 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freegenie-redgreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 1.2.0
5
5
  platform: ruby
6
- authors: []
7
-
6
+ authors:
7
+ - Fabrizio Regini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-15 00:00:00 +01:00
12
+ date: 2009-12-26 00:00:00 +01:00
13
13
  default_executable: rg
14
14
  dependencies: []
15
15
 
16
- description: |-
17
- redgreen colourises console output for tests. It's a fork.
18
- Original authors "Pat Eyler", "Chris Wanstrath", "Luke Pearce".'
16
+ description: Fork of the original redgreen gem from Pat Eyler, Chris Wanstrath, Luke Pearce.
19
17
  email: freegenie@gmail.com
20
18
  executables:
21
19
  - rg
@@ -29,8 +27,10 @@ files:
29
27
  - bin/rg
30
28
  - lib/redgreen.rb
31
29
  - lib/redgreen/autotest.rb
32
- - freegenie-redgreen.gemspec
33
- has_rdoc: false
30
+ - rakefile
31
+ - redgreen.gemspec
32
+ - version.yml
33
+ has_rdoc: true
34
34
  homepage: http://github.com/freegenie/redgreen
35
35
  licenses: []
36
36
 
@@ -56,7 +56,7 @@ requirements: []
56
56
  rubyforge_project:
57
57
  rubygems_version: 1.3.5
58
58
  signing_key:
59
- specification_version: 2
60
- summary: redgreen colourises console output for tests.
59
+ specification_version: 3
60
+ summary: freegenie-redgreen colourises windows console output for tests.
61
61
  test_files: []
62
62