Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing ptore directory naming convention for darwin.

Thanks to Denis Barushev for the hint.
  • Loading branch information...
commit 599f48aa63b80b60a1b566e665888f550838a4a1 1 parent 57c133d
@janfri authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 Changelog
  2. +1 −1  lib/mini_exiftool.rb
View
4 Changelog
@@ -1,3 +1,7 @@
+v1.2.2
+- Fixing ptore directory naming convention for darwin.
+ Thanks to Denis Barushev for the hint.
+
v1.2.1
- Switching to echoe.
- Update e-mail address.
View
2  lib/mini_exiftool.rb
@@ -386,7 +386,7 @@ def self.pstore_get attribute
def self.load_or_create_pstore
# This will hopefully work on *NIX and Windows systems
home = ENV['HOME'] || ENV['HOMEDRIVE'] + ENV['HOMEPATH'] || ENV['USERPROFILE']
- subdir = RUBY_PLATFORM =~ /win/i ? '_mini_exiftool' : '.mini_exiftool'
+ subdir = RUBY_PLATFORM =~ /\bmswin/i ? '_mini_exiftool' : '.mini_exiftool'
FileUtils.mkdir_p(File.join(home, subdir))
filename = File.join(home, subdir, 'exiftool_tags_' << exiftool_version.gsub('.', '_') << '.pstore')
@@pstore = PStore.new filename
Please sign in to comment.
Something went wrong with that request. Please try again.