Skip to content

Commit 45ff332

Browse files
committed
- Fix rubocop errors on Ruby 2.2 and try to fix Open3 options error on jRuby
1 parent 3f33ef0 commit 45ff332

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/libreconv.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def convert
6464
# @return [String]
6565
# @raise [ConversionFailedError] When soffice command execution error.
6666
def execute_command(command, target_path)
67-
opts = RUBY_PLATFORM =~ /java/ ? nil : { unsetenv_others: true }
67+
opts = RUBY_PLATFORM =~ /java/ ? {} : { unsetenv_others: true }
6868
output, error, status = Open3.capture3 command_env, *command, opts
6969

7070
target_tmp_file = File.join(target_path, target_filename)

lib/libreconv/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Libreconv
4-
VERSION = '0.9.5'
4+
VERSION = '0.9.5' # rubocop:disable Style/MutableConstant, Lint/UnneededCopDisableDirective
55
end

0 commit comments

Comments
 (0)