kokomo 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a5f402a9504a365044ae3cc8adf8d544dae7661
4
- data.tar.gz: 6e4c46a96f8942cb2fb54c440b83b87f6d110df1
3
+ metadata.gz: 0eaa85291d7102a742d91a089c99ef33901d60a4
4
+ data.tar.gz: 3a96af63d335ecfb09d5211efc6bd16e741bb4d4
5
5
  SHA512:
6
- metadata.gz: df871afbf4835051f73024cc1e9e8d9187c88543927a1ea2d88f9ea9bc5e232885808104ad7451eb3ece4b41e2ad9bb15c3ab36c842b34850279e880864398ca
7
- data.tar.gz: 14a061f99727977d92a36e9ff124baf7bdbc7f4ac02a0bea3a68c3f4717c923e769b8ec4e93dc8a9cfab64d35b758c34e9fd2936d910557e1b2af3eef80d0237
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
@@ -0,0 +1,4 @@
1
+ # Releases
2
+
3
+ * 0.1.1: Initial Releases
4
+ * 0.1.2: Adds option flags for different kokomos ([Thanks Jack!]((https://github.com/nodanaonlyzuul/kokomo/pull/1))
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
- Launchy.open('https://www.youtube.com/watch?v=fJWmbLS2_ec', options = {}) do |exception|
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
@@ -1,3 +1,3 @@
1
1
  module Kokomo
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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.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-08-27 00:00:00.000000000 Z
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