-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add rubocop, apply fixes, push with bundler, prep for new release
- Loading branch information
1 parent
3bdf303
commit 44e95a3
Showing
17 changed files
with
130 additions
and
136 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: CI | ||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
rubocop: | ||
name: RuboCop | ||
runs-on: ubuntu-latest | ||
env: | ||
BUNDLE_ONLY: rubocop | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup Ruby and install gems | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.3.0 | ||
bundler-cache: true | ||
- name: Run Rubocop | ||
run: bundle exec rubocop --parallel | ||
test: | ||
name: ${{ format('Unit tests (Ruby {0})', matrix.ruby-version) }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby-version: | ||
- "3.1" | ||
- "3.2" | ||
- "3.3" | ||
- "3.4" | ||
continue-on-error: true | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup Ruby and install gems | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
- name: Configure Git | ||
run: | | ||
git config --global user.name $NAME | ||
git config --global user.email $EMAIL | ||
env: | ||
NAME: "George Costanza" | ||
EMAIL: "[email protected]" | ||
- name: Run tests | ||
run: bundle exec rake test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
set -e | ||
grep -E "\.rb$|Rakefile|Gemfile" | xargs ./bin/rubocop --config .rubocop.yml --force-exclusion |
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,2 @@ | ||
inherit_gem: | ||
rubocop-rails-omakase: rubocop.yml |
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,2 +1,6 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
gemspec | ||
|
||
group :rubocop do | ||
gem "rubocop-rails-omakase", require: false | ||
end |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require "bundler/setup" | ||
load Gem.bin_path("rubocop", "rubocop") |
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,4 +1,4 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'lolcommits/term_output/version' | ||
require 'lolcommits/plugin/term_output' | ||
require "lolcommits/term_output/version" | ||
require "lolcommits/plugin/term_output" |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
module Lolcommits | ||
module TermOutput | ||
VERSION = "0.5.0".freeze | ||
VERSION = "0.5.1".freeze | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ require 'lolcommits/term_output/version' | |
Gem::Specification.new do |spec| | ||
spec.name = "lolcommits-term_output" | ||
spec.version = Lolcommits::TermOutput::VERSION | ||
spec.authors = ["Matthew Hutchinson"] | ||
spec.email = ["[email protected]"] | ||
spec.authors = [ "Matthew Hutchinson" ] | ||
spec.email = [ "[email protected]" ] | ||
spec.summary = "Display lolcommits within your iTerm terminal" | ||
spec.homepage = "https://github.com/lolcommits/lolcommits-term_output" | ||
spec.license = "LGPL-3.0" | ||
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec| | |
spec.test_files = `git ls-files -- {test,features}/*`.split("\n") | ||
spec.bindir = "bin" | ||
spec.executables = [] | ||
spec.require_paths = ["lib"] | ||
spec.require_paths = [ "lib" ] | ||
|
||
spec.required_ruby_version = ">= 3.1" | ||
|
||
|
Oops, something went wrong.