yeahboi 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/yeahboi.rb +0 -8
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee11b67d900baa48912d25ce5c6f7aea0217d3ff
|
|
4
|
+
data.tar.gz: ef0f960c900e1e564d9e56d08efa79194bf92f3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4322833ae5d64f669820dea305babdb67b7c079937ee3cb6fad22e993c4f7d3652e22e372b90162bcb94423d4e221aaaee8acea837a79d9e31e7e103b77c5c40
|
|
7
|
+
data.tar.gz: 08f561d8786e0dce40b90cf0f82aa260a1c432e33b44fe30202d9af5c3fc066f700dd8526a15c35359784bdc0840f1ef5a581626fd838f3cb838488bc95b38a3
|
data/lib/yeahboi.rb
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
module Yeahboi
|
|
2
2
|
def self.short #2 secs of 'yeah boy'
|
|
3
|
-
# spawn executes a command and returns it's process ID
|
|
4
|
-
# The parent process should use Process.wait to collect the termination status
|
|
5
|
-
# of its child or use Process.detach to register disinterest in their status;
|
|
6
|
-
# otherwise, the operating system may accumulate zombie processes.
|
|
7
3
|
play_short = spawn("afplay -t 2 #{Yeahboi.file_path}")
|
|
8
4
|
text = spawn('printf "YEAH BOI"; while true; do printf "I"; sleep 0.1; done')
|
|
9
|
-
# could also be text = spawn('printf "YEAH BOI"; while sleep 0.1; do printf "I"; done')
|
|
10
5
|
|
|
11
6
|
Process.wait(play_short)
|
|
12
7
|
Process.kill('TERM', text)
|
|
@@ -23,9 +18,6 @@ module Yeahboi
|
|
|
23
18
|
end
|
|
24
19
|
|
|
25
20
|
def self.file_path #returns absolute path of audiofile
|
|
26
|
-
#http://stackoverflow.com/questions/4474918/file-expand-path-gemfile-file-how-does-this-work-where-is-the-fil#4479926
|
|
27
21
|
File.expand_path('../../audio/longestyeahboyever.wav', __FILE__)
|
|
28
22
|
end
|
|
29
23
|
end
|
|
30
|
-
|
|
31
|
-
# play_long = spawn("afplay #{Yeahboi.file_path}")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yeahboi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Patty SantaCruz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-12-
|
|
11
|
+
date: 2016-12-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: patty.stacruz@gmail.com
|
|
@@ -22,7 +22,7 @@ files:
|
|
|
22
22
|
- bin/yeahboi
|
|
23
23
|
- bin/yeahboilong
|
|
24
24
|
- lib/yeahboi.rb
|
|
25
|
-
homepage: http://github.com/pattysc
|
|
25
|
+
homepage: http://github.com/pattysc/yeahboi
|
|
26
26
|
licenses: []
|
|
27
27
|
metadata: {}
|
|
28
28
|
post_install_message:
|