diff options
author | Austin Ziegler <austin@zieglers.ca> | 2021-12-23 11:14:33 -0500 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2022-07-04 20:26:10 -0400 |
commit | 63bb988f761da3fa061c9e3b5d13785477bf44c5 (patch) | |
tree | c605f55a7e5cf7f8da98f3c2677a1c47ee71ecf3 | |
parent | 99af1369a86b38585f6c63e9d50ac7040932916a (diff) | |
download | diff-lcs-63bb988f761da3fa061c9e3b5d13785477bf44c5.tar.gz |
standardrb --only Layout/SpaceInsideHashLiteralBraces --fix
-rw-r--r-- | lib/diff/lcs.rb | 4 | ||||
-rw-r--r-- | lib/diff/lcs/hunk.rb | 4 | ||||
-rw-r--r-- | spec/issues_spec.rb | 4 | ||||
-rw-r--r-- | spec/ldiff_spec.rb | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/lib/diff/lcs.rb b/lib/diff/lcs.rb index 2214240..77b508f 100644 --- a/lib/diff/lcs.rb +++ b/lib/diff/lcs.rb @@ -578,8 +578,8 @@ class << Diff::LCS # standard:disable Style/HashSyntax PATCH_MAP = { # :nodoc: - :patch => { "+" => "+", "-" => "-", "!" => "!", "=" => "=" }.freeze, - :unpatch => { "+" => "-", "-" => "+", "!" => "!", "=" => "=" }.freeze + :patch => {"+" => "+", "-" => "-", "!" => "!", "=" => "="}.freeze, + :unpatch => {"+" => "-", "-" => "+", "!" => "!", "=" => "="}.freeze }.freeze # standard:enable Style/HashSyntax diff --git a/lib/diff/lcs/hunk.rb b/lib/diff/lcs/hunk.rb index d886ba2..9ff3638 100644 --- a/lib/diff/lcs/hunk.rb +++ b/lib/diff/lcs/hunk.rb @@ -6,8 +6,8 @@ require "diff/lcs/block" # each block. (So if we're not using context, every hunk will contain one # block.) Used in the diff program (bin/ldiff). class Diff::LCS::Hunk - OLD_DIFF_OP_ACTION = { "+" => "a", "-" => "d", "!" => "c" }.freeze # :nodoc: - ED_DIFF_OP_ACTION = { "+" => "a", "-" => "d", "!" => "c" }.freeze # :nodoc: + OLD_DIFF_OP_ACTION = {"+" => "a", "-" => "d", "!" => "c"}.freeze # :nodoc: + ED_DIFF_OP_ACTION = {"+" => "a", "-" => "d", "!" => "c"}.freeze # :nodoc: private_constant :OLD_DIFF_OP_ACTION, :ED_DIFF_OP_ACTION if respond_to?(:private_constant) diff --git a/spec/issues_spec.rb b/spec/issues_spec.rb index 26460d3..3451d71 100644 --- a/spec/issues_spec.rb +++ b/spec/issues_spec.rb @@ -60,8 +60,8 @@ describe "Diff::LCS Issues" do it "should fail with a correct error" do # standard:disable Style/HashSyntax expect { - actual = { :category => "app.rack.request" } - expected = { :category => "rack.middleware", :title => "Anonymous Middleware" } + actual = {:category => "app.rack.request"} + expected = {:category => "rack.middleware", :title => "Anonymous Middleware"} expect(actual).to eq(expected) }.to raise_error(RSpec::Expectations::ExpectationNotMetError) # standard:enable Style/HashSyntax diff --git a/spec/ldiff_spec.rb b/spec/ldiff_spec.rb index 4a08c43..cf89ada 100644 --- a/spec/ldiff_spec.rb +++ b/spec/ldiff_spec.rb @@ -7,9 +7,9 @@ RSpec.describe "bin/ldiff" do # standard:disable Style/HashSyntax fixtures = [ - { :name => "output.diff", :left => "aX", :right => "bXaX" }, - { :name => "output.diff.chef", :left => "old-chef", :right => "new-chef" }, - { :name => "output.diff.chef2", :left => "old-chef2", :right => "new-chef2" } + {:name => "output.diff", :left => "aX", :right => "bXaX"}, + {:name => "output.diff.chef", :left => "old-chef", :right => "new-chef"}, + {:name => "output.diff.chef2", :left => "old-chef2", :right => "new-chef2"} ].product([nil, "-e", "-f", "-c", "-u"]).map { |(fixture, flag)| fixture = fixture.dup fixture[:flag] = flag |