Skip to content

Commit

Permalink
Upgrade bundled dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed Apr 3, 2022
1 parent 115cb50 commit c769b44
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 39 deletions.
44 changes: 22 additions & 22 deletions Gemfile.lock
Expand Up @@ -18,41 +18,41 @@ GEM
specs:
ast (2.4.2)
diff-lcs (1.5.0)
parallel (1.21.0)
parser (3.1.0.0)
parallel (1.22.1)
parser (3.1.1.0)
ast (~> 2.4.1)
rainbow (3.0.0)
regexp_parser (2.1.1)
rainbow (3.1.1)
regexp_parser (2.2.1)
rexml (3.2.5)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (~> 3.11.0)
rspec-its (1.3.0)
rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0)
rspec-mocks (3.10.2)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.3)
rubocop (1.22.3)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
rubocop (1.26.1)
parallel (~> 1.10)
parser (>= 3.0.0.0)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.12.0, < 2.0)
rubocop-ast (>= 1.16.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.13.0)
parser (>= 3.0.1.1)
rubocop-ast (1.16.0)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
sorbet-runtime (0.5.9636)
sorbet-runtime (0.5.9837)
unicode-display_width (2.1.0)
unparser (0.6.4)
diff-lcs (~> 1.3)
Expand All @@ -71,4 +71,4 @@ DEPENDENCIES
rubocop (~> 1.7)

BUNDLED WITH
2.2.32
2.3.6
4 changes: 2 additions & 2 deletions lib/mutant/ast/regexp/transformer.rb
Expand Up @@ -110,9 +110,9 @@ class Table
#
# @return [Table]
def self.create(*rows)
table = rows.map do |ast_type, token, klass|
table = rows.to_h do |ast_type, token, klass|
[ast_type, Mapping.new(::Regexp::Token.new(*token), klass)]
end.to_h
end

new(table)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/mutant/cli/command.rb
Expand Up @@ -184,9 +184,9 @@ def parse_subcommand(arguments)
end

def format_subcommands
commands = subcommands.map do |subcommand|
commands = subcommands.to_h do |subcommand|
[subcommand.command_name, subcommand.short_description]
end.to_h
end

width = commands.each_key.map(&:length).max

Expand Down
4 changes: 2 additions & 2 deletions lib/mutant/env.rb
Expand Up @@ -68,9 +68,9 @@ def cover_index(mutation_index)
#
# @return Hash{Mutation => Enumerable<Test>}
def selections
subjects.map do |subject|
subjects.to_h do |subject|
[subject, selector.call(subject)]
end.to_h
end
end
memoize :selections

Expand Down
5 changes: 2 additions & 3 deletions lib/mutant/matcher/config.rb
Expand Up @@ -25,7 +25,7 @@ class Config

private_constant(*constants(false))

DEFAULT = new(anima.attribute_names.map { |name| [name, []] }.to_h)
DEFAULT = new(anima.attribute_names.to_h { |name| [name, []] })

expression = Transform::Block.capture(:expression) do |input|
Mutant::Config::DEFAULT.expression_parser.call(input)
Expand Down Expand Up @@ -74,8 +74,7 @@ def add(attribute, value)
def merge(other)
self.class.new(
to_h
.map { |name, value| [name, value + other.public_send(name)] }
.to_h
.to_h { |name, value| [name, value + other.public_send(name)] }
)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/mutant/repository/diff.rb
Expand Up @@ -50,7 +50,7 @@ def diff_index(root)
Mutant
.traverse(->(line) { parse_line(root, line) }, lines)
.fmap do |paths|
paths.map { |path| [path.path, path] }.to_h
paths.to_h { |path| [path.path, path] }
end
end
end
Expand Down
3 changes: 1 addition & 2 deletions lib/mutant/transform.rb
Expand Up @@ -351,15 +351,14 @@ def transform_optional(input)
def transform_keys(keys, input)
success(
keys
.map do |key|
.to_h do |key|
[
key.value,
coerce_key(key, input).from_right do |error|
return failure(error)
end
]
end
.to_h
)
end
# rubocop:enable Metrics/MethodLength
Expand Down
3 changes: 0 additions & 3 deletions lib/mutant/zombifier.rb
Expand Up @@ -17,10 +17,7 @@ class Zombifier

include AST::Sexp

# rubocop:disable Lint/InheritException
LoadError = Class.new(::LoadError)
# rubocop:enable Lint/InheritException

# Initialize object
#
# @param [Symbol] namespace
Expand Down
2 changes: 2 additions & 0 deletions mutant-minitest.gemspec
Expand Up @@ -19,6 +19,8 @@ Gem::Specification.new do |gem|

gem.required_ruby_version = '>= 2.7'

gem.metadata['rubygems_mfa_required'] = 'true'

gem.add_runtime_dependency('minitest', '~> 5.11')
gem.add_runtime_dependency('mutant', "= #{gem.version}")
end
2 changes: 2 additions & 0 deletions mutant-rspec.gemspec
Expand Up @@ -16,6 +16,8 @@ Gem::Specification.new do |gem|
gem.files = %w[lib/mutant/integration/rspec.rb]
gem.extra_rdoc_files = %w[LICENSE]

gem.metadata['rubygems_mfa_required'] = 'true'

gem.required_ruby_version = '>= 2.7'

gem.add_runtime_dependency('mutant', "= #{gem.version}")
Expand Down
2 changes: 2 additions & 0 deletions mutant.gemspec
Expand Up @@ -20,6 +20,8 @@ Gem::Specification.new do |gem|
gem.extra_rdoc_files = %w[LICENSE]
gem.executables = %w[mutant]

gem.metadata['rubygems_mfa_required'] = 'true'

gem.required_ruby_version = '>= 2.7'

gem.add_runtime_dependency('diff-lcs', '~> 1.3')
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/mutant/repository/diff_spec.rb
Expand Up @@ -22,9 +22,9 @@ def apply
end

let(:allowed_paths) do
%w[/foo bar.rb baz.rb].map do |path|
%w[/foo bar.rb baz.rb].to_h do |path|
[path, Pathname.new(path)]
end.to_h
end
end

let(:file_diff_expectations) { [] }
Expand Down

0 comments on commit c769b44

Please sign in to comment.