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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8414cb82426c583ac747480c7fd996b39f35c2758356884881667a57df54efe3
4
- data.tar.gz: ae38f4bf979c40750003cbda6cf65548650c189f929bb33d75e268fe8dcb8e40
3
+ metadata.gz: 7b54256dcd569639e4995d505d50c18635935bf4a397aab6b61ab9d03354cf60
4
+ data.tar.gz: da76e2e67d339131b9e0044f2ebd7069ef6dfadbcc27ac0d84fbb1e194792b0a
5
5
  SHA512:
6
- metadata.gz: f4e5fe13c671fc6e7934e3bbbfc28f8c3853f0a3c5f04878b8605c1dbf293c01297eda5d8078d966be2fa86b2be6af0a97dd118e78ecd744c031d39b82ca59a2
7
- data.tar.gz: 0ec5b02ec1d5a10fd981ef8a1c8732df476a10942dc132d57cdb2e8792c21af5c4f3c9089d92b53d03b9ff2b237c99e9ac899d527e6d1be6bffc266f1f5f23d5
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.0] - 2026-02-08
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
- - add missing yaml require and improve setup UX
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 "Update changelog, commit, and tag"
20
- task :prep do
21
- version = GitMarkdown::VERSION
22
- branch = `git rev-parse --abbrev-ref HEAD`.strip
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
- if branch == "HEAD"
25
- abort "Release prep requires a branch (not detached HEAD)."
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 prep must run on main or master. Current: #{branch}."
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 prep requires a clean working tree."
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
- sh "git cliff -c cliff.toml --unreleased --tag v#{version} -o CHANGELOG.md"
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. Skipping release prep."
39
- next
55
+ puts "Warning: No changelog changes detected"
56
+ else
57
+ puts "āœ“ Changelog updated"
40
58
  end
41
59
 
42
- sh "git add CHANGELOG.md"
43
- sh "git commit -m \"docs: update changelog for v#{version}\""
44
- sh "bundle exec gem tag -v #{version}"
45
- sh "git push"
46
- sh "git push origin v#{version}"
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 = "0.1.0"
6
- spec.authors = ["ethos-link"]
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://github.com/ethos-link/git-markdown"
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
- spec.metadata["homepage_uri"] = spec.homepage
15
- spec.metadata["source_code_uri"] = spec.homepage
16
- spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
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|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitMarkdown
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.7"
5
5
  end
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.0
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
- - ethos-link
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://github.com/ethos-link/git-markdown
129
+ homepage: https://www.ethos-link.com/opensource/git-markdown
129
130
  licenses:
130
131
  - MIT
131
132
  metadata:
132
- homepage_uri: https://github.com/ethos-link/git-markdown
133
+ homepage_uri: https://www.ethos-link.com/opensource/git-markdown
133
134
  source_code_uri: https://github.com/ethos-link/git-markdown
134
- changelog_uri: https://github.com/ethos-link/git-markdown/blob/main/CHANGELOG.md
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: 3.6.9
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: []