cli-talky-talk 0.0.1 → 0.0.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: 2c65a36d7c14096d11bbb0991d61593131e6e619
4
- data.tar.gz: b4d0041fc22fac1b36fb68a7b2a5cbf73e3c114a
3
+ metadata.gz: 742d772fd41915d53998bdf400f07c1f73b30cd4
4
+ data.tar.gz: 93c07c5e52b8c0541c16bec379ba66022010f967
5
5
  SHA512:
6
- metadata.gz: 9548a0c57e6ec25259075a5260d5d141ada9c5ef0b75cbb2b7b56937136f62428ff13c0dcd3502e143510b88b7d9035e65907dc8ebb350db5312f4ef9cec257d
7
- data.tar.gz: 5706684ef35ca92464d77359822dc156c28b8c8ee73dfb49721c04691e63edd00a582c545ef034435ad13c710ca051dcad5f262413ca21bf6593e986c366879b
6
+ metadata.gz: 09462f738568505761cc9a135feba9b2721a22dbca5ccfd419ced36d761a7be79f2484c6e5e1458978295383abde14c5a3bc45764f4fa96f02619d04ab122fb3
7
+ data.tar.gz: 81c769dd62c6ac6fb16bc3b909e64d86f1eef1a4982fff559636c03959cf0779e8b55108a5e79c13657930675811ced85d358a00e750ca2ed452c04907ee3449
data/README.md CHANGED
@@ -1,6 +1,14 @@
1
- # Cli::Talky::Talk
1
+ # CliTalkyTalk
2
2
 
3
- TODO: Write a gem description
3
+ Ever find yourself checking the terminal to see if the last command you ran is finished? I do all the time so I wrote cli-talky-talk.
4
+
5
+ ## Usage
6
+
7
+ cli-talky-talk is very easy to use. All you need to do is add `&& speak` at the end of a long running terminal command. When the command is done your computer will address you with a random message letting you know that the work is finished.
8
+
9
+ ```
10
+ > <some terminal command that will take a while> && speak
11
+ ```
4
12
 
5
13
  ## Installation
6
14
 
@@ -18,10 +26,6 @@ Or install it yourself as:
18
26
 
19
27
  $ gem install cli-talky-talk
20
28
 
21
- ## Usage
22
-
23
- TODO: Write usage instructions here
24
-
25
29
  ## Contributing
26
30
 
27
31
  1. Fork it ( https://github.com/[my-github-username]/cli-talky-talk/fork )
data/bin/speak CHANGED
@@ -3,6 +3,6 @@
3
3
  require 'bundler/setup'
4
4
  require 'cli-talky-talk'
5
5
 
6
- extend CLITalkyTalk::ClassMethods
6
+ extend CliTalkyTalk::ClassMethods
7
7
 
8
8
  speak
@@ -5,7 +5,7 @@ require 'cli_talky_talk/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "cli-talky-talk"
8
- spec.version = CLITalkyTalk::VERSION
8
+ spec.version = CliTalkyTalk::VERSION
9
9
  spec.authors = ["Sean McCleary"]
10
10
  spec.email = ["seanmcc@gmail.com"]
11
11
  spec.summary = %q{Gives you a random spoken greeting}
@@ -1,4 +1,4 @@
1
- module CLITalkyTalk
1
+ module CliTalkyTalk
2
2
  def self.included(base)
3
3
  binding.pry
4
4
  base.extend(ClassMethods)
@@ -1,3 +1,3 @@
1
- module CLITalkyTalk
2
- VERSION = "0.0.1"
1
+ module CliTalkyTalk
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cli-talky-talk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean McCleary
@@ -70,7 +70,6 @@ files:
70
70
  - bin/speak
71
71
  - cli-talky-talk.gemspec
72
72
  - lib/cli-talky-talk.rb
73
- - lib/cli_talky_talk/talk.rb
74
73
  - lib/cli_talky_talk/version.rb
75
74
  - speak
76
75
  homepage: https://github.com/mrinterweb/cli-talky-talk
@@ -1,54 +0,0 @@
1
- require "cli/talky/talk/version"
2
-
3
- module Cli
4
- module Talky
5
- module Talk
6
- @voices = `say -v \?`.split("\n").select { |v| v =~ /en_US/ }.map { |v| v.gsub(/\s+en_US.*$/,"")}
7
-
8
- @greetings = [
9
- 'ahoy',
10
- 'greeting',
11
- 'saalutations',
12
- 'waazame',
13
- 'bleep booop',
14
- 'exceslior',
15
- 'land hoe',
16
- 'hail',
17
- ]
18
-
19
- @names = [
20
- `whoami`.chomp,
21
- 'Govna',
22
- 'captain',
23
- 'boss',
24
- 'cheef',
25
- 'over loard',
26
- 'dragon commander',
27
- 'your excellence',
28
- 'exhaulted one',
29
- ]
30
-
31
- @statuses = [
32
- 'all done here',
33
- 'works done',
34
- 'bingo!',
35
- 'hazaa',
36
- 'flip Yeah',
37
- 'get back to work',
38
- 'all systems go',
39
- ]
40
-
41
- def rand(arr)
42
- arr.sample
43
- end
44
-
45
- def speak
46
- `say -v#{rand(@voices)} #{random_sentence}`
47
- end
48
-
49
- def random_sentence
50
- "#{rand @greetings}, #{rand @names}! #{rand @statuses}"
51
- end
52
- end
53
- end
54
- end