Skip to content

Commit

Permalink
doc(README): refresh badges
Browse files Browse the repository at this point in the history
  • Loading branch information
cyril committed Jun 29, 2021
1 parent 40cd568 commit e7a1e1b
Show file tree
Hide file tree
Showing 31 changed files with 316 additions and 217 deletions.
9 changes: 9 additions & 0 deletions .github/config/rubocop_linter_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
versions:
- rubocop-md
- rubocop-performance
- rubocop-rake
- rubocop-thread_safety

rubocop_fail_level: warning
check_scope: modified
base_branch: origin/main
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
paths:
- ".github/workflows/ci.yml"
- "lib/**"
- "*.gemspec"
- "spec/**"
- "Rakefile"
- "Gemfile"
pull_request:
branches:
- main
create:

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- "3.0"
- "2.7"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run unit tests
run: bundle exec rake test
14 changes: 14 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: RuboCop

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: RuboCop Linter Action
uses: andrewmcodes/rubocop-linter-action@v3.3.0

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65 changes: 59 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,63 @@
/.bundle/
/.ruby-version
/.yardoc
/Gemfile.lock
/_yardoc/
*.gem
*.rbc
/.config
/coverage/
/doc/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/
.DS_Store

# Used by dotenv library to load environment variables.
# .env

# Ignore IRB command history file.
.irb_history

# Ignore Byebug command history file.
.byebug_history

## Specific to RubyMotion:
.dat*
.repl_history
build/
*.bridgesupport
build-iPhoneOS/
build-iPhoneSimulator/

## Specific to RubyMotion (use of CocoaPods):
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# vendor/Pods/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
# .ruby-version
# .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# Used by RuboCop. Remote config files pulled in from inherit_from directive.
# .rubocop-https?--*

# rspec failure tracking
.rspec_status
26 changes: 26 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
inherit_from: .rubocop_todo.yml

AllCops:
NewCops: enable
TargetRubyVersion: 2.7

Exclude:
- test/**/*.rb

require:
- rubocop-md
- rubocop-performance
- rubocop-rake
- rubocop-thread_safety

# Enforcing double quotes reduces the times where you need to switch to Crystal.
Style/StringLiterals:
EnforcedStyle: double_quotes

# We do not need to support Ruby 1.9, so this is good to use.
Style/SymbolArray:
Enabled: true

# Most readable form.
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
42 changes: 7 additions & 35 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2018-08-26 22:27:30 +0200 using RuboCop version 0.58.2.
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
# using RuboCop version 1.18.0.
# 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.
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
# Include: **/*.gemspec
Gemspec/OrderedDependencies:
Exclude:
- 'fix-command.gemspec'

# Offense count: 4
# Offense count: 3
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 32
Max: 42

# Offense count: 1
# Configuration parameters: CountComments.
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 127

# Offense count: 3
# Configuration parameters: CountComments.
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
Metrics/MethodLength:
Max: 49

Expand All @@ -40,29 +33,8 @@ Style/IfUnlessModifier:
Exclude:
- 'lib/fix/command.rb'

# Offense count: 3
Style/MixinUsage:
Exclude:
- 'test/command/test_help.rb'
- 'test/command/test_process_args.rb'
- 'test/command/test_version.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: Whitelist.
# Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
Style/NestedParenthesizedCalls:
Exclude:
- 'test/command/test_version.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/RedundantBegin:
Exclude:
- 'lib/fix/command.rb'

# Offense count: 12
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 104
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.3
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

source 'https://rubygems.org'
source "https://rubygems.org"

gemspec
77 changes: 77 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
PATH
remote: .
specs:
fix-command (0.5.4)
fix (~> 0.18.0)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
aw (0.1.12)
defi (1.1.5)
docile (1.4.0)
fix (0.18.2)
aw (~> 0.1.6)
defi (~> 1.1.5)
spectus (~> 3.0.9)
matchi (1.0.8)
parallel (1.20.1)
parser (3.0.1.1)
ast (~> 2.4.1)
rainbow (3.0.0)
rake (13.0.3)
regexp_parser (2.1.1)
rexml (3.2.5)
rubocop (1.18.0)
parallel (~> 1.10)
parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.7.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.7.0)
parser (>= 3.0.1.1)
rubocop-md (1.0.1)
rubocop (>= 1.0)
rubocop-performance (1.11.3)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-thread_safety (0.4.2)
rubocop (>= 0.53.0)
ruby-progressbar (1.11.0)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.3)
spectus (3.0.10)
aw (~> 0.1.6)
defi (~> 1.1.5)
matchi (~> 1.0.4)
unicode-display_width (2.0.0)
yard (0.9.26)

PLATFORMS
x86_64-darwin-18
x86_64-darwin-19

DEPENDENCIES
bundler
fix-command!
rake
rubocop-md
rubocop-performance
rubocop-rake
rubocop-thread_safety
simplecov
spectus
yard

BUNDLED WITH
2.2.17
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2019 Cyril Kato
Copyright (c) 2015-2021 Cyril Kato

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit e7a1e1b

Please sign in to comment.