nate 0.1.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: 79e4fb30534eeca6071b1bf7a42b94dfdd7ae8297ae85daa77a68767e5a78d81
4
+ data.tar.gz: 39e0589bb79c5c805271ee93aa70ad508ee5cc57afa26bee192f01934526b8f6
5
+ SHA512:
6
+ metadata.gz: 9d37a5f400e90437609fc53401fd1580ea1464f554eefb9fe4bc587a472df464642645c0cfb42aaf7189a7ca8ab90987595905ebd74f9225ef272c9d1b75caa6
7
+ data.tar.gz: bda693969a8c20df8cdb858cc075e714bc7500a126900f95fce1cdc26f100b92e2561604ecf3f6686388b88c0b27c2feb08477ac8d4ddf63b40ac80f1fe8c688
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Nate Berkopec
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,4 @@
1
+ ```
2
+ gem install nate
3
+ nate
4
+ ```
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
data/exe/nate ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "nate"
5
+
6
+ Nate::Card.display
data/lib/nate/card.rb ADDED
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nate
4
+ class Card
5
+ COLORS = {
6
+ reset: "\e[0m", bold: "\e[1m", blue: "\e[34m",
7
+ green: "\e[32m", magenta: "\e[35m", yellow: "\e[33m",
8
+ cyan: "\e[36m", white: "\e[37m"
9
+ }
10
+
11
+ def self.display
12
+ puts "\n" + [
13
+ color("Nate Berkopec", [:bold, :white]),
14
+ color("Ruby Performance Consultant", :green),
15
+ "",
16
+ color("The Speedshop", :blue),
17
+ color("@nateberkopec", :magenta),
18
+ color("me@nateberkopec.com", :yellow),
19
+ color("https://www.speedshop.co", :cyan)
20
+ ].join("\n") + "\n"
21
+ end
22
+
23
+ def self.color(text, c)
24
+ "#{[c].flatten.map { |k| COLORS[k] }.join}#{text}#{COLORS[:reset]}"
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nate
4
+ VERSION = "0.1.0"
5
+ end
data/lib/nate.rb ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "nate/version"
4
+ require_relative "nate/card"
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nate
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Nate Berkopec
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: No dead trees
14
+ email:
15
+ - me@nateberkopec.com
16
+ executables:
17
+ - nate
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - LICENSE.txt
22
+ - README.md
23
+ - Rakefile
24
+ - exe/nate
25
+ - lib/nate.rb
26
+ - lib/nate/card.rb
27
+ - lib/nate/version.rb
28
+ homepage: https://github.com/nateberkopec/nate
29
+ licenses:
30
+ - MIT
31
+ metadata:
32
+ homepage_uri: https://github.com/nateberkopec/nate
33
+ source_code_uri: https://github.com/nateberkopec/nate
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.0.0
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubygems_version: 3.5.22
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: Business cards are lame
53
+ test_files: []