Skip to content

Commit

Permalink
Merge pull request #135 from nikukyugamer/development
Browse files Browse the repository at this point in the history
v0.0.3
nikukyugamer authored Oct 31, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 207e665 + 96832ad commit 919fe16
Showing 8 changed files with 65 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ jobs:
name: Prekin CI
runs-on: ubuntu-latest
container:
image: ruby:2.7.2
image: ruby:3.1.2
env:
BUNDLE_PATH: vendor/bundle
steps:
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -11,3 +11,7 @@
.rspec_status

vendor/
tmp/
.vscode/
.envrc
.history
67 changes: 32 additions & 35 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,44 @@
Style/FrozenStringLiteralComment:
Enabled: false
AllCops:
NewCops: enable
DisplayCopNames: true
Exclude:
- 'vendor/**/*'
- 'node_modules/**/*'
- 'spec/**/*'
- 'Guardfile'
- 'bin/**/*'
- 'tmp/**/*'
- 'prekin.gemspec'

Style/TrailingCommaInHashLiteral:
Enabled: false # 有効にすると見た目がいいレイアウトにした際に怒られるため無効にする
# EnforcedStyleForMultiline: consistent_comma

Style/TrailingCommaInArrayLiteral:
Enabled: false # 有効にすると見た目がいいレイアウトにした際に怒られるため無効にする
# EnforcedStyleForMultiline: consistent_comma
Style/Documentation:
Enabled: false

Style/AsciiComments:
Style/FrozenStringLiteralComment:
Enabled: false

Metrics/LineLength:
Max: 250 # 数字に特に根拠はない
Style/StringLiterals:
EnforcedStyle: single_quotes

Style/NumericLiterals:
Enabled: false
Style/StringLiteralsInInterpolation:
EnforcedStyle: single_quotes

Style/PercentLiteralDelimiters:
PreferredDelimiters:
default: '()'
'%i': '[]'
'%I': '[]'
'%r': '{}'
'%w': '()'
'%W': '[]'
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma

Style/Documentation:
Enabled: false # 一行目に class って書いてもいいでしょ
Metrics/BlockLength:
Max: 52

Style/ClassAndModuleChildren:
Enabled: false # 暫定的に false にする(名前空間関連)
Metrics/ClassLength:
Max: 500

Metrics/MethodLength:
Enabled: false # メソッドの長さが長いと怒られる(有用なので後で調整すること)
Metrics/CyclomaticComplexity:
Max: 16

Metrics/AbcSize:
Max: 20 # これぐらいの長さになることは許してほしい
Metrics/MethodLength:
Max: 65

Style/RegexpLiteral:
Enabled: false # 有効にすると Lint/Syntax で怒られる?ので無効化
Metrics/PerceivedComplexity:
Max: 17

# 頃合いを見て true に変更する
Gemspec/RequiredRubyVersion:
Enabled: false
Metrics/ModuleLength:
Max: 160
46 changes: 24 additions & 22 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -9,45 +9,47 @@ GEM
ast (2.4.2)
coderay (1.1.3)
diff-lcs (1.5.0)
json (2.6.2)
method_source (1.0.0)
parallel (1.21.0)
parser (3.1.1.0)
parallel (1.22.1)
parser (3.1.2.1)
ast (~> 2.4.1)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.2.1)
regexp_parser (2.6.0)
rexml (3.2.5)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.0)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
rspec_junit_formatter (0.5.1)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.26.0)
rubocop (1.37.1)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.0.0)
parser (>= 3.1.2.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.16.0, < 2.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.23.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.16.0)
rubocop-ast (1.23.0)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
unicode-display_width (2.1.0)
unicode-display_width (2.3.0)

PLATFORMS
ruby
@@ -62,4 +64,4 @@ DEPENDENCIES
rubocop

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

Copyright (c) 2020 Osamu Takiya
Copyright (c) 2022 Osamu Takiya

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![CircleCI](https://circleci.com/gh/nikukyugamer/prekin.svg?style=svg)](https://circleci.com/gh/nikukyugamer/prekin)
[![Prekin](https://github.com/nikukyugamer/prekin/actions/workflows/config.yml/badge.svg?branch=main)](https://github.com/nikukyugamer/prekin/actions/workflows/config.yml) [![CircleCI](https://circleci.com/gh/nikukyugamer/prekin.svg?style=svg)](https://circleci.com/gh/nikukyugamer/prekin)

# Prekin

1 change: 1 addition & 0 deletions goodcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rules:
1 change: 1 addition & 0 deletions prekin.gemspec
Original file line number Diff line number Diff line change
@@ -26,4 +26,5 @@ Gem::Specification.new do |spec|

spec.add_development_dependency 'pry'
spec.add_development_dependency 'rubocop'
spec.metadata['rubygems_mfa_required'] = 'true'
end

0 comments on commit 919fe16

Please sign in to comment.