git-markdown 0.1.0 ā 0.1.7
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
- data/CHANGELOG.md +2 -20
- data/Rakefile +57 -16
- data/git-markdown.gemspec +17 -6
- data/lib/git/markdown/version.rb +1 -1
- metadata +11 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b54256dcd569639e4995d505d50c18635935bf4a397aab6b61ab9d03354cf60
|
|
4
|
+
data.tar.gz: da76e2e67d339131b9e0044f2ebd7069ef6dfadbcc27ac0d84fbb1e194792b0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10de61bf0523a66e46aab43b637d7132d76c4bdbb878ce94c900c4a319d5c0841d2329166b48922134ab42f10f308d4e689efc2bdeb25da9ace585b836231113
|
|
7
|
+
data.tar.gz: 65ca8d4ec9d25fbd51a7442827551beaf50d79974b2f9d07327d0860d75ac9fa7a1ed093ac3eb0aa178aaf2ecb1541699b5c72c95c6b4533f8eae34b6f14d981
|
data/CHANGELOG.md
CHANGED
|
@@ -5,27 +5,9 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [0.1.
|
|
9
|
-
|
|
10
|
-
### <!-- 0 -->š Features
|
|
11
|
-
- initialize gem structure with gemspec
|
|
12
|
-
|
|
8
|
+
## [0.1.7] - 2026-02-08
|
|
13
9
|
|
|
14
10
|
### <!-- 1 -->š Bug Fixes
|
|
15
|
-
-
|
|
16
|
-
- hide negative flags in Thor CLI and add local install docs
|
|
17
|
-
- fix git-cliff configuration
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
### <!-- 3 -->š Documentation
|
|
21
|
-
- fix README URLs and expand About section
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### <!-- 7 -->āļø Miscellaneous Tasks
|
|
25
|
-
- update gemspec and README with proper metadata
|
|
26
|
-
- streamline release prep workflow
|
|
27
|
-
- add git hooks and ignore build artifacts
|
|
28
|
-
- update CI ruby matrix and gitignore
|
|
29
|
-
- update CI ruby matrix and gitignore
|
|
11
|
+
- read version from GitMarkdown::VERSION constant
|
|
30
12
|
|
|
31
13
|
|
data/Rakefile
CHANGED
|
@@ -16,33 +16,74 @@ end
|
|
|
16
16
|
task default: %i[test standard]
|
|
17
17
|
|
|
18
18
|
namespace :release do
|
|
19
|
-
desc "
|
|
20
|
-
task :
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
desc "Full release: update changelog, bump version, commit, tag, and push"
|
|
20
|
+
task :bump, [:level] do |_t, args|
|
|
21
|
+
level = args[:level] || "patch"
|
|
22
|
+
valid_levels = %w[major minor patch pre]
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
abort "
|
|
24
|
+
unless valid_levels.include?(level)
|
|
25
|
+
abort "Invalid level: #{level}. Use: #{valid_levels.join(", ")}"
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
branch = `git rev-parse --abbrev-ref HEAD`.strip
|
|
28
29
|
unless ["main", "master"].include?(branch)
|
|
29
|
-
abort "Release
|
|
30
|
+
abort "Release must run on main or master. Current: #{branch}."
|
|
30
31
|
end
|
|
31
32
|
|
|
32
33
|
unless system("git diff --quiet") && system("git diff --cached --quiet")
|
|
33
|
-
abort "Release
|
|
34
|
+
abort "Release requires a clean working tree."
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
current = GitMarkdown::VERSION
|
|
38
|
+
parts = current.split(".").map(&:to_i)
|
|
39
|
+
|
|
40
|
+
next_version = case level
|
|
41
|
+
when "major"
|
|
42
|
+
"#{parts[0] + 1}.0.0"
|
|
43
|
+
when "minor"
|
|
44
|
+
"#{parts[0]}.#{parts[1] + 1}.0"
|
|
45
|
+
when "patch"
|
|
46
|
+
"#{parts[0]}.#{parts[1]}.#{parts[2] + 1}"
|
|
47
|
+
when "pre"
|
|
48
|
+
"#{parts[0]}.#{parts[1]}.#{parts[2]}.pre.1"
|
|
34
49
|
end
|
|
35
50
|
|
|
36
|
-
|
|
51
|
+
puts "=== Step 1: Updating CHANGELOG.md for v#{next_version} ==="
|
|
52
|
+
sh "git cliff -c cliff.toml --unreleased --tag v#{next_version} -o CHANGELOG.md"
|
|
53
|
+
|
|
37
54
|
if system("git diff --quiet -- CHANGELOG.md")
|
|
38
|
-
puts "No changelog changes
|
|
39
|
-
|
|
55
|
+
puts "Warning: No changelog changes detected"
|
|
56
|
+
else
|
|
57
|
+
puts "ā Changelog updated"
|
|
40
58
|
end
|
|
41
59
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
60
|
+
puts "\n=== Step 2: Bumping version to #{next_version} ==="
|
|
61
|
+
|
|
62
|
+
File.write(
|
|
63
|
+
"lib/git/markdown/version.rb",
|
|
64
|
+
<<~RUBY
|
|
65
|
+
# frozen_string_literal: true
|
|
66
|
+
|
|
67
|
+
module GitMarkdown
|
|
68
|
+
VERSION = "#{next_version}"
|
|
69
|
+
end
|
|
70
|
+
RUBY
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
puts "ā Version updated in lib/git/markdown/version.rb"
|
|
74
|
+
|
|
75
|
+
puts "\n=== Step 3: Committing changes ==="
|
|
76
|
+
sh "git add CHANGELOG.md lib/git/markdown/version.rb"
|
|
77
|
+
sh "git commit -m \"chore(release): bump version to #{next_version}\""
|
|
78
|
+
puts "ā Changes committed"
|
|
79
|
+
|
|
80
|
+
puts "\n=== Step 4: Creating and pushing tag ==="
|
|
81
|
+
sh "git tag -a v#{next_version} -m \"Release v#{next_version}\""
|
|
82
|
+
sh "git push origin master"
|
|
83
|
+
sh "git push origin v#{next_version}"
|
|
84
|
+
puts "ā Tag v#{next_version} created and pushed"
|
|
85
|
+
|
|
86
|
+
puts "\nā
Release v#{next_version} prepared successfully!"
|
|
87
|
+
puts "GitHub Actions will now build and publish the release."
|
|
47
88
|
end
|
|
48
89
|
end
|
data/git-markdown.gemspec
CHANGED
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require_relative "lib/git/markdown/version"
|
|
4
|
+
|
|
3
5
|
Gem::Specification.new do |spec|
|
|
4
6
|
spec.name = "git-markdown"
|
|
5
|
-
spec.version =
|
|
6
|
-
spec.authors = ["
|
|
7
|
+
spec.version = GitMarkdown::VERSION
|
|
8
|
+
spec.authors = ["Paulo Fidalgo", "Ethos Link"]
|
|
7
9
|
|
|
8
10
|
spec.summary = "Convert GitHub PRs to Markdown for local AI code review"
|
|
9
11
|
spec.description = "A CLI tool that fetches GitHub pull requests and converts them to Markdown format, perfect for local AI assistants like opencode and codex."
|
|
10
|
-
spec.homepage = "https://
|
|
12
|
+
spec.homepage = "https://www.ethos-link.com/opensource/git-markdown"
|
|
11
13
|
spec.license = "MIT"
|
|
12
14
|
spec.required_ruby_version = ">= 3.0.0"
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
repo = "https://github.com/ethos-link/git-markdown"
|
|
17
|
+
branch = "master"
|
|
18
|
+
|
|
19
|
+
spec.metadata = {
|
|
20
|
+
"homepage_uri" => spec.homepage,
|
|
21
|
+
"source_code_uri" => repo,
|
|
22
|
+
"bug_tracker_uri" => "#{repo}/issues",
|
|
23
|
+
"changelog_uri" => "#{repo}/blob/#{branch}/CHANGELOG.md",
|
|
24
|
+
"documentation_uri" => "#{repo}/blob/#{branch}/README.md",
|
|
25
|
+
"funding_uri" => "https://www.reviato.com/",
|
|
26
|
+
"rubygems_mfa_required" => "true"
|
|
27
|
+
}
|
|
17
28
|
|
|
18
29
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
19
30
|
`git ls-files -z`.split("\x0").reject do |f|
|
data/lib/git/markdown/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-markdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Paulo Fidalgo
|
|
8
|
+
- Ethos Link
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
11
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
@@ -125,13 +126,17 @@ files:
|
|
|
125
126
|
- lib/git/markdown/remote_parser.rb
|
|
126
127
|
- lib/git/markdown/version.rb
|
|
127
128
|
- lib/git_markdown.rb
|
|
128
|
-
homepage: https://
|
|
129
|
+
homepage: https://www.ethos-link.com/opensource/git-markdown
|
|
129
130
|
licenses:
|
|
130
131
|
- MIT
|
|
131
132
|
metadata:
|
|
132
|
-
homepage_uri: https://
|
|
133
|
+
homepage_uri: https://www.ethos-link.com/opensource/git-markdown
|
|
133
134
|
source_code_uri: https://github.com/ethos-link/git-markdown
|
|
134
|
-
|
|
135
|
+
bug_tracker_uri: https://github.com/ethos-link/git-markdown/issues
|
|
136
|
+
changelog_uri: https://github.com/ethos-link/git-markdown/blob/master/CHANGELOG.md
|
|
137
|
+
documentation_uri: https://github.com/ethos-link/git-markdown/blob/master/README.md
|
|
138
|
+
funding_uri: https://www.reviato.com/
|
|
139
|
+
rubygems_mfa_required: 'true'
|
|
135
140
|
rdoc_options: []
|
|
136
141
|
require_paths:
|
|
137
142
|
- lib
|
|
@@ -146,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
146
151
|
- !ruby/object:Gem::Version
|
|
147
152
|
version: '0'
|
|
148
153
|
requirements: []
|
|
149
|
-
rubygems_version:
|
|
154
|
+
rubygems_version: 4.0.3
|
|
150
155
|
specification_version: 4
|
|
151
156
|
summary: Convert GitHub PRs to Markdown for local AI code review
|
|
152
157
|
test_files: []
|