kettle-dev 1.1.2 → 1.1.4
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +26 -1
- data/README.md +1 -1
- data/README.md.example +1 -1
- data/Rakefile.example +1 -5
- data/bin/setup +8 -0
- data/lib/kettle/dev/dvcs_cli.rb +6 -6
- data/lib/kettle/dev/template_helpers.rb +26 -0
- data/lib/kettle/dev/version.rb +1 -1
- data/lib/kettle/dev.rb +2 -3
- data.tar.gz.sig +0 -0
- metadata +5 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e041df45a5e998c2dabf617686124f45b29aa26d93c1dcf21e0da99cffcac3b
|
4
|
+
data.tar.gz: 183b02683f8a96d82ad6df04371b8776110a30eb768c395060f3d8dd2a5011b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 505620d1cef37c67523e6c8760172f215b650e3f972397170f4f0275a838c8b0a1d9ab1b36e5cc1dbeedfb8327672e02b94be7e2269cb3f446375a83abed040b
|
7
|
+
data.tar.gz: 2de8a12668ed28128b11425f2097473ad60714a98985375c249053ca001b9e23e295c2e1afde917b2d8a13fab4270362cc5bffb4916637e56dd6b43687240425
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -24,6 +24,27 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
24
24
|
### Fixed
|
25
25
|
### Security
|
26
26
|
|
27
|
+
## [1.1.4] - 2025-09-02
|
28
|
+
- TAG: [v1.1.4][1.1.4t]
|
29
|
+
- COVERAGE: 67.64% -- 554/819 lines in 9 files
|
30
|
+
- BRANCH COVERAGE: 53.25% -- 221/415 branches in 9 files
|
31
|
+
- 76.22% documented
|
32
|
+
### Fixed
|
33
|
+
- documentation of rake tasks from this gem no longer includes standard gem tasks
|
34
|
+
- kettle-dev-setup: package bin/setup so setup can copy it
|
35
|
+
- kettle_dev_install task: set executable flag for .git-hooks script when installing
|
36
|
+
|
37
|
+
## [1.1.3] - 2025-09-02
|
38
|
+
- TAG: [v1.1.3][1.1.3t]
|
39
|
+
- COVERAGE: 97.14% -- 2857/2941 lines in 22 files
|
40
|
+
- BRANCH COVERAGE: 82.29% -- 1194/1451 branches in 22 files
|
41
|
+
- 76.22% documented
|
42
|
+
### Changed
|
43
|
+
- URL for migrating repo to CodeBerg:
|
44
|
+
- https://codeberg.org/repo/migrate
|
45
|
+
### Fixed
|
46
|
+
- Stop double defining DEBUGGING constant
|
47
|
+
|
27
48
|
## [1.1.2] - 2025-09-02
|
28
49
|
- TAG: [v1.1.2][1.1.2t]
|
29
50
|
- COVERAGE: 97.14% -- 2858/2942 lines in 22 files
|
@@ -447,7 +468,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
447
468
|
- Selecting will run the selected workflow via `act`
|
448
469
|
- This may move to its own gem in the future.
|
449
470
|
|
450
|
-
[Unreleased]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.
|
471
|
+
[Unreleased]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.4...HEAD
|
472
|
+
[1.1.4]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.3...v1.1.4
|
473
|
+
[1.1.4t]: https://github.com/kettle-rb/kettle-dev/releases/tag/v1.1.4
|
474
|
+
[1.1.3]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.2...v1.1.3
|
475
|
+
[1.1.3t]: https://github.com/kettle-rb/kettle-dev/releases/tag/v1.1.3
|
451
476
|
[1.1.2]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.1...v1.1.2
|
452
477
|
[1.1.2t]: https://github.com/kettle-rb/kettle-dev/releases/tag/v1.1.2
|
453
478
|
[1.1.1]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.0...v1.1.1
|
data/README.md
CHANGED
@@ -795,7 +795,7 @@ Thanks for RTFM. ☺️
|
|
795
795
|
[📌gitmoji]:https://gitmoji.dev
|
796
796
|
[📌gitmoji-img]:https://img.shields.io/badge/gitmoji_commits-%20😜%20😍-34495e.svg?style=flat-square
|
797
797
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
798
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-
|
798
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.819-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
799
799
|
[🔐security]: SECURITY.md
|
800
800
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
801
801
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
data/README.md.example
CHANGED
@@ -505,7 +505,7 @@ Thanks for RTFM. ☺️
|
|
505
505
|
[📌gitmoji]:https://gitmoji.dev
|
506
506
|
[📌gitmoji-img]:https://img.shields.io/badge/gitmoji_commits-%20😜%20😍-34495e.svg?style=flat-square
|
507
507
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
508
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-
|
508
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.819-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
509
509
|
[🔐security]: SECURITY.md
|
510
510
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
511
511
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
data/Rakefile.example
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# kettle-dev Rakefile v1.1.
|
3
|
+
# kettle-dev Rakefile v1.1.4 - 2025-09-02
|
4
4
|
# Ruby 2.3 (Safe Navigation) or higher required
|
5
5
|
#
|
6
6
|
# MIT License (see License.txt)
|
@@ -15,14 +15,10 @@
|
|
15
15
|
# rake bench # Run all benchmarks (alias for bench:run)
|
16
16
|
# rake bench:list # List available benchmark scripts
|
17
17
|
# rake bench:run # Run all benchmark scripts (skips on CI)
|
18
|
-
# rake build # Build kettle-dev-1.0.0.gem into the pkg d...
|
19
|
-
# rake build:checksum # Generate SHA512 checksum of kettle-dev-1....
|
20
18
|
# rake build:generate_checksums # Generate both SHA256 & SHA512 checksums i...
|
21
19
|
# rake bundle:audit:check # Checks the Gemfile.lock for insecure depe...
|
22
20
|
# rake bundle:audit:update # Updates the bundler-audit vulnerability d...
|
23
21
|
# rake ci:act[opt] # Run 'act' with a selected workflow
|
24
|
-
# rake clean # Remove any temporary products
|
25
|
-
# rake clobber # Remove any generated files
|
26
22
|
# rake coverage # Run specs w/ coverage and open results in...
|
27
23
|
# rake default # Default tasks aggregator
|
28
24
|
# rake install # Build and install kettle-dev-1.0.0.gem in...
|
data/bin/setup
ADDED
data/lib/kettle/dev/dvcs_cli.rb
CHANGED
@@ -37,6 +37,11 @@ module Kettle
|
|
37
37
|
force: false,
|
38
38
|
status: false,
|
39
39
|
}.freeze
|
40
|
+
FORGE_MIGRATION_TOOLS = {
|
41
|
+
github: "https://github.com/new/import",
|
42
|
+
gitlab: "https://gitlab.com/projects/new#import_project",
|
43
|
+
codeberg: "https://codeberg.org/repo/migrate",
|
44
|
+
}.freeze
|
40
45
|
|
41
46
|
# Create the CLI with argv-like arguments
|
42
47
|
# @param argv [Array<String>] the command-line arguments (without program name)
|
@@ -369,14 +374,9 @@ module Kettle
|
|
369
374
|
# Print import links for any failed forge
|
370
375
|
unless all_ok
|
371
376
|
say("\nSome forges are not yet available. Use these import links to create mirrors:")
|
372
|
-
import_links = {
|
373
|
-
github: "https://github.com/new/import",
|
374
|
-
gitlab: "https://gitlab.com/projects/new#import_project",
|
375
|
-
codeberg: "https://codeberg.org/repo/create?scm=git&name=#{repo}&migration=true",
|
376
|
-
}
|
377
377
|
[:github, :gitlab, :codeberg].each do |forge|
|
378
378
|
next if results[forge]
|
379
|
-
say(" - #{forge.capitalize} import: #{
|
379
|
+
say(" - #{forge.capitalize} import: #{FORGE_MIGRATION_TOOLS[forge]}")
|
380
380
|
end
|
381
381
|
end
|
382
382
|
rescue StandardError => e
|
@@ -221,6 +221,14 @@ module Kettle
|
|
221
221
|
# If replacement fails unexpectedly, proceed with content as-is
|
222
222
|
end
|
223
223
|
write_file(dest_path, content)
|
224
|
+
begin
|
225
|
+
# Ensure executable bit for git hook scripts when writing under .git-hooks
|
226
|
+
if dest_path.to_s.match?(%r{[\\/]\.git-hooks[\\/](commit-msg|prepare-commit-msg)\z})
|
227
|
+
File.chmod(0o755, dest_path) if File.exist?(dest_path)
|
228
|
+
end
|
229
|
+
rescue StandardError
|
230
|
+
# ignore permission issues
|
231
|
+
end
|
224
232
|
record_template_result(dest_path, dest_exists ? :replace : :create)
|
225
233
|
puts "Wrote #{dest_path}"
|
226
234
|
end
|
@@ -316,6 +324,15 @@ module Kettle
|
|
316
324
|
end
|
317
325
|
end
|
318
326
|
FileUtils.cp(path, target)
|
327
|
+
begin
|
328
|
+
# Ensure executable bit for git hook scripts when copying under .git-hooks
|
329
|
+
if target.end_with?("/.git-hooks/commit-msg", "/.git-hooks/prepare-commit-msg") ||
|
330
|
+
target.match?(%r{[\\/]\.git-hooks[\\/](commit-msg|prepare-commit-msg)\z})
|
331
|
+
File.chmod(0o755, target)
|
332
|
+
end
|
333
|
+
rescue StandardError
|
334
|
+
# ignore permission issues
|
335
|
+
end
|
319
336
|
end
|
320
337
|
end
|
321
338
|
puts "Updated #{dest_dir}"
|
@@ -354,6 +371,15 @@ module Kettle
|
|
354
371
|
end
|
355
372
|
end
|
356
373
|
FileUtils.cp(path, target)
|
374
|
+
begin
|
375
|
+
# Ensure executable bit for git hook scripts when copying under .git-hooks
|
376
|
+
if target.end_with?("/.git-hooks/commit-msg", "/.git-hooks/prepare-commit-msg") ||
|
377
|
+
target.match?(%r{[\\/]\.git-hooks[\\/](commit-msg|prepare-commit-msg)\z})
|
378
|
+
File.chmod(0o755, target)
|
379
|
+
end
|
380
|
+
rescue StandardError
|
381
|
+
# ignore permission issues
|
382
|
+
end
|
357
383
|
end
|
358
384
|
end
|
359
385
|
puts "Created #{dest_dir}"
|
data/lib/kettle/dev/version.rb
CHANGED
data/lib/kettle/dev.rb
CHANGED
@@ -38,10 +38,9 @@ module Kettle
|
|
38
38
|
class Error < StandardError; end
|
39
39
|
|
40
40
|
# Whether debug logging is enabled for kettle-dev internals.
|
41
|
+
# KETTLE_DEV_DEBUG overrides DEBUG.
|
41
42
|
# @return [Boolean]
|
42
|
-
DEBUGGING = ENV.fetch("DEBUG", "false").casecmp("true").zero?
|
43
|
-
# Backwards-compat for kettle-dev specific debug variable
|
44
|
-
DEBUGGING ||= ENV.fetch("KETTLE_DEV_DEBUG", "false").casecmp("true").zero?
|
43
|
+
DEBUGGING = ENV.fetch("KETTLE_DEV_DEBUG", ENV.fetch("DEBUG", "false")).casecmp("true").zero?
|
45
44
|
# Whether we are running on CI.
|
46
45
|
# @return [Boolean]
|
47
46
|
IS_CI = ENV.fetch("CI", "false").casecmp("true") == 0
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kettle-dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter H. Boling
|
@@ -275,6 +275,7 @@ files:
|
|
275
275
|
- RUBOCOP.md
|
276
276
|
- Rakefile.example
|
277
277
|
- SECURITY.md
|
278
|
+
- bin/setup
|
278
279
|
- exe/kettle-changelog
|
279
280
|
- exe/kettle-commit-msg
|
280
281
|
- exe/kettle-dev-setup
|
@@ -347,10 +348,10 @@ licenses:
|
|
347
348
|
- MIT
|
348
349
|
metadata:
|
349
350
|
homepage_uri: https://kettle-dev.galtzo.com/
|
350
|
-
source_code_uri: https://github.com/kettle-rb/kettle-dev/tree/v1.1.
|
351
|
-
changelog_uri: https://github.com/kettle-rb/kettle-dev/blob/v1.1.
|
351
|
+
source_code_uri: https://github.com/kettle-rb/kettle-dev/tree/v1.1.4
|
352
|
+
changelog_uri: https://github.com/kettle-rb/kettle-dev/blob/v1.1.4/CHANGELOG.md
|
352
353
|
bug_tracker_uri: https://github.com/kettle-rb/kettle-dev/issues
|
353
|
-
documentation_uri: https://www.rubydoc.info/gems/kettle-dev/1.1.
|
354
|
+
documentation_uri: https://www.rubydoc.info/gems/kettle-dev/1.1.4
|
354
355
|
funding_uri: https://github.com/sponsors/pboling
|
355
356
|
wiki_uri: https://github.com/kettle-rb/kettle-dev/wiki
|
356
357
|
news_uri: https://www.railsbling.com/tags/kettle-dev
|
metadata.gz.sig
CHANGED
Binary file
|