Skip to content

Commit

Permalink
Merge pull request #128 from buty4649/dependabot/bundler/rubocop-1.58.0
Browse files Browse the repository at this point in the history
  • Loading branch information
buty4649 authored Dec 5, 2023
2 parents 49a6e4e + f55c399 commit b05f362
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ GEM
diff-lcs (1.5.0)
ffi (1.16.3)
ffi (1.16.3-x64-mingw-ucrt)
json (2.6.3)
json (2.7.0)
language_server-protocol (3.17.0.3)
mini_mime (1.1.5)
multi_test (1.1.0)
Expand All @@ -61,10 +61,10 @@ GEM
coderay
parser
unparser
racc (1.7.1)
racc (1.7.3)
rainbow (3.1.1)
rake (13.1.0)
regexp_parser (2.8.2)
regexp_parser (2.8.3)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
Expand All @@ -90,15 +90,15 @@ GEM
binding_of_caller
rspec-parameterized-core (< 2)
rspec-support (3.12.1)
rubocop (1.57.2)
rubocop (1.58.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
Expand Down
10 changes: 5 additions & 5 deletions mrblib/rf/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ class Error < StandardError; end

class NotFound < Error
def initialize(file)
super "file not found: #{file}"
super("file not found: #{file}")
end
end

class IsDirectory < Error
def initialize(path)
super "#{path}: is a directory"
super("#{path}: is a directory")
end
end

class PermissionDenied < Error
def initialize(path)
super "#{path}: permission denied"
super("#{path}: permission denied")
end
end

class ConflictOptions < Error
def initialize(options)
opts = options.is_a?(Array) ? options.join(', ') : options
super "#{opts}: conflict options"
super("#{opts}: conflict options")
end
end

class NotRegularFile < Error
def initialize(path)
super "#{path}: not a regular file"
super("#{path}: not a regular file")
end
end

Expand Down

0 comments on commit b05f362

Please sign in to comment.