Add Ruby version to engines for Rubocop

> This ensures that RuboCop is using the same Ruby version as the gem.

https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Gemspec/RequiredRubyVersion
This commit is contained in:
Maikel Linke
2023-07-20 16:05:54 +10:00
parent 022225581f
commit a01aa8849c
5 changed files with 8 additions and 10 deletions

View File

@@ -6,16 +6,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 4
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
Exclude:
- 'engines/catalog/catalog.gemspec'
- 'engines/dfc_provider/dfc_provider.gemspec'
- 'engines/order_management/order_management.gemspec'
- 'engines/web/web.gemspec'
# Offense count: 9
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.

View File

@@ -10,6 +10,8 @@ Gem::Specification.new do |s|
s.authors = ["developers@ofn"]
s.summary = "Catalog domain of the OFN solution."
s.required_ruby_version = File.read(File.expand_path("../../.ruby-version", __dir__)).chomp
s.files = Dir["{app,config,db,lib}/**/*"] + ["LICENSE.txt", "Rakefile", "README.rdoc"]
s.metadata['rubygems_mfa_required'] = 'true'
end

View File

@@ -13,6 +13,8 @@ Gem::Specification.new do |spec|
spec.summary = 'Provides an API stack implementing DFC semantic ' \
'specifications'
spec.required_ruby_version = File.read(File.expand_path("../../.ruby-version", __dir__)).chomp
spec.files = Dir["{app,config,lib}/**/*"] + ['README.md']
spec.add_dependency 'active_model_serializers', '~> 0.8.4'

View File

@@ -10,6 +10,8 @@ Gem::Specification.new do |s|
s.authors = ["developers@ofn"]
s.summary = "Order Management domain of the OFN solution."
s.required_ruby_version = File.read(File.expand_path("../../.ruby-version", __dir__)).chomp
s.files = Dir["{app,config,db,lib}/**/*"] + ["LICENSE.txt", "Rakefile", "README.rdoc"]
s.metadata['rubygems_mfa_required'] = 'true'
end

View File

@@ -10,6 +10,8 @@ Gem::Specification.new do |s|
s.authors = ["developers@ofn"]
s.summary = "Web domain of the OFN solution."
s.required_ruby_version = File.read(File.expand_path("../../.ruby-version", __dir__)).chomp
s.files = Dir["{app,config,db,lib}/**/*"] + ["LICENSE.txt", "Rakefile", "README.rdoc"]
s.metadata['rubygems_mfa_required'] = 'true'
end