cadre 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ module Cadre
12
12
  def go
13
13
  cmd = "notify-send #{options} \"#@summary\" \"#@message\""
14
14
  %x[#{cmd}]
15
- %x[paplay #{Valise.find(["sounds", sound]).full_path}]
15
+ %x[paplay #{Valise.find(["sounds", sound]).full_path}] if String === sound
16
16
  end
17
17
 
18
18
  def options
@@ -26,15 +26,14 @@ module Cadre
26
26
  notifier.transient = true
27
27
  notifier.summary = "Finished spec run"
28
28
  notifier.message = notify_message(duration, example_count, failure_count, pending_count)
29
- notifier.sound = "failure" if failure_count > 0
30
29
  else
31
30
  notifier.summary = "Finished long spec run"
32
31
  notifier.message = notify_message(duration, example_count, failure_count, pending_count)
33
- if failure_count > 0
34
- notifier.sound = "failure"
35
- else
36
- notifier.sound = "success"
37
- end
32
+ end
33
+ if failure_count > 0
34
+ notifier.sound = "failure"
35
+ else
36
+ notifier.sound = "success"
38
37
  end
39
38
  notifier.go
40
39
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: cadre
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Judson Lester
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-25 00:00:00.000000000 Z
12
+ date: 2013-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false
@@ -120,7 +120,7 @@ rdoc_options:
120
120
  - --main
121
121
  - doc/README
122
122
  - --title
123
- - cadre-0.0.2 Documentation
123
+ - cadre-0.0.3 Documentation
124
124
  require_paths:
125
125
  - lib/
126
126
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -129,7 +129,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  segments:
131
131
  - 0
132
- hash: 714834543
132
+ hash: -84194193
133
133
  version: '0'
134
134
  none: false
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement