Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
xronos-i-am committed Dec 11, 2024
1 parent f7ac36d commit d784c53
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Gp/ModuleMethodInWrongFile:
- lib/active_dry_deps/stub.rb

AllCops:
TargetRubyVersion: 3.0
TargetRubyVersion: 3.1
2 changes: 1 addition & 1 deletion active_dry_deps.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
DESCRIPTION
spec.homepage = 'https://github.com/corp-gp/active_dry_deps'
spec.license = 'MIT'
spec.required_ruby_version = '>= 3.0.0'
spec.required_ruby_version = '>= 3.1.0'

spec.metadata['allowed_push_host'] = 'https://rubygems.org'

Expand Down
4 changes: 2 additions & 2 deletions lib/active_dry_deps/dependency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class Dependency

def initialize(resolver, receiver_method_alias: nil)
if LOWER.match?(resolver[0])
receiver_method_by_key(resolver, receiver_method_alias: receiver_method_alias)
receiver_method_by_key(resolver, receiver_method_alias:)
else
receiver_method_by_const_name(resolver, receiver_method_alias: receiver_method_alias)
receiver_method_by_const_name(resolver, receiver_method_alias:)
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/active_dry_deps/stub.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ module ActiveDryDeps

module StubDeps

def stub(key, proxy_object, &block)
self::CONTAINER.stub(key, proxy_object, &block)
def stub(key, proxy_object, &)
self::CONTAINER.stub(key, proxy_object, &)
end

def unstub(*keys)
Expand Down

0 comments on commit d784c53

Please sign in to comment.