Skip to content

Commit

Permalink
rubocop -A
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Mar 6, 2024
1 parent 5fa52b4 commit af3100d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ gemspec

group :test do
gem "activesupport"
gem "dry-auto_inject", "1.0.0.rc1", require: false
gem "dry-auto_inject", require: false
gem "dry-logic"
gem "dry-system"
gem "dry-types"
gem "dry-system", "1.0.0.rc1"
end

2 changes: 1 addition & 1 deletion lib/dry/effects/effects/resolve.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Effects
class Resolve < ::Module
DependencyNameInvalid = ::Class.new(StandardError)

VALID_NAME = /([a-z_][a-zA-Z_0-9]*)$/.freeze
VALID_NAME = /([a-z_][a-zA-Z_0-9]*)$/

Resolve = Effect.new(type: :resolve)

Expand Down
2 changes: 1 addition & 1 deletion lib/dry/effects/extensions/auto_inject.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require "dry/auto_inject/version"

if Gem::Version.new(Dry::AutoInject::VERSION) < Gem::Version.new("0.10.0")
raise RuntimeError, "dry-effects requires dry-auto_inject >= 0.10.0"
raise "dry-effects requires dry-auto_inject >= 0.10.0"
end

module Dry
Expand Down
2 changes: 1 addition & 1 deletion lib/dry/effects/providers/random.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Random < Provider[:random]
DEFAULT_RANDOM = ::Random
DEFAULT = -> _ { DEFAULT_RANDOM.rand }

DEFAULT_RANGE = (0.0...1.0).freeze
DEFAULT_RANGE = (0.0...1.0)

def rand(range_or_limit = nil)
range_or_limit ||= DEFAULT_RANGE
Expand Down

0 comments on commit af3100d

Please sign in to comment.