Skip to content

Commit

Permalink
Use @+ to use an unfreezed version of @@cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
janfri committed Nov 23, 2024
1 parent 2c737ce commit 1351787
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/mini_exiftool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ class MiniExiftool::Error < StandardError; end
############################################################################

def cmd_gen arg_str='', filename
[@@cmd, arg_str.encode('UTF-8'), escape(filename.encode(@@fs_enc))].map {|s| s.force_encoding('UTF-8')}.join(' ')
[+@@cmd, arg_str.encode('UTF-8'), escape(filename.encode(@@fs_enc))].map {|s| s.force_encoding('UTF-8')}.join(' ')
end

def run cmd
Expand Down
6 changes: 3 additions & 3 deletions mini_exiftool.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ Gem::Specification.new do |s|
| and it's found in your PATH (Try 'exiftool -ver' on your commandline).|
| For more details see |
| https://exiftool.org/install.html |
| You need also Ruby 1.9 or higher. |
| If you need support for Ruby < 1.9 or exiftool < 7.65 then install |
| You need also Ruby 2.3 or higher. |
| If you need support for Ruby < 2.3 or exiftool < 7.65 then install |
| mini_exiftool version < 2.0.0. |
+-----------------------------------------------------------------------+
END

s.required_ruby_version = '>= 1.9'
s.required_ruby_version = '>= 2.3'
s.requirements << 'exiftool, version >= 7,65'

s.add_runtime_dependency('ostruct', '>= 0.6.0')
Expand Down

0 comments on commit 1351787

Please sign in to comment.