Skip to content

Commit

Permalink
Merge pull request #129 from SonicGarden/0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aki77 authored Feb 13, 2023
2 parents 5947429 + 5c41d80 commit 3f58fd8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in sgcop.gemspec
gemspec

gem 'bundler'
gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.9'
gem 'debug'
2 changes: 1 addition & 1 deletion lib/sgcop/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Sgcop
VERSION = '0.8.0'.freeze
VERSION = '0.8.1'.freeze
end
6 changes: 6 additions & 0 deletions rails/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Rails:

# NOTE: rubocop-rspecとは分離されたので旧ネームスペースは無効化
# SEE: https://github.com/rubocop/rubocop-rspec/issues/1561
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspeccapybara
RSpec/Capybara:
Enabled: false

Expand Down Expand Up @@ -440,6 +441,7 @@ RSpec/VerifiedDoubleReference: # new in 2.10.0
RSpec/ChangeByZero: # new in 2.11.0
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_capybara.html#rspeccapybaraspecificmatcher
# https://docs.rubocop.org/rubocop/cops_capybara.html#capybaraspecificmatcher
Capybara/SpecificMatcher: # new in 2.12
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_rails.html#rspecrailshavehttpstatus
Expand All @@ -452,15 +454,18 @@ RSpec/ClassCheck: # new in 2.13
RSpec/NoExpectationExample: # new in 2.13
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_capybara.html#rspeccapybaraspecificfinders
# https://docs.rubocop.org/rubocop/cops_capybara.html#capybaraspecificfinders
Capybara/SpecificFinders: # new in 2.13
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecsortmetadata
RSpec/SortMetadata: # new in 2.14
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_capybara.html#rspeccapybaranegationmatcher
# https://docs.rubocop.org/rubocop/cops_capybara.html#capybaranegationmatcher
Capybara/NegationMatcher: # new in 2.14
Enabled: false
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_capybara.html#rspeccapybaraspecificactions
# https://docs.rubocop.org/rubocop/cops_capybara.html#capybaraspecificactions
Capybara/SpecificActions: # new in 2.14
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_factorybot.html#rspecfactorybotconsistentparenthesesstyle
Expand All @@ -479,6 +484,7 @@ RSpec/PendingWithoutReason: # new in 2.16
RSpec/FactoryBot/FactoryNameStyle: # new in 2.16
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_capybara.html#rspeccapybaramatchstyle
# https://docs.rubocop.org/rubocop/cops_capybara.html#capybaramatchstyle
Capybara/MatchStyle: # new in 2.17
Enabled: true
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_rails.html#rspecrailsminitestassertions
Expand Down
9 changes: 9 additions & 0 deletions ruby/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,15 @@ Style/MapToSet: # new in 1.42
# https://docs.rubocop.org/rubocop/cops_style.html#styleminmaxcomparison
Style/MinMaxComparison: # new in 1.42
Enabled: true
# https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecdevelopmentdependencies
Gemspec/DevelopmentDependencies: # new in 1.44
Enabled: true
# https://docs.rubocop.org/rubocop/cops_style.html#stylecomparableclamp
Style/ComparableClamp: # new in 1.44
Enabled: true
# https://docs.rubocop.org/rubocop/cops_style.html#styleredundantheredocdelimiterquotes
Style/RedundantHeredocDelimiterQuotes: # new in 1.45
Enabled: true

# ============================================================
# Lint
Expand Down
8 changes: 2 additions & 6 deletions sgcop.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,9 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.9'
spec.add_development_dependency 'debug'
spec.add_dependency 'rubocop', '~> 1.43.0'
spec.add_dependency 'rubocop', '~> 1.45.1'
spec.add_dependency 'rubocop-capybara', '~> 2.17.0'
spec.add_dependency 'rubocop-performance', '~> 1.15.0'
spec.add_dependency 'rubocop-performance', '~> 1.16.0'
spec.add_dependency 'rubocop-rails', '~> 2.17.0'
spec.add_dependency 'rubocop-rake', '~> 0.6.0'
spec.add_dependency 'rubocop-rspec', '~> 2.18.0'
Expand Down

0 comments on commit 3f58fd8

Please sign in to comment.