Skip to content

Commit

Permalink
Merge pull request #346 from mbj/upgrade/dependencies
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
mbj authored Jun 14, 2023
2 parents 4246fde + 781e1bd commit 4888c49
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 33 deletions.
40 changes: 21 additions & 19 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,53 +16,55 @@ GEM
ast (2.4.2)
diff-lcs (1.5.0)
json (2.6.3)
mutant (0.11.18)
mutant (0.11.20)
diff-lcs (~> 1.3)
parser (~> 3.2.0)
parser (~> 3.2.2)
regexp_parser (~> 2.6.1)
sorbet-runtime (~> 0.5.0)
unparser (~> 0.6.6)
mutant-rspec (0.11.18)
mutant (= 0.11.18)
unparser (~> 0.6.7)
mutant-rspec (0.11.20)
mutant (= 0.11.20)
rspec-core (>= 3.8.0, < 4.0.0)
parallel (1.22.1)
parser (3.2.0.0)
parallel (1.23.0)
parser (3.2.2.3)
ast (~> 2.4.1)
racc
racc (1.7.1)
rainbow (3.1.1)
regexp_parser (2.6.1)
regexp_parser (2.6.2)
rexml (3.2.5)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.2)
rspec-expectations (3.12.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-its (1.3.0)
rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0)
rspec-mocks (3.12.2)
rspec-mocks (3.12.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rubocop (1.42.0)
rubocop (1.52.1)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.2.1)
parser (>= 3.2.2.3)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.24.1, < 2.0)
rubocop-ast (>= 1.28.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.24.1)
parser (>= 3.1.1.0)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
rubocop-packaging (0.5.2)
rubocop (>= 1.33, < 2.0)
ruby-progressbar (1.11.0)
sorbet-runtime (0.5.10611)
ruby-progressbar (1.13.0)
sorbet-runtime (0.5.10878)
unicode-display_width (2.4.2)

PLATFORMS
Expand Down
37 changes: 23 additions & 14 deletions bin/corpus
Original file line number Diff line number Diff line change
Expand Up @@ -57,31 +57,40 @@ module Unparser
end

transform = Mutant::Transform
string = transform::Primitive.new(String)
string_array = transform::Array.new(string)
string = transform::Primitive.new(primitive: String)
string_array = transform::Array.new(transform: string)
path = ROOT.join('spec', 'integrations.yml')

loader =
transform::Named.new(
path.to_s,
transform::Sequence.new(
[
transform::Exception.new(SystemCallError, :read.to_proc),
transform::Exception.new(YAML::SyntaxError, YAML.method(:safe_load)),
name: path.to_s,
transform: transform::Sequence.new(
steps: [
transform::Exception.new(
block: :read.to_proc,
error_class: SystemCallError
),
transform::Exception.new(
block: YAML.method(:safe_load),
error_class: YAML::SyntaxError
),
transform::Array.new(
transform::Sequence.new(
[
transform: transform::Sequence.new(
steps: [
transform::Hash.new(
optional: [],
required: [
transform::Hash::Key.new('exclude', string_array),
transform::Hash::Key.new('name', string),
transform::Hash::Key.new('repo_ref', string),
transform::Hash::Key.new('repo_uri', string)
transform::Hash::Key.new(value: 'exclude', transform: string_array),
transform::Hash::Key.new(value: 'name', transform: string),
transform::Hash::Key.new(value: 'repo_ref', transform: string),
transform::Hash::Key.new(value: 'repo_uri', transform: string)
]
),
transform::Hash::Symbolize.new,
transform::Exception.new(Unparser::Anima::Error, Project.public_method(:new))
transform::Exception.new(
block: Project.public_method(:new),
error_class: Unparser::Anima::Error
)
]
)
)
Expand Down
2 changes: 2 additions & 0 deletions lib/unparser/color.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ def format(text)

# Well rubocop you are static so you do not have a clue here ;)
# rubocop:disable Style/RedundantInitialize
# rubocop:disable Style/MissingSuper
def initialize; end
# rubocop:enable Style/RedundantInitialize
# rubocop:enable Style/MissingSuper

end.new

Expand Down
2 changes: 2 additions & 0 deletions lib/unparser/validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Validation
#
# @api private
#
# rubocop:disable Style/OperatorMethodCall
def success?
[
original_source,
Expand All @@ -25,6 +26,7 @@ def success?
generated_node
].all?(&:right?) && generated_node.from_right.==(original_node.from_right)
end
# rubocop:enable Style/OperatorMethodCall

# Return error report
#
Expand Down

0 comments on commit 4888c49

Please sign in to comment.