tidbit 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6d699bc4544ebc30497f7a01ea136ae70dfb5d14e004f2f5b6c71ef8bfe837e3
4
+ data.tar.gz: d2ad7900529a3160814dbee06827c3533e3801d575cd34e3b3103ecac3c1b1cc
5
+ SHA512:
6
+ metadata.gz: e5e2cf6a8167d92814d7d696c874fdc1ada675388dd0e3a97c50b8cc160e0363c7e7d7ac5f410e6b41337a0bf66605f226cc8e078ba5a5d5e1d86ee264324a84
7
+ data.tar.gz: 6799d1ed856bfc775f6d3c673e560d05f361b5b5ad726bfb00f1449795228ece61e23b07ecdc09c121fa13281a5d5f01a99faf62a7c37b891ae0a7c1462618bc
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nick Gorbikoff
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # tidbit
2
+
3
+ Small, useful bits for the terminal.
4
+
5
+ This is the first, small release: `tidbit` prints what it is for and `tidbit --version`
6
+ prints the version. The tool grows here, in place, under the same name.
7
+
8
+ ```sh
9
+ gem install tidbit
10
+ tidbit
11
+ ```
12
+
13
+ MIT licence. Nick Gorbikoff.
data/exe/tidbit ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
5
+ require "tidbit"
6
+
7
+ exit Tidbit.run(ARGV)
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tidbit
4
+ VERSION = "0.1.0"
5
+ end
data/lib/tidbit.rb ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "tidbit/version"
4
+
5
+ module Tidbit
6
+ PURPOSE = "Small, useful bits for the terminal."
7
+
8
+ def self.run(argv, out: $stdout)
9
+ if argv.include?("--version") || argv.include?("-v")
10
+ out.puts VERSION
11
+ else
12
+ out.puts "#{PURPOSE} (tidbit #{VERSION})"
13
+ end
14
+ 0
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tidbit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Nick Gorbikoff
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Small, useful bits for the terminal; the first release carries the name
13
+ and the executable while the tool takes shape.
14
+ email:
15
+ - nick.gorbikoff@gmail.com
16
+ executables:
17
+ - tidbit
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - LICENSE.md
22
+ - README.md
23
+ - exe/tidbit
24
+ - lib/tidbit.rb
25
+ - lib/tidbit/version.rb
26
+ homepage: https://rubygems.org/gems/tidbit
27
+ licenses:
28
+ - MIT
29
+ metadata:
30
+ rubygems_mfa_required: 'true'
31
+ homepage_uri: https://rubygems.org/gems/tidbit
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '3.2'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubygems_version: 4.0.12
47
+ specification_version: 4
48
+ summary: Small, useful bits for the terminal.
49
+ test_files: []