diff options
author | Austin Ziegler <austin@zieglers.ca> | 2021-12-23 10:44:44 -0500 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2022-07-04 20:26:10 -0400 |
commit | f85ec381137c6838600b16c353ff9dba3a05452c (patch) | |
tree | 7a2718961e97c56d4c70dc0a6ebe6b17aee005fc /bin | |
parent | ef23b66e9a495206f2bf1cd9ce0df50d363d26ef (diff) | |
download | diff-lcs-f85ec381137c6838600b16c353ff9dba3a05452c.tar.gz |
standardrb --only Style/StringLiterals --fix
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/htmldiff | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/htmldiff b/bin/htmldiff index 14114a7..bcd89d2 100755 --- a/bin/htmldiff +++ b/bin/htmldiff @@ -1,11 +1,11 @@ #! /usr/bin/env ruby -w # frozen_string_literal: true -require 'diff/lcs' -require 'diff/lcs/htmldiff' +require "diff/lcs" +require "diff/lcs/htmldiff" begin - require 'text/format' + require "text/format" rescue LoadError Diff::LCS::HTMLDiff.can_expand_tabs = false end @@ -24,7 +24,7 @@ options = { :title => "diff #{ARGV[0]} #{ARGV[1]}" } htmldiff = Diff::LCS::HTMLDiff.new(left, right, options) if ARGV[2] - File.open(ARGV[2], 'w') do |f| + File.open(ARGV[2], "w") do |f| htmldiff.options[:output] = f htmldiff.run end |