Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 Release #347

Merged
merged 76 commits into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
b9a510c
Switch to GitHub Actions
gjtorikian Jan 7, 2021
553eece
Drop double env
gjtorikian Jan 7, 2021
30b49fd
Let it fail
gjtorikian Jan 7, 2021
1d31f83
Drop extension
gjtorikian Jan 7, 2021
1041517
Add bundler args
gjtorikian Jan 7, 2021
f49a557
Remove copy-paste
gjtorikian Jan 7, 2021
818af6b
Drop old Rails and unnecessary active_support
gjtorikian Jan 8, 2021
428ec51
Start linting
gjtorikian Jan 8, 2021
17a06aa
Drop truffle-ruby
gjtorikian Jan 8, 2021
f042ca9
Obey the bundler
gjtorikian Jan 8, 2021
db3d990
Update deps
gjtorikian Jan 8, 2021
c904e2b
Drop activesupport dependency
gjtorikian Jan 8, 2021
1b1482d
Merge pull request #346 from gjtorikian/migrate-to-gh-actions
gjtorikian Jan 8, 2021
18ace65
Lint first pass
gjtorikian Jan 8, 2021
76e2731
add truffleruby-head
gogainda Jan 8, 2021
89c48dc
Drop CamoFilter, TextileFilter, EmailReplyFilter
gjtorikian Jan 8, 2021
19b3589
Massive kwargs rewrite
gjtorikian Jan 8, 2021
7c7fad1
Complete linting
gjtorikian Jan 8, 2021
72e96d5
Merge pull request #348 from gogainda/patch-2
gjtorikian Jan 8, 2021
5605e01
Correct splats/kwargs
gjtorikian Jan 8, 2021
f8643c0
Merge pull request #349 from gjtorikian/lint
gjtorikian Jan 8, 2021
c03967a
Allow for multiple dependencies
gjtorikian Jan 8, 2021
d047910
Support gemojione
gjtorikian Jan 8, 2021
f13a153
Fix instance construction
gjtorikian Jan 8, 2021
79b0e21
no need
gjtorikian Jan 8, 2021
4745c88
Merge pull request #351 from gjtorikian/multiple-dependencies
gjtorikian Jan 8, 2021
ac082b2
Zeitwerk it up
gjtorikian Jun 4, 2022
32185aa
gotta keep 'em seperated
gjtorikian Jun 4, 2022
a63230f
license update
gjtorikian Jun 4, 2022
0773ba0
update gems
gjtorikian Jun 4, 2022
0d48f03
rearrange
gjtorikian Jun 4, 2022
61fa9c6
ruby version changes
gjtorikian Jun 4, 2022
b4076ac
update README
gjtorikian Jun 4, 2022
57e6c8a
update sanitization
gjtorikian Jun 6, 2022
441b2eb
lint
gjtorikian Jun 6, 2022
7cbbbfc
ignore ruby-head
gjtorikian Jun 6, 2022
a12c239
Merge pull request #360 from gjtorikian/split-filters-up
gjtorikian Jun 6, 2022
c22c730
all pushes
gjtorikian Jun 6, 2022
debbff0
whoop
gjtorikian Jun 6, 2022
15d6de6
clean up configs
gjtorikian Dec 24, 2022
9626d70
Migrate to Selma
gjtorikian Dec 24, 2022
6f0fe4a
Merge pull request #368 from gjtorikian/selma-migration
gjtorikian Dec 24, 2022
bf2733a
update workflows
gjtorikian Dec 24, 2022
6177ee3
lint
gjtorikian Dec 24, 2022
371a9f3
Merge branch 'main' into v3
gjtorikian Dec 24, 2022
43e4dc6
Merge branch 'v3' into you-shall-pass
gjtorikian Dec 24, 2022
923eff0
oop, latest rubygems, please
gjtorikian Dec 24, 2022
9ace3a6
Merge pull request #369 from gjtorikian/you-shall-pass
gjtorikian Dec 24, 2022
8d3a411
update selma semantics
gjtorikian Dec 26, 2022
f3d3f71
define a safer allowlist
gjtorikian Dec 26, 2022
d804541
lint
gjtorikian Dec 26, 2022
b207c62
Merge pull request #370 from gjtorikian/update-semantics
gjtorikian Dec 26, 2022
bb7b25c
Remove outdated elements/attrs
gjtorikian Dec 27, 2022
aecaad3
Add picture/source
gjtorikian Dec 27, 2022
86b90c2
Allow loading on `img` tags
gjtorikian Dec 27, 2022
e632246
specify 3.1.0
gjtorikian Dec 27, 2022
7de16b5
lint
gjtorikian Dec 27, 2022
8f8572e
Merge pull request #371 from gjtorikian/close-issues
gjtorikian Dec 27, 2022
28c8372
remove unnecessary dependencies
gjtorikian Dec 27, 2022
993af12
:gem: bump to 3.0.0.pre1
gjtorikian Dec 27, 2022
dc6a05b
Add Commonmarker syntax highlighting directly
gjtorikian Dec 28, 2022
ba554f7
Merge pull request #372 from gjtorikian/syn-high
gjtorikian Dec 28, 2022
add33b7
remove unneeded code
gjtorikian Dec 29, 2022
cadafbc
Add README
gjtorikian Dec 29, 2022
d45980a
Add UPGRADING.md
gjtorikian Dec 29, 2022
79efd87
eep
gjtorikian Dec 29, 2022
959c6ad
fix releases
gjtorikian Dec 29, 2022
3ec1f48
specify what dependencies are
gjtorikian Dec 29, 2022
8f771f5
add "warning"
gjtorikian Dec 29, 2022
b4e80e7
fix test
gjtorikian Dec 29, 2022
d1753cf
add link to tests
gjtorikian Dec 30, 2022
6e3920d
document `after_initialize`
gjtorikian Dec 30, 2022
86ca424
tested already
gjtorikian Dec 30, 2022
3f8e61e
typo
gjtorikian Dec 30, 2022
4297aae
add note on multiple dependencies
gjtorikian Dec 30, 2022
7851264
typo
gjtorikian Dec 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# These are supported funding model platforms

