guard-yeti 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  .DS_Store
2
+ *.gem
data/README.md CHANGED
@@ -20,6 +20,13 @@ Add guard definition to your Guardfile with:
20
20
 
21
21
  Please read the [Guard usage documentation](https://github.com/guard/guard#readme).
22
22
 
23
+ start the yeti server and open the posted url in a browser
24
+
25
+
26
+ ```
27
+ yeti --server
28
+ ```
29
+
23
30
  ## Guardfile
24
31
 
25
32
  Please read [Guard doc](https://github.com/guard/guard#readme) for more info about the Guardfile DSL.
@@ -28,8 +35,8 @@ Please read [Guard doc](https://github.com/guard/guard#readme) for more info abo
28
35
 
29
36
  ``` ruby
30
37
  guard 'yeti' do
31
- watch(%r{^public/javascripts/.*\.js}) { |m| "public/javascripts/test/#{m[1]}_test.html" }
32
- watch(%r{^public/javascripts/test/.*\.html})
38
+ watch(%r{^public/javascripts/(.*).js}) { |m| "public/javascripts/test/#{m[1]}_test.html" }
39
+ watch(%r{^public/javascripts/test/(.*).html})
33
40
  end
34
41
  ```
35
42
  ## Author
data/guard-yeti.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "guard-yeti"
5
- s.version = "0.0.1"
5
+ s.version = "0.0.2"
6
6
  s.authors = ["Simon Højberg", "Christopher Meiklejohn"]
7
7
  s.email = ["r.hackr@gmail.com", "christopher.meiklejohn@gmail.com"]
8
8
  s.homepage = "https://github.com/hojberg/guard-yeti"
@@ -3,28 +3,8 @@ require 'guard/notifier'
3
3
  module Guard
4
4
  class Yeti
5
5
  class Notifier
6
-
7
- def self.guard_message(test_count, assertion_count, failure_count, error_count, skip_count, duration)
8
- message = "#{test_count} examples, #{assertion_count} assertions, #{failure_count} failures, #{error_count} errors"
9
- if skip_count > 0
10
- message << " (#{skip_count} skips)"
11
- end
12
- message << "\nin %.6f seconds, %.4f tests/s, %.4f assertions/s." % [duration, test_count / duration, assertion_count / duration]
13
- message
14
- end
15
-
16
- # failed | pending (skip) | success
17
- def self.guard_image(failure_count, skip_count)
18
- icon = if failure_count > 0
19
- :failed
20
- elsif skip_count > 0
21
- :pending
22
- else
23
- :success
24
- end
25
- end
26
-
27
6
  def self.notify(result, message)
7
+ ::Guard::Notifier.notify(message, :title => 'Yeti test results', :image => (result ? :success : :failed))
28
8
  end
29
9
  end
30
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-yeti
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-10-06 00:00:00.000000000Z
13
+ date: 2011-10-07 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: guard
17
- requirement: &2156145380 !ruby/object:Gem::Requirement
17
+ requirement: &2152857940 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2156145380
25
+ version_requirements: *2152857940
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rake
28
- requirement: &2156144940 !ruby/object:Gem::Requirement
28
+ requirement: &2152857500 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2156144940
36
+ version_requirements: *2152857500
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: minitest
39
- requirement: &2156144520 !ruby/object:Gem::Requirement
39
+ requirement: &2152857080 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2156144520
47
+ version_requirements: *2152857080
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: guard-minitest
50
- requirement: &2156144100 !ruby/object:Gem::Requirement
50
+ requirement: &2152856660 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2156144100
58
+ version_requirements: *2152856660
59
59
  description: Guard watches files. Use guard-yeti to run your YUI unit test via Yeti,
60
60
  when your implementation files change
61
61
  email: