guard-test 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,33 +9,33 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-11 00:00:00.000000000Z
12
+ date: 2011-09-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &2157114800 !ruby/object:Gem::Requirement
16
+ requirement: &2161649160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.4.0
21
+ version: '0.4'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2157114800
24
+ version_requirements: *2161649160
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: test-unit
27
- requirement: &2157113380 !ruby/object:Gem::Requirement
27
+ requirement: &2161648700 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 2.3.1
32
+ version: '2.2'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2157113380
35
+ version_requirements: *2161648700
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &2157112120 !ruby/object:Gem::Requirement
38
+ requirement: &2161648240 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '1.0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2157112120
46
+ version_requirements: *2161648240
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &2157111180 !ruby/object:Gem::Requirement
49
+ requirement: &2161647780 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '2.6'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2157111180
57
+ version_requirements: *2161647780
58
58
  description: Guard::Test automatically run your tests on file modification.
59
59
  email:
60
60
  - rymai@rymai.me
@@ -62,23 +62,15 @@ executables: []
62
62
  extensions: []
63
63
  extra_rdoc_files: []
64
64
  files:
65
+ - lib/guard/test/guard_test_runner.rb
66
+ - lib/guard/test/guard_test_runner.rbc
65
67
  - lib/guard/test/inspector.rb
66
68
  - lib/guard/test/inspector.rbc
67
69
  - lib/guard/test/notifier.rb
68
70
  - lib/guard/test/notifier.rbc
69
- - lib/guard/test/result_helpers.rb
70
- - lib/guard/test/result_helpers.rbc
71
71
  - lib/guard/test/runner.rb
72
72
  - lib/guard/test/runner.rbc
73
- - lib/guard/test/runners/default_guard_test_runner.rb
74
- - lib/guard/test/runners/default_guard_test_runner.rbc
75
- - lib/guard/test/runners/default_test_unit_runner.rbc
76
- - lib/guard/test/runners/fastfail_guard_test_runner.rb
77
- - lib/guard/test/runners/fastfail_guard_test_runner.rbc
78
- - lib/guard/test/runners/fastfail_test_unit_runner.rbc
79
73
  - lib/guard/test/templates/Guardfile
80
- - lib/guard/test/ui.rb
81
- - lib/guard/test/ui.rbc
82
74
  - lib/guard/test/version.rb
83
75
  - lib/guard/test/version.rbc
84
76
  - lib/guard/test.rb
@@ -1,28 +0,0 @@
1
- # encoding: utf-8
2
- module Guard
3
- module TestResultHelpers
4
-
5
- class << self
6
- def summary(result)
7
- "#{result.run_count} test#{'s' if result.run_count != 1}, " \
8
- "#{result.assertion_count} assert#{'s' if result.assertion_count != 1}, " \
9
- "#{result.failure_count} fail#{'s' if result.failure_count != 1}, " \
10
- "#{result.error_count} error#{'s' if result.error_count != 1}"
11
- end
12
-
13
- def duration(duration, options={})
14
- "Finished in #{round_float(duration)} seconds"
15
- end
16
-
17
- def round_float(float, decimals=4)
18
- if Float.instance_method(:round).arity == 0 # Ruby 1.8
19
- factor = 10**decimals
20
- (float*factor).round / factor.to_f
21
- else # Ruby 1.9
22
- float.round(decimals)
23
- end
24
- end
25
- end
26
-
27
- end
28
- end