jstdutil 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.3.5 / 2010-10-31
2
+ * Bright colors that work on Windows
3
+ * Autotest no longer initially runs all tests
4
+
1
5
  == 0.3.4 / 2010-10-31
2
6
  * Xavier Vergés helped improve Windows support
3
7
  * Proper Windows platform detection for ANSI colors
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.5
@@ -34,7 +34,6 @@ module Jstdutil
34
34
  end
35
35
  end
36
36
 
37
- @runner.run
38
37
  @watchr_controller.run
39
38
  end
40
39
  end
@@ -12,10 +12,10 @@ module Jstdutil
12
12
  # Not included as a gem dependency since it drags in Test::Unit
13
13
  # and friends, which is overkill for our situation
14
14
  module Color
15
- COLORS = { :clear => 0, :red => 91, :green => 92, :yellow => 93 }
15
+ COLORS = { :clear => 0, :bright => 1, :red => 31, :green => 32, :yellow => 33 }
16
16
 
17
17
  def self.method_missing(color_name, *args)
18
- color(color_name) + args.first + color(:clear)
18
+ color(:bright) + color(color_name) + args.first + color(:clear)
19
19
  end
20
20
 
21
21
  def self.color(color)
@@ -4,15 +4,15 @@ class RedGreenTest < Test::Unit::TestCase
4
4
  context "adding pretty colors" do
5
5
 
6
6
  should "wrap in green" do
7
- assert_equal "\e[92mtrees\e[0m", Jstdutil::RedGreen::Color.green("trees")
7
+ assert_equal "\e[1m\e[32mtrees\e[0m", Jstdutil::RedGreen::Color.green("trees")
8
8
  end
9
9
 
10
10
  should "wrap in red" do
11
- assert_equal "\e[91mdress\e[0m", Jstdutil::RedGreen::Color.red("dress")
11
+ assert_equal "\e[1m\e[31mdress\e[0m", Jstdutil::RedGreen::Color.red("dress")
12
12
  end
13
13
 
14
14
  should "wrap in yellow" do
15
- assert_equal "\e[93mdress\e[0m", Jstdutil::RedGreen::Color.yellow("dress")
15
+ assert_equal "\e[1m\e[33mdress\e[0m", Jstdutil::RedGreen::Color.yellow("dress")
16
16
  end
17
17
  end
18
18
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jstdutil
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 4
10
- version: 0.3.4
9
+ - 5
10
+ version: 0.3.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Christian Johansen