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

update workflow #28

Merged
merged 4 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 4 additions & 8 deletions .github/workflows/jekyll-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

name: Jekyll - Install dependencies and run linters


on:
push:
branches: [ main ]
Expand All @@ -19,17 +18,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7']
ruby-version: ['3.3']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
- uses: actions/checkout@v4
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run rubocop
run: bundle exec rubocop
- run: bundle exec rubocop
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ inherit_gem:
rubocop-jekyll: .rubocop.yml

AllCops:
TargetRubyVersion: 3.2
Exclude:
- vendor/bundle/**/*
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.0
4 changes: 2 additions & 2 deletions jekyll-plugin-platoniq-journal.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "jekyll-plugin-platoniq-journal"
spec.version = "0.0.22"
spec.version = "0.0.23"
spec.authors = ["Agustí B.R."]
spec.email = ["agusti@platoniq.net"]

Expand All @@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files lib`.split("\n").push("LICENSE.txt", "README.md")

spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 2.5"
spec.required_ruby_version = ">= 3.2.0"

spec.add_dependency "jekyll", "~> 4.2"
spec.add_dependency "kramdown", "~> 2.3"
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll-plugin-platoniq-journal/includes_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def realpath_prefixed_with?(path, dir)

def could_not_locate_message(file, includes_dirs, safe)
message = "Could not locate the included file '#{file}' in any of " \
"#{includes_dirs}. Ensure it exists in one of those directories and"
"#{includes_dirs}. Ensure it exists in one of those directories and"
message + if safe
" is not a symlink as those are not allowed in safe mode."
else
Expand Down