snug 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: 3787298c9bc2cdcff78ef25362bc78f12b4698693aa785ba4b0d3c6216b136a8
4
+ data.tar.gz: 90fdcf3c25e5fdbc51afa04601a98562302f84949901c9475fe6d22a146f769f
5
+ SHA512:
6
+ metadata.gz: f2d8d5464c7a440ee7fe70106b52431121f273093f7af61fd6dd9d89237b3e84adc1c43d38d899f7d38261ca76d6e29978d57dd81841e5e068b2aabd3e622f33
7
+ data.tar.gz: 8c2cdb1f4cfe0794a5ab89addf489ae6d63c46dfa32ada042fa2b9b65ece790e849165ba43d6db9c845809ab40f305e615316d432622e548b1f860901a6188bc
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
+ # snug
2
+
3
+ A small, cosy home for personal command-line tools.
4
+
5
+ This is the first, small release: `snug` prints what it is for and `snug --version`
6
+ prints the version. The tool grows here, in place, under the same name.
7
+
8
+ ```sh
9
+ gem install snug
10
+ snug
11
+ ```
12
+
13
+ MIT licence. Nick Gorbikoff.
data/exe/snug 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 "snug"
6
+
7
+ exit Snug.run(ARGV)
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Snug
4
+ VERSION = "0.1.0"
5
+ end
data/lib/snug.rb ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "snug/version"
4
+
5
+ module Snug
6
+ PURPOSE = "A small, cosy home for personal command-line tools."
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} (snug #{VERSION})"
13
+ end
14
+ 0
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: snug
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: A small, cosy home for personal command-line tools; the first release
13
+ carries the name and the executable while the tool takes shape.
14
+ email:
15
+ - nick.gorbikoff@gmail.com
16
+ executables:
17
+ - snug
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - LICENSE.md
22
+ - README.md
23
+ - exe/snug
24
+ - lib/snug.rb
25
+ - lib/snug/version.rb
26
+ homepage: https://rubygems.org/gems/snug
27
+ licenses:
28
+ - MIT
29
+ metadata:
30
+ rubygems_mfa_required: 'true'
31
+ homepage_uri: https://rubygems.org/gems/snug
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: A small, cosy home for personal command-line tools.
49
+ test_files: []