Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tmaier/site-to-md
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.5
Choose a base ref
...
head repository: tmaier/site-to-md
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 45 additions and 30 deletions.
  1. +15 −5 .github/workflows/publish-gem.yml
  2. +4 −1 CHANGELOG.md
  3. +2 −2 Gemfile
  4. +23 −20 Gemfile.lock
  5. +1 −2 README.md
20 changes: 15 additions & 5 deletions .github/workflows/publish-gem.yml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ jobs:
echo "::set-output name=gem_file::$(ls *.gem)"
- name: Upload Gem as Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: built-gem
path: ${{ steps.build.outputs.gem_file }}
@@ -41,11 +41,11 @@ jobs:
ruby-version: 3.2

- name: Download Gem artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: built-gem

- name: Publish Gem to GitHub Packages
- name: Set up GitHub credentials
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
@@ -55,7 +55,12 @@ jobs:
echo ":github: Bearer $GITHUB_TOKEN" >> $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
- name: Push Gem to GitHub Packages
run: |
gem push *.gem --key github --host "https://rubygems.pkg.github.com/$GITHUB_REPOSITORY_OWNER"
- name: Clean up GitHub credentials
run: |
rm $HOME/.gem/credentials
publish-to-rubygems:
@@ -69,11 +74,11 @@ jobs:
ruby-version: 3.2

- name: Download Gem artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: built-gem

- name: Publish Gem to RubyGems
- name: Set up RubyGems credentials
env:
API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: |
@@ -82,5 +87,10 @@ jobs:
echo ":rubygems_api_key: $API_KEY" >> $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
- name: Push Gem to RubyGems
run: |
gem push *.gem
- name: Clean up RubyGems credentials
run: |
rm $HOME/.gem/credentials
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fix badge in [README](README.md)

## [1.0.5] - 2024-12-27

### Fixed
@@ -51,5 +55,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[1.0.2]: https://github.com/tmaier/site-to-md/compare/v1.0.1...v1.0.2
[1.0.3]: https://github.com/tmaier/site-to-md/compare/v1.0.2...v1.0.3
[1.0.4]: https://github.com/tmaier/site-to-md/compare/v1.0.3...v1.0.4

[1.0.5]: https://github.com/tmaier/site-to-md/compare/v1.0.4...v1.0.5
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ gemspec
group :development do
gem 'minitest', '~> 5.25', require: false
gem 'rake', '~> 13.2', require: false
gem 'rubocop', '~> 1.69', require: false
gem 'rubocop', '~> 1.72', require: false
gem 'rubocop-minitest', '~> 0.36', require: false
gem 'rubocop-rake', '~> 0.6', require: false
gem 'rubocop-rake', '~> 0.7', require: false
end
43 changes: 23 additions & 20 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -10,27 +10,28 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
json (2.9.1)
language_server-protocol (3.17.0.3)
json (2.10.1)
language_server-protocol (3.17.0.4)
lint_roller (1.1.0)
minitest (5.25.4)
nokogiri (1.18.0-aarch64-linux-gnu)
nokogiri (1.18.2-aarch64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.0-aarch64-linux-musl)
nokogiri (1.18.2-aarch64-linux-musl)
racc (~> 1.4)
nokogiri (1.18.0-arm-linux-gnu)
nokogiri (1.18.2-arm-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.0-arm-linux-musl)
nokogiri (1.18.2-arm-linux-musl)
racc (~> 1.4)
nokogiri (1.18.0-arm64-darwin)
nokogiri (1.18.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.0-x86_64-darwin)
nokogiri (1.18.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.18.0-x86_64-linux-gnu)
nokogiri (1.18.2-x86_64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.0-x86_64-linux-musl)
nokogiri (1.18.2-x86_64-linux-musl)
racc (~> 1.4)
parallel (1.26.3)
parser (3.3.6.0)
parser (3.3.7.1)
ast (~> 2.4.1)
racc
racc (1.8.1)
@@ -39,26 +40,28 @@ GEM
regexp_parser (2.10.0)
reverse_markdown (3.0.0)
nokogiri
rubocop (1.69.2)
rubocop (1.72.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.36.2, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.37.0)
rubocop-ast (1.38.0)
parser (>= 3.3.1.0)
rubocop-minitest (0.36.0)
rubocop (>= 1.61, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rake (0.7.1)
lint_roller (~> 1.1)
rubocop (>= 1.72.1)
ruby-progressbar (1.13.0)
thor (1.3.2)
unicode-display_width (3.1.2)
unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)

@@ -75,9 +78,9 @@ PLATFORMS
DEPENDENCIES
minitest (~> 5.25)
rake (~> 13.2)
rubocop (~> 1.69)
rubocop (~> 1.72)
rubocop-minitest (~> 0.36)
rubocop-rake (~> 0.6)
rubocop-rake (~> 0.7)
site-to-md!

BUNDLED WITH
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# site-to-md

[![Gem Version](https://badge.fury.io/rb/site-to-md.svg)](https://badge.fury.io/rb/site-to-md)
[![Tests](https://github.com/tmaier/site-to-md/workflows/Tests/badge.svg)](https://github.com/tmaier/site-to-md/actions?query=workflow%3ATests)
[![RuboCop](https://github.com/tmaier/site-to-md/workflows/RuboCop/badge.svg)](https://github.com/tmaier/site-to-md/actions?query=workflow%3ARuboCop)
[![Tests](https://github.com/tmaier/site-to-md/actions/workflows/ci.yml/badge.svg)](https://github.com/tmaier/site-to-md/actions/workflows/ci.yml?query=branch%3Amain)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.txt)

This command-line tool aggregates content from HTML pages into a single, streamlined markdown file.