-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge github.com:RichardFevrier/jekyll-feed; github.com:jekyll/jekyll…
…-feed
- Loading branch information
Showing
17 changed files
with
266 additions
and
110 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,30 @@ | ||
name: Release Gem | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
paths: ["lib/**/version.rb"] | ||
|
||
jobs: | ||
release: | ||
if: "github.repository_owner == 'jekyll'" | ||
name: "Release Gem (Ruby ${{ matrix.ruby_version }})" | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
ruby_version: ["2.7"] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: "Set up Ruby ${{ matrix.ruby_version }}" | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby_version }} | ||
bundler-cache: true | ||
- name: Build and Publish Gem | ||
uses: ashmaroli/release-gem@dist | ||
with: | ||
gemspec_name: "jekyll-feed" | ||
env: | ||
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_GEM_PUSH_API_KEY }} |
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 |
---|---|---|
|
@@ -8,12 +8,11 @@ on: | |
|
||
jobs: | ||
test: | ||
if: "!contains(github.event.commits[0].message, '[ci skip]')" | ||
name: 'Ruby ${{ matrix.ruby-version }}' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby-version: ['2.6', '2.7', '3.0'] | ||
ruby-version: ['2.6', '2.7', '3.0', '3.1'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -22,12 +21,5 @@ jobs: | |
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
- name: Cache dependencies | ||
uses: actions/[email protected] | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Run tests | ||
run: bash script/cibuild |
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,27 +1,42 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
require: rubocop-jekyll | ||
|
||
inherit_gem: | ||
rubocop-jekyll: .rubocop.yml | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.4 | ||
Include: | ||
- lib/**/*.rb | ||
|
||
TargetRubyVersion: 2.5 | ||
SuggestExtensions: false | ||
Exclude: | ||
- .gitignore | ||
- .rspec | ||
- .rubocop.yml | ||
- .travis.yml | ||
- vendor/**/* | ||
|
||
- Gemfile.lock | ||
- History.markdown | ||
- LICENSE.txt | ||
- README.md | ||
Layout/LineEndStringConcatenationIndentation: | ||
Enabled: true | ||
|
||
- script/**/* | ||
- vendor/**/* | ||
Lint/EmptyInPattern: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
IgnoredMethods: | ||
- generate # in generator.rb | ||
|
||
Naming/InclusiveLanguage: | ||
Enabled: false | ||
Naming/MemoizedInstanceVariableName: | ||
Exclude: | ||
- lib/jekyll-feed/page-without-a-file.rb | ||
|
||
Performance/MapCompact: | ||
Enabled: true | ||
Performance/RedundantEqualityComparisonBlock: | ||
Enabled: true | ||
Performance/RedundantSplitRegexpArgument: | ||
Enabled: true | ||
|
||
Style/InPatternThen: | ||
Enabled: false | ||
Style/MultilineInPatternThen: | ||
Enabled: false | ||
Style/QuotedSymbols: | ||
Enabled: true |
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,65 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2021-09-17 11:44:51 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: 1 | ||
# Cop supports --auto-correct. | ||
Layout/EmptyLines: | ||
Exclude: | ||
- 'spec/jekyll-feed_spec.rb' | ||
|
||
# Offense count: 15 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. | ||
# URISchemes: http, https | ||
Layout/LineLength: | ||
Max: 144 | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: AllowedMethods. | ||
# AllowedMethods: enums | ||
Lint/ConstantDefinitionInBlock: | ||
Exclude: | ||
- 'spec/jekyll-feed_spec.rb' | ||
- 'spec/spec_helper.rb' | ||
|
||
# Offense count: 3 | ||
# Cop supports --auto-correct. | ||
Performance/RegexpMatch: | ||
Exclude: | ||
- 'spec/jekyll-feed_spec.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AutoCorrect. | ||
Performance/StringInclude: | ||
Exclude: | ||
- 'spec/jekyll-feed_spec.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. | ||
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys | ||
Style/HashSyntax: | ||
Exclude: | ||
- 'spec/jekyll-feed_spec.rb' | ||
|
||
# Offense count: 7 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. | ||
# SupportedStyles: single_quotes, double_quotes | ||
Style/StringLiterals: | ||
Exclude: | ||
- 'spec/jekyll-feed_spec.rb' | ||
|
||
# Offense count: 5 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyleForMultiline. | ||
# SupportedStylesForMultiline: comma, consistent_comma, no_comma | ||
Style/TrailingCommaInHashLiteral: | ||
Exclude: | ||
- 'spec/jekyll-feed_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
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
Oops, something went wrong.