Skip to content
This repository
Browse code

Fixing ptore directory naming convention for darwin.

Thanks to Denis Barushev for the hint.
  • Loading branch information...
commit 599f48aa63b80b60a1b566e665888f550838a4a1 1 parent 57c133d
janfri authored April 05, 2011
4  Changelog
... ...
@@ -1,3 +1,7 @@
  1
+v1.2.2
  2
+- Fixing ptore directory naming convention for darwin.
  3
+  Thanks to Denis Barushev for the hint.
  4
+
1 5
 v1.2.1
2 6
 - Switching to echoe.
3 7
 - Update e-mail address.
2  lib/mini_exiftool.rb
@@ -386,7 +386,7 @@ def self.pstore_get attribute
386 386
   def self.load_or_create_pstore
387 387
     # This will hopefully work on *NIX and Windows systems
388 388
     home = ENV['HOME'] || ENV['HOMEDRIVE'] + ENV['HOMEPATH'] || ENV['USERPROFILE']
389  
-    subdir = RUBY_PLATFORM =~ /win/i ? '_mini_exiftool' : '.mini_exiftool'
  389
+    subdir = RUBY_PLATFORM =~ /\bmswin/i ? '_mini_exiftool' : '.mini_exiftool'
390 390
     FileUtils.mkdir_p(File.join(home, subdir))
391 391
     filename = File.join(home, subdir, 'exiftool_tags_' << exiftool_version.gsub('.', '_') << '.pstore')
392 392
     @@pstore = PStore.new filename

0 notes on commit 599f48a

Please sign in to comment.
Something went wrong with that request. Please try again.