github: gjtorikian
patreon: gjtorikian
open_collective: garen-torikian
issuehunt: gjtorikian
# patreon: gjtorikian
# open_collective: garen-torikian
#ko_fi: # Replace with a single Ko-fi username
#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
#community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
#liberapay: # Replace with a single Liberapay username
# issuehunt: gjtorikian
#otechie: # Replace with a single Otechie username
#custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
time: "09:00"
timezone: "Etc/UTC"
open-pull-requests-limit: 10

- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: daily
time: "09:00"
timezone: "Etc/UTC"
open-pull-requests-limit: 10
allow:
- dependency-name: "*"
dependency-type: "production"
34 changes: 34 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PR auto-{approve,merge}

on:
pull_request_target:

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
name: Dependabot
runs-on: ubuntu-latest

if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Approve Dependabot PR
if: ${{steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'}}
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Merge Dependabot PR
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Linting

on:
pull_request:
paths:
- "**/*.rb"

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.0
rubygems: latest
bundler-cache: true
- run: bundle install
- name: Rubocop
run: bundle exec rake rubocop
70 changes: 70 additions & 0 deletions .github/workflows/tag_and_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Tag and Release

on:
workflow_dispatch:
push:
branches:
- main
paths:
- "lib/html_pipeline/version.rb"

jobs:
release:
env:
GEM_NAME: html-pipeline
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_BOT_KEY }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Ruby 3.1
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true

- name: Configure Git
run: |
git config --local user.email "actions@github.com"
git config --local user.name "Actions Auto Build"

- name: Get current version
id: version-label
run: |
VERSION=$(grep VERSION lib/html_pipeline/version.rb | head -n 1 | cut -d'"' -f2)
echo "version=${VERSION}" >> $GITHUB_OUTPUT

- name: Create tag
run: |
git tag -a v${{ steps.version-label.outputs.version }} -m "Release v${{ steps.version-label.outputs.version }}"
git push origin --tags

- name: Generate CHANGELOG.md
id: changelog
run: script/generate_changelog

- name: Commit & Push Changelog
run: |
git config --local user.email "actions@github.com"
git config --local user.name "Actions Auto Build"
git add -f CHANGELOG.md
git commit -m "docs: update changelog" || true
git push

- name: Publish release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create v${{ steps.version-label.outputs.version }} --generate-notes

- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
bundle exec rake package
for gem in pkg/html-pipeline-${{ steps.version-label.outputs.version }}*.gem ; do
gem push "$gem" --host https://rubygems.org
done
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tests

on:
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
ruby-version:
- 3.1.0

steps:
- uses: actions/checkout@v3

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
rubygems: latest
bundler-cache: true

- name: Install dependencies
run: bundle install

- name: Run tests
run: bundle exec rake test
17 changes: 17 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
inherit_gem:
rubocop-standard:
- config/default.yml
- config/minitest.yml

inherit_mode:
merge:
- Exclude

AllCops:
Exclude:
- test/progit/**/*
- "pkg/**/*"
- "ext/**/*"
- "vendor/**/*"
- "tmp/**/*"
- "test/progit/**/*"
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

19 changes: 0 additions & 19 deletions Appraisals

This file was deleted.

5 changes: 1 addition & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@

**Merged pull requests:**

- Replace whitelist with more neutral language [\#339](https://github.com/gjtorikian/html-pipeline/pull/339) ([tancnle](https://github.com/tancnle))
- allows progress tags to be used [\#338](https://github.com/gjtorikian/html-pipeline/pull/338) ([pedrozath](https://github.com/pedrozath))
- Updated English [\#337](https://github.com/gjtorikian/html-pipeline/pull/337) ([BhuvnendraPratapSingh](https://github.com/BhuvnendraPratapSingh))
- Make AutolinkFilter configurable [\#335](https://github.com/gjtorikian/html-pipeline/pull/335) ([mnishiguchi](https://github.com/mnishiguchi))
* Freeze all elements in HTML::Pipeline::SanitizationFilter [#299](https://github.com/jch/html-pipeline/pull/299)

## [v2.14.0](https://github.com/gjtorikian/html-pipeline/tree/v2.14.0) (2020-08-11)

Expand Down
60 changes: 0 additions & 60 deletions CONTRIBUTING.md

This file was deleted.

Loading