lettuce_entertain_you 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 365454543a794171caba9a11b7edbbf1124169433f4c433f64b531bc345ba531
4
+ data.tar.gz: 4ab13095f29cae14a83cf8f78bda1431bdda157c531519ff08604a3e8806e6b4
5
+ SHA512:
6
+ metadata.gz: c78a698a3201a029d30e4b211c758ebd39eecab45179144501cf400447d95c5a534cd242c616e02b50b6e2dc4e8d94dd60099e521a3f3aaa8f140f547b3cdafd
7
+ data.tar.gz: f2edf6ad3bd071be99e9524717fef186e4d7642ebb13e1574bb59c13485afb420f3f9a74bdfab1872fcb2ccef0fac55636899be1b282c9cd769b35279a844fa5
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in lettuce_entertain_you.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Mike Guterl
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # Lettuce Entertain You
2
+
3
+ ## Usage
4
+
5
+ ```sh
6
+ gem install lettuce_entertain_you`
7
+ ```
8
+
9
+ ### Lettuce
10
+ ```sh
11
+ lettuce Happy Birthday
12
+ ```
13
+
14
+ ### Shrimp
15
+ ```sh
16
+ lettuce -s Shrimpy
17
+ ```
18
+
19
+ ## Contributing
20
+
21
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mguterl/lettuce_entertain_you.
22
+
23
+ ## License
24
+
25
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/exe/lettuce ADDED
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "optparse"
4
+
5
+ def shrimp(string)
6
+ string.chars.map { |char| char == " " ? char : ":shrimp-#{char}:" }.join
7
+ end
8
+
9
+ def lettuce(string)
10
+ string.chars.map { |char| char == " " ? char : ":lettuce-#{char}:" }.join
11
+ end
12
+
13
+ params = {}
14
+ OptionParser.new do |opts|
15
+ opts.on('-s')
16
+ end.parse!(into: params)
17
+
18
+ text = ARGV.join(" ")
19
+
20
+ if params[:s]
21
+ puts shrimp(text)
22
+ else
23
+ puts lettuce(text)
24
+ end
@@ -0,0 +1,20 @@
1
+ Gem::Specification.new do |spec|
2
+ spec.name = "lettuce_entertain_you"
3
+ spec.version = "1.0.0"
4
+ spec.authors = ["Mike Guterl", "Jim Graham"]
5
+ spec.email = ["mike@diminishing.org", "jim.graham@shopify.com"]
6
+
7
+ spec.summary = %q{Generate shrimp and lettuce text for slack.}
8
+ spec.description = %q{Generate shrimp and lettuce text for slack.}
9
+ spec.homepage = "https://github.com/mguterl/lettuce_entertain_you"
10
+ spec.license = "MIT"
11
+
12
+ # Specify which files should be added to the gem when it is released.
13
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
14
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
15
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
+ end
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
20
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lettuce_entertain_you
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Mike Guterl
8
+ - Jim Graham
9
+ autorequire:
10
+ bindir: exe
11
+ cert_chain: []
12
+ date: 2022-06-16 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Generate shrimp and lettuce text for slack.
15
+ email:
16
+ - mike@diminishing.org
17
+ - jim.graham@shopify.com
18
+ executables:
19
+ - lettuce
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - ".gitignore"
24
+ - Gemfile
25
+ - LICENSE.txt
26
+ - README.md
27
+ - exe/lettuce
28
+ - lettuce_entertain_you.gemspec
29
+ homepage: https://github.com/mguterl/lettuce_entertain_you
30
+ licenses:
31
+ - MIT
32
+ metadata: {}
33
+ post_install_message:
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubygems_version: 3.0.3.1
49
+ signing_key:
50
+ specification_version: 4
51
+ summary: Generate shrimp and lettuce text for slack.
52
+ test_files: []