mk.rb 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0296e68fc4776ea3c573bdfb5675bf04bdfedcdf60bb097b2e2c27a1b095c105'
4
- data.tar.gz: 9e4db2953ea842f8db9dea9b8e21fda41c75e98b18409126d521163420c11555
3
+ metadata.gz: '02931e3bf7535858b38cda80f99ef786ac8d130153e4df3a5fefd32585f484c4'
4
+ data.tar.gz: 68d2f3d04508ae8f2ef3e8312688c66712c4a76b6f5297acbb3b8067bdc67a45
5
5
  SHA512:
6
- metadata.gz: a9a47bb134d6dd06f509d03b3c3850b90a4e11c0b4123bc48cdd65243984f23ab738d637be66b85b3dbe0a73f0793e2f35f6d879eae0b448e75f9ce665b05d2a
7
- data.tar.gz: fc40811aadad66587ba0e3ac4d5b436dfb266218a3aa8ea3f68d82636cb6c045d44a491e957eee9c559b9c5b3a7c9818da3998a77eae070b4630591e0a18fc91
6
+ metadata.gz: e0908af9c5b578bf9df7e3c4d987031b0d66222e789702b745917c2f444a1101d524dff81b7bd7f01dc5d31b20bc44b8287b648409614bb1226ebf90b2bf9238
7
+ data.tar.gz: e21a7a17b09f013d3ae7250f7b13c4a0ea6550f897abf68b8df632c2331ef7233c85ef1f7acb9e4d57b94ffc05023345205a54f33941fbc1f2534d33e6b18ec4
data/lib/mk/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mk
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
6
+
7
+ group :development do
8
+ #gem "minitest", "~> 5.0"
9
+ #gem "rake", "~> 13.0"
10
+ #gem "rubocop", "~> 1.21"
11
+ #gem "yard", "~> 0.9"
12
+ end
@@ -0,0 +1,55 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ mirrorfile (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.3)
10
+ json (2.18.0)
11
+ language_server-protocol (3.17.0.5)
12
+ lint_roller (1.1.0)
13
+ minitest (5.27.0)
14
+ parallel (1.27.0)
15
+ parser (3.3.10.0)
16
+ ast (~> 2.4.1)
17
+ racc
18
+ prism (1.7.0)
19
+ racc (1.8.1)
20
+ rainbow (3.1.1)
21
+ rake (13.3.1)
22
+ regexp_parser (2.11.3)
23
+ rubocop (1.82.1)
24
+ json (~> 2.3)
25
+ language_server-protocol (~> 3.17.0.2)
26
+ lint_roller (~> 1.1.0)
27
+ parallel (~> 1.10)
28
+ parser (>= 3.3.0.2)
29
+ rainbow (>= 2.2.2, < 4.0)
30
+ regexp_parser (>= 2.9.3, < 3.0)
31
+ rubocop-ast (>= 1.48.0, < 2.0)
32
+ ruby-progressbar (~> 1.7)
33
+ unicode-display_width (>= 2.4.0, < 4.0)
34
+ rubocop-ast (1.49.0)
35
+ parser (>= 3.3.7.2)
36
+ prism (~> 1.7)
37
+ ruby-progressbar (1.13.0)
38
+ unicode-display_width (3.2.0)
39
+ unicode-emoji (~> 4.1)
40
+ unicode-emoji (4.2.0)
41
+ yard (0.9.38)
42
+
43
+ PLATFORMS
44
+ ruby
45
+ x86_64-linux
46
+
47
+ DEPENDENCIES
48
+ minitest (~> 5.0)
49
+ mirrorfile!
50
+ rake (~> 13.0)
51
+ rubocop (~> 1.21)
52
+ yard (~> 0.9)
53
+
54
+ BUNDLED WITH
55
+ 2.7.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Your Name
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.
@@ -0,0 +1,39 @@
1
+ # examplegem
2
+
3
+ tbc...
4
+
5
+
6
+ ## Install
7
+ ```ruby
8
+ gem install examplegem
9
+ ```
10
+
11
+ ## Usage
12
+ ```bash
13
+ tbc...
14
+ ```
15
+
16
+
17
+ ## Contributing
18
+
19
+ Bug reports and pull requests are welcome on GitHub.
20
+
21
+ ## Development
22
+
23
+ After checking out the repo:
24
+
25
+ ```bash
26
+ bin/setup
27
+ bundle exec rake test
28
+ ```
29
+
30
+ Generate documentation:
31
+
32
+ ```bash
33
+ bundle exec yard doc
34
+ bundle exec yard server # Browse at http://localhost:8808
35
+ ```
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](LICENSE.txt).
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ #require "bundler/gem_tasks"
4
+ #require "rake/testtask"
5
+ #require "yard"
6
+ #
7
+ #Rake::TestTask.new(:test) do |t|
8
+ # t.libs << "test"
9
+ # t.libs << "lib"
10
+ # t.test_files = FileList["test/**/*_test.rb"]
11
+ #end
12
+ #
13
+ #YARD::Rake::YardocTask.new do |t|
14
+ # t.files = ["lib/**/*.rb"]
15
+ # t.options = ["--markup", "markdown"]
16
+ #end
17
+ #
18
+ #task default: :test
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "examplegem"
6
+ require "irb"
7
+
8
+ IRB.start(__FILE__)
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/examplegem/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "examplegem"
7
+ spec.version = ExampleGem::VERSION
8
+ spec.authors = ["Linus Torvalds"]
9
+ spec.email = ["linus-torvalds@github.com"]
10
+
11
+ spec.summary = "Manage local mirrors of git repositories"
12
+
13
+ spec.description = <<~DESC
14
+ Put a description here.
15
+ DESC
16
+
17
+ spec.homepage = "https://github.com/torvalds/examplegem"
18
+ spec.license = "MIT"
19
+ spec.required_ruby_version = ">= 3.2.0"
20
+
21
+ spec.metadata["homepage_uri"] = spec.homepage
22
+ spec.metadata["source_code_uri"] = spec.homepage
23
+ spec.metadata["documentation_uri"] = spec.homepage
24
+ spec.metadata["rubygems_mfa_required"] = "true"
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|data)/}) }
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ spec.add_development_dependency "minitest", "~> 5.0"
32
+ spec.add_development_dependency "rake", "~> 13.0"
33
+ spec.add_development_dependency "rubocop", "~> 1.21"
34
+ spec.add_development_dependency "yard", "~> 0.9"
35
+ end
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require_relative "../lib/examplegem"
5
+
6
+ exit ExampleGem::CLI.new.call(ARGV)
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ExampleGem
4
+ class CLI
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ExampleGem
4
+ VERSION = "1.0.0"
5
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "examplegem/version"
4
+ require_relative "examplegem/cli"
5
+
6
+ module ExampleGem
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "test_helper"
4
+ require "stringio"
5
+
6
+ class CLITest < Minitest::Test
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
4
+ require "examplegem"
5
+ require "minitest/autorun"
6
+ require "fileutils"
7
+ require "tmpdir"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mk.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Kidd
@@ -90,6 +90,20 @@ files:
90
90
  - lib/mk/version.rb
91
91
  - mk.gemspec
92
92
  - templates/.gitkeep
93
+ - templates/gem/Gemfile
94
+ - templates/gem/Gemfile.lock
95
+ - templates/gem/LICENSE.txt
96
+ - templates/gem/README.md
97
+ - templates/gem/Rakefile
98
+ - templates/gem/bin/console
99
+ - templates/gem/bin/setup
100
+ - templates/gem/examplegem.gemspec
101
+ - templates/gem/exe/examplegem
102
+ - templates/gem/lib/examplegem.rb
103
+ - templates/gem/lib/examplegem/cli.rb
104
+ - templates/gem/lib/examplegem/version.rb
105
+ - templates/gem/test/cli_test.rb
106
+ - templates/gem/test/test_helper.rb
93
107
  homepage: https://github.com/n-at-han-k/mk.rb
94
108
  licenses:
95
109
  - MIT