paul_dix_thundergod 0.0.1 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,12 @@
1
1
  module PaulDixThundergod
2
+ COMMANDS_TO_TRY = %w[afplay play]
3
+
2
4
  def self.play
3
- `afplay #{File.dirname(__FILE__)}/paul_dix_thundergod/support/deploy_sound.aiff &`
5
+ COMMANDS_TO_TRY.each do |command|
6
+ if system("which #{command}")
7
+ `#{command} #{File.dirname(__FILE__)}/paul_dix_thundergod/support/deploy_sound.aiff &`
8
+ break
9
+ end
10
+ end
4
11
  end
5
12
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paul_dix_thundergod
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Trotter Cashion
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-07 00:00:00 -05:00
19
+ date: 2010-12-08 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies: []
22
22
 
@@ -31,6 +31,7 @@ extra_rdoc_files: []
31
31
 
32
32
  files:
33
33
  - lib/paul_dix_thundergod/support/deploy_sound.aiff
34
+ - lib/paul_dix_thundergod/support/thundergod.png
34
35
  - lib/paul_dix_thundergod.rb
35
36
  has_rdoc: true
36
37
  homepage: https://github.com/nodanaonlyzuul