jstdutil 0.3.12 → 0.3.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,11 +15,11 @@ module Jstdutil
15
15
  type::Color.send($1.to_i + $2.to_i != 0 ? :red : :green, line)
16
16
  elsif line =~ /^[\.EF]+$/
17
17
  line.gsub(/\./, type::Color.green(".")).gsub(/F/, type::Color.red("F")).gsub("E", type::Color.yellow("E"))
18
- elsif line =~ /failed/
18
+ elsif line =~ /failed\s\(\d|\[ERROR\]/
19
19
  type::Color.red(line)
20
- elsif line =~ /passed/
20
+ elsif line =~ /passed\s\(\d/
21
21
  type::Color.green(line)
22
- elsif line =~ /error/
22
+ elsif line =~ /error|\[WARN\]/
23
23
  type::Color.yellow(line)
24
24
  else
25
25
  line
@@ -10,6 +10,9 @@ Total 3 tests (Passed: 1; Fails: 1; Errors: 1) (2.00 ms)
10
10
  GreeterTest.testSomethingElse failed (1.00 ms): expected "1" but was "2"
11
11
  ()@http://localhost:4224/test/test/greeter_test.js:10
12
12
  [LOG] UH!
13
+ [INFO] UH!
14
+ [ERROR] UH!
15
+ [WARN] MAYBE UH!
13
16
  GreeterTest.testSomethingElseFails error (1.00 ms): assertEqual is not defined
14
17
  ()@http://localhost:4224/test/test/greeter_test.js:14
15
18
  REPORT
@@ -35,8 +38,11 @@ Total 3 tests (Passed: 1; Fails: 1; Errors: 1) (2.00 ms)
35
38
  expected << type::Color.red(lines[3]) + "\n"
36
39
  expected << lines[4] + "\n"
37
40
  expected << lines[5] + "\n"
38
- expected << type::Color.yellow(lines[6]) + "\n"
39
- expected << lines[7]
41
+ expected << lines[6] + "\n"
42
+ expected << type::Color.red(lines[7]) + "\n"
43
+ expected << type::Color.yellow(lines[8]) + "\n"
44
+ expected << type::Color.yellow(lines[9]) + "\n"
45
+ expected << lines[10]
40
46
 
41
47
  expected = type.wrap_report(expected)
42
48
 
metadata CHANGED
@@ -1,81 +1,75 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jstdutil
3
- version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 3
9
- - 12
10
- version: 0.3.12
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.13
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Christian Johansen
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-01-26 00:00:00 +01:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-07-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: shoulda
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: watchr
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: watchr
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
47
38
  type: :runtime
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: rake
51
39
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
53
49
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
61
54
  type: :runtime
62
- version_requirements: *id003
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
63
62
  description: Thin wrapper over Google's JsTestDriver that adds colors and autotest
64
63
  email: christian@cjohansen.no
65
- executables:
64
+ executables:
66
65
  - jstestdriver
67
66
  - jsautotest
68
67
  extensions: []
69
-
70
- extra_rdoc_files:
68
+ extra_rdoc_files:
71
69
  - LICENSE
72
70
  - README.rdoc
73
- files:
71
+ files:
74
72
  - Changelog
75
- - GPATH
76
- - GRTAGS
77
- - GSYMS
78
- - GTAGS
79
73
  - LICENSE
80
74
  - README.rdoc
81
75
  - Rakefile
@@ -103,39 +97,37 @@ files:
103
97
  - test/redgreen_test.rb
104
98
  - test/test_file_test.rb
105
99
  - test/test_helper.rb
106
- has_rdoc: true
107
100
  homepage: http://github.com/cjohansen/jstdutil
108
101
  licenses: []
109
-
110
102
  post_install_message:
111
103
  rdoc_options: []
112
-
113
- require_paths:
104
+ require_paths:
114
105
  - lib
115
- required_ruby_version: !ruby/object:Gem::Requirement
106
+ required_ruby_version: !ruby/object:Gem::Requirement
116
107
  none: false
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- hash: 3
121
- segments:
122
- - 0
123
- version: "0"
124
- required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
125
113
  none: false
126
- requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- hash: 3
130
- segments:
131
- - 0
132
- version: "0"
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
133
118
  requirements: []
134
-
135
119
  rubyforge_project: jstdutil
136
- rubygems_version: 1.3.7
120
+ rubygems_version: 1.8.23
137
121
  signing_key:
138
122
  specification_version: 3
139
123
  summary: Thin wrapper over Google's JsTestDriver that adds colors and autotest
140
- test_files: []
141
-
124
+ test_files:
125
+ - test/cli_test.rb
126
+ - test/colorful_html_test.rb
127
+ - test/formatter_test.rb
128
+ - test/jstdutil_test.rb
129
+ - test/jstestdriver_config_test.rb
130
+ - test/jstestdriver_test.rb
131
+ - test/redgreen_test.rb
132
+ - test/test_file_test.rb
133
+ - test/test_helper.rb
data/GPATH DELETED
Binary file
data/GRTAGS DELETED
Binary file
data/GSYMS DELETED
Binary file
data/GTAGS DELETED
Binary file