diff --git a/.rubocop.yml b/.rubocop.yml index 1fe7ca9..e4a1c25 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,8 +1,8 @@ # This is a config synced from dry-rb/template-gem repo AllCops: - TargetRubyVersion: 3.0 - NewCops: disable + TargetRubyVersion: 3.1 + NewCops: enable SuggestExtensions: false Exclude: - "**/vendor/**/*" # For GitHub Actions, see rubocop/rubocop#9832 diff --git a/dry-auto_inject.gemspec b/dry-auto_inject.gemspec index 7aaac16..a163109 100644 --- a/dry-auto_inject.gemspec +++ b/dry-auto_inject.gemspec @@ -16,19 +16,21 @@ Gem::Specification.new do |spec| spec.summary = "Container-agnostic automatic constructor injection" spec.description = spec.summary spec.homepage = "https://dry-rb.org/gems/dry-auto_inject" - spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-auto_inject.gemspec", "lib/**/*"] + spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-auto_inject.gemspec", + "lib/**/*"] spec.bindir = "bin" spec.executables = [] spec.require_paths = ["lib"] - spec.metadata["allowed_push_host"] = "https://rubygems.org" - spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-auto_inject/blob/main/CHANGELOG.md" - spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-auto_inject" - spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-auto_inject/issues" + spec.metadata["allowed_push_host"] = "https://rubygems.org" + spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-auto_inject/blob/main/CHANGELOG.md" + spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-auto_inject" + spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-auto_inject/issues" + spec.metadata["rubygems_mfa_required"] = "true" spec.required_ruby_version = ">= 3.1" # to update dependencies edit project.yml - spec.add_runtime_dependency "dry-core", "~> 1.0", "< 2" - spec.add_runtime_dependency "zeitwerk", "~> 2.6" + spec.add_dependency "dry-core", "~> 1.0", "< 2" + spec.add_dependency "zeitwerk", "~> 2.6" end