honkhonk 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/Readme.md +2 -2
- data/bin/honk +3 -1
- data/honk.gemspec +1 -1
- data/lib/honk.rb +11 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10c96d7dd74b1a63f7443303e14cc31546c1ec014ad96686de34a892ee2ebf11
|
4
|
+
data.tar.gz: c5f5db1f22c45cc2aebed8376fc9657a43722becc82eb160e235376adc1beb12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b8fc52ad85b34e4d892b074c6ebed39b16c4774aef0398383f443e587225333db6633339cbb00e30dde1153141573499c5c5b52d4384a9e92556d596e851e29
|
7
|
+
data.tar.gz: 5cc6d76b89a29248e2c318b03da540e56f0be7a59a05d9b9f18c790bceb2990e97345dc784a283317d005673d573efbc1bf27788a1e7bd9353bb3e06faf2a4bb
|
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
data/bin/honk
CHANGED
data/honk.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "honkhonk"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.2"
|
8
8
|
spec.required_ruby_version = ">= 2.5.0"
|
9
9
|
spec.authors = ["Jon Rowe"]
|
10
10
|
spec.email = ["hello@jonrowe.co.uk"]
|
data/lib/honk.rb
CHANGED
@@ -4,6 +4,16 @@ module Honk
|
|
4
4
|
module_function
|
5
5
|
|
6
6
|
def call
|
7
|
-
|
7
|
+
if run_quietly('which afplay')
|
8
|
+
run_quietly("afplay #{HONK}")
|
9
|
+
elsif run_quietly('which mplayer')
|
10
|
+
run_quietly("mplayer #{HONK}")
|
11
|
+
else
|
12
|
+
raise "No `afplay` or `mplayer` executable"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def run_quietly(command)
|
17
|
+
system(command, out: '/dev/null', err: '/dev/null')
|
8
18
|
end
|
9
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honkhonk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Rowe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|