lib/keyring.rb in cocoapods-keys-2.3.0 vs lib/keyring.rb in cocoapods-keys-2.3.1

- old
+ new

@@ -36,11 +36,11 @@ item = keychain.where(service: self.class.keychain_prefix + name, account: key).first if item item.password = value item.save! else - keychain_has_keykeychain.create(service: self.class.keychain_prefix + name, password: value, account: key) + keychain.create(service: self.class.keychain_prefix + name, password: value, account: key) end end def keychain_data Hash[ @@ -59,10 +59,10 @@ has_key end def keychain_value(key) - ENV[key] || keychain.where(service: self.class.keychain_prefix + name, account: key).first.password + ENV[key] || keychain.where(service: self.class.keychain_prefix + name, account: key).first&.password end def camel_cased_keys Hash[keychain_data.map { |(key, value)| [key[0].downcase + key[1..-1], value] }] end