cli-talky-talk 0.0.1 → 0.0.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 +10 -6
- data/bin/speak +1 -1
- data/cli-talky-talk.gemspec +1 -1
- data/lib/cli-talky-talk.rb +1 -1
- data/lib/cli_talky_talk/version.rb +2 -2
- metadata +1 -2
- data/lib/cli_talky_talk/talk.rb +0 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 742d772fd41915d53998bdf400f07c1f73b30cd4
|
4
|
+
data.tar.gz: 93c07c5e52b8c0541c16bec379ba66022010f967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09462f738568505761cc9a135feba9b2721a22dbca5ccfd419ced36d761a7be79f2484c6e5e1458978295383abde14c5a3bc45764f4fa96f02619d04ab122fb3
|
7
|
+
data.tar.gz: 81c769dd62c6ac6fb16bc3b909e64d86f1eef1a4982fff559636c03959cf0779e8b55108a5e79c13657930675811ced85d358a00e750ca2ed452c04907ee3449
|
data/README.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
|
-
#
|
1
|
+
# CliTalkyTalk
|
2
2
|
|
3
|
-
|
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
data/cli-talky-talk.gemspec
CHANGED
@@ -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 =
|
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}
|
data/lib/cli-talky-talk.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "0.0.
|
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.
|
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
|
data/lib/cli_talky_talk/talk.rb
DELETED
@@ -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
|