lib/omnivault/abstract_vault.rb in omnivault-0.1.1 vs lib/omnivault/abstract_vault.rb in omnivault-0.1.2

- old
+ new

@@ -8,10 +8,14 @@ PWS.new end end def self.for_platform - AppleKeychain.new + if (/darwin/ =~ RUBY_PLATFORM).nil? + PWS.new + else + AppleKeychain.new + end rescue LoadError PWS.new end end end