-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:jekyll/jekyll-redirect-from into …
…pass-parameters-and-anchors
- Loading branch information
Showing
9 changed files
with
119 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
ci: | ||
if: "!contains(github.event.commits[0].message, '[ci skip]')" | ||
name: 'Ruby ${{ matrix.ruby_version }}' | ||
runs-on: 'ubuntu-latest' | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby_version: | ||
- 2.5 | ||
- 2.7 | ||
- 3.0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 5 | ||
- name: "Set up Ruby ${{ matrix.ruby_version }}" | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby_version }} | ||
bundler-cache: true | ||
- name: Execute tests | ||
run: bash script/test | ||
- name: Check Style Offenses | ||
run: bash script/fmt | ||
- name: Test gem build | ||
run: bundle exec gem build jekyll-redirect-from.gemspec | ||
- name: Test gem install | ||
run: bundle exec gem install jekyll-redirect-from --local --verbose | ||
|
||
ghp: | ||
if: "!contains(github.event.commits[0].message, '[ci skip]')" | ||
name: Ruby 2.7 with GitHub Pages Gem | ||
runs-on: 'ubuntu-latest' | ||
env: | ||
GH_PAGES: true | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 5 | ||
- name: "Set up Ruby 2.7" | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
bundler-cache: true | ||
- name: Execute tests | ||
run: bash script/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,27 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2018-12-06 11:51:19 +0100 using RuboCop version 0.61.1. | ||
# on 2021-09-17 12:49:45 UTC using RuboCop version 1.18.4. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 12 | ||
# Configuration parameters: CountComments, Max, ExcludedMethods. | ||
# ExcludedMethods: refine | ||
Metrics/BlockLength: | ||
Exclude: | ||
- 'spec/integrations_spec.rb' | ||
- 'spec/jekyll_redirect_from/generator_spec.rb' | ||
- 'spec/jekyll_redirect_from/redirect_page_spec.rb' | ||
- 'spec/jekyll_redirect_from/redirectable_spec.rb' | ||
- 'spec/spec_helper.rb' | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. | ||
# URISchemes: http, https | ||
Layout/LineLength: | ||
Exclude: | ||
- 'spec/jekyll_redirect_from/generator_spec.rb' | ||
- 'spec/jekyll_redirect_from/redirect_page_spec.rb' | ||
Max: 105 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: EnforcedStyleForLeadingUnderscores. | ||
# SupportedStylesForLeadingUnderscores: disallowed, required, optional | ||
Naming/MemoizedInstanceVariableName: | ||
# Offense count: 2 | ||
# Configuration parameters: AllowedMethods. | ||
# AllowedMethods: enums | ||
Lint/ConstantDefinitionInBlock: | ||
Exclude: | ||
- 'lib/jekyll-redirect-from/page_without_a_file.rb' | ||
- 'spec/jekyll_redirect_from/generator_spec.rb' | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. | ||
# AllowedNames: io, id, to, by, on, in, at, ip, db | ||
Naming/MethodParameterName: | ||
# Configuration parameters: AllowComments, AllowEmptyLambdas. | ||
Lint/EmptyBlock: | ||
Exclude: | ||
- 'lib/jekyll-redirect-from/redirect_page.rb' | ||
- 'spec/jekyll_redirect_from/generator_spec.rb' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
require "English" | ||
require_relative "lib/jekyll-redirect-from/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "jekyll-redirect-from" | ||
spec.version = JekyllRedirectFrom::VERSION | ||
spec.authors = ["Parker Moore"] | ||
spec.email = ["[email protected]"] | ||
spec.summary = "Seamlessly specify multiple redirection URLs " \ | ||
"for your pages and posts" | ||
spec.summary = "Seamlessly specify multiple redirection URLs for your pages and posts" | ||
spec.homepage = "https://github.com/jekyll/jekyll-redirect-from" | ||
spec.license = "MIT" | ||
|
||
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) | ||
|
||
spec.executables = spec.files.grep(%r!^bin/!) { |f| File.basename(f) } | ||
spec.test_files = spec.files.grep(%r!^(test|spec|features)/!) | ||
spec.files = `git ls-files lib`.split("\n").concat(%w(LICENSE.txt README.md History.markdown)) | ||
spec.require_paths = ["lib"] | ||
|
||
spec.required_ruby_version = ">= 2.4.0" | ||
spec.required_ruby_version = ">= 2.5.0" | ||
|
||
spec.add_runtime_dependency "jekyll", ">= 3.3", "< 5.0" | ||
|
||
spec.add_development_dependency "bundler" | ||
spec.add_development_dependency "jekyll-sitemap", "~> 1.0" | ||
spec.add_development_dependency "rake", "~> 12.0" | ||
spec.add_development_dependency "rspec", "~> 3.5" | ||
spec.add_development_dependency "rubocop-jekyll", "~> 0.10" | ||
spec.add_development_dependency "rubocop-jekyll", "~> 0.12.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters