kokomo 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/RELEASES.md +4 -0
- data/exe/kokomo +19 -1
- data/lib/kokomo/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0eaa85291d7102a742d91a089c99ef33901d60a4
|
4
|
+
data.tar.gz: 3a96af63d335ecfb09d5211efc6bd16e741bb4d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b5e779087783a554ff55b432c9118869d92e294f49eb084cd2846c5b5887a4139b8e03cdafda348e0180d70ab163a19f89d667ffe091cc1f1eba94c9fa33405
|
7
|
+
data.tar.gz: 3ae1251ce373c19be2e0018670ec9adffdab8a2f5e180f0b76b59001100d42678543544a1b8f1985baa616e55b1857e1604baed7f99fb40b5d1b57cba2c63b11
|
data/README.md
CHANGED
@@ -30,6 +30,19 @@ $ kokomo
|
|
30
30
|
|
31
31
|
Then...WHAMMO!
|
32
32
|
|
33
|
+
## Advanced Usage
|
34
|
+
Advanced users can take advantage of `kokomo`'s powerful command line interface.
|
35
|
+
|
36
|
+
```sh
|
37
|
+
$ kokomo -h
|
38
|
+
Usage: kokomo [options]
|
39
|
+
-c, --classic Classic Kokomo. Default.
|
40
|
+
-m, --muppets kokomo by the muppets.wmv
|
41
|
+
-k, --karaoke Kokomo for Karaoke with friends
|
42
|
+
-r, --random DANGER!!! Random Kokomo
|
43
|
+
-h, --help Show this help message
|
44
|
+
```
|
45
|
+
|
33
46
|
![A still from the kokomo video](./resources/kokomo.png)
|
34
47
|
|
35
48
|
## Development
|
data/RELEASES.md
ADDED
data/exe/kokomo
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'launchy'
|
4
|
+
require 'optparse'
|
4
5
|
|
5
6
|
def print_to_screen
|
6
7
|
print ''
|
@@ -10,6 +11,23 @@ def print_to_screen
|
|
10
11
|
print ''
|
11
12
|
end
|
12
13
|
|
13
|
-
|
14
|
+
KOKOMOS = {
|
15
|
+
standard: 'https://www.youtube.com/watch?v=fJWmbLS2_ec',
|
16
|
+
muppets: 'https://www.youtube.com/watch?v=m-WAhdvygpE',
|
17
|
+
karaoke: 'https://www.youtube.com/watch?v=wxd_yDxYBh0'
|
18
|
+
}.freeze
|
19
|
+
|
20
|
+
current_kokomo = KOKOMOS[:standard]
|
21
|
+
|
22
|
+
OptionParser.new do |parser|
|
23
|
+
parser.banner = 'Usage: kokomo [options]'
|
24
|
+
parser.on('-c', '--classic', 'Classic Kokomo. Default.') {}
|
25
|
+
parser.on('-m', '--muppets', 'kokomo by the muppets.wmv') { current_kokomo = KOKOMOS[:muppets] }
|
26
|
+
parser.on('-k', '--karaoke', 'Kokomo for Karaoke with friends') { current_kokomo = KOKOMOS[:karaoke] }
|
27
|
+
parser.on('-r', '--random', 'DANGER!!! Random Kokomo') { current_kokomo = KOKOMOS[KOKOMOS.keys.sample] }
|
28
|
+
parser.on('-h', '--help', 'Show this help message') { puts parser; exit 0; }
|
29
|
+
end.parse!
|
30
|
+
|
31
|
+
Launchy.open(current_kokomo, options = {}) do |exception|
|
14
32
|
print_to_screen
|
15
33
|
end
|
data/lib/kokomo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kokomo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nodanaonlyzuul
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: launchy
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- ".gitignore"
|
85
85
|
- Gemfile
|
86
86
|
- README.md
|
87
|
+
- RELEASES.md
|
87
88
|
- Rakefile
|
88
89
|
- bin/console
|
89
90
|
- bin/setup
|