kokomo 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -2
  3. data/exe/kokomo +8 -3
  4. data/lib/kokomo/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0eaa85291d7102a742d91a089c99ef33901d60a4
4
- data.tar.gz: 3a96af63d335ecfb09d5211efc6bd16e741bb4d4
3
+ metadata.gz: a312636f75f915083ffd87d2c2bccc7853278951
4
+ data.tar.gz: 354c09231a9b968028ce176f60ca54fbf9d06cef
5
5
  SHA512:
6
- metadata.gz: 6b5e779087783a554ff55b432c9118869d92e294f49eb084cd2846c5b5887a4139b8e03cdafda348e0180d70ab163a19f89d667ffe091cc1f1eba94c9fa33405
7
- data.tar.gz: 3ae1251ce373c19be2e0018670ec9adffdab8a2f5e180f0b76b59001100d42678543544a1b8f1985baa616e55b1857e1604baed7f99fb40b5d1b57cba2c63b11
6
+ metadata.gz: 5885a39bc8e79e53d114e3e73c4b68a2126eaff5edd07719a8c5c24230002360411677da515bcfd6f6749685301bb8b26f98329e237b4c1a417321bd1c2a8758
7
+ data.tar.gz: 3b546faa648100f91d54ac2b67c271801675c30a7179aff0573073eaebc899912188d6f473146b1bff65f196ea1eee865d952a059fd090e9733ebe6077dbc04c
data/README.md CHANGED
@@ -30,20 +30,29 @@ $ kokomo
30
30
 
31
31
  Then...WHAMMO!
32
32
 
33
+ ![A still from the kokomo video](./resources/kokomo.png)
34
+
33
35
  ## Advanced Usage
36
+
34
37
  Advanced users can take advantage of `kokomo`'s powerful command line interface.
35
38
 
36
39
  ```sh
37
- $ kokomo -h
38
40
  Usage: kokomo [options]
39
41
  -c, --classic Classic Kokomo. Default.
40
42
  -m, --muppets kokomo by the muppets.wmv
41
43
  -k, --karaoke Kokomo for Karaoke with friends
44
+ -l, --lyrics Kokomo lyrics
42
45
  -r, --random DANGER!!! Random Kokomo
43
46
  -h, --help Show this help message
44
47
  ```
45
48
 
46
- ![A still from the kokomo video](./resources/kokomo.png)
49
+ ### Fun With `--lyrics`
50
+
51
+ ```sh
52
+ $ kokomo -l | say
53
+ $ kokomo -l | say -v Fred
54
+ $ kokomo -l | say -v "Bad News"
55
+ ```
47
56
 
48
57
  ## Development
49
58
 
data/exe/kokomo CHANGED
@@ -24,10 +24,15 @@ OptionParser.new do |parser|
24
24
  parser.on('-c', '--classic', 'Classic Kokomo. Default.') {}
25
25
  parser.on('-m', '--muppets', 'kokomo by the muppets.wmv') { current_kokomo = KOKOMOS[:muppets] }
26
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; }
27
+ parser.on('-l', '--lyrics', 'Kokomo lyrics') { current_kokomo = KOKOMOS[:lyrics] }
28
+ parser.on('-r', '--random', 'DANGER!!! Random Kokomo') { current_kokomo = KOKOMOS[KOKOMOS.keys.sample] }
29
+ parser.on('-h', '--help', 'Show this help message') { puts parser; exit 0; }
29
30
  end.parse!
30
31
 
31
- Launchy.open(current_kokomo, options = {}) do |exception|
32
+ if current_kokomo == :lyrics
32
33
  print_to_screen
34
+ else
35
+ Launchy.open(current_kokomo, options = {}) do |exception|
36
+ print_to_screen
37
+ end
33
38
  end
@@ -1,3 +1,3 @@
1
1
  module Kokomo
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nodanaonlyzuul
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-16 00:00:00.000000000 Z
11
+ date: 2018-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: launchy