lib/keyring.rb in cocoapods-keys-1.3.2 vs lib/keyring.rb in cocoapods-keys-1.4.0
- old
+ new
@@ -32,10 +32,14 @@
end
def keychain_data
keychain = OSXKeychain.new
Hash[
- @keys.map { |key| [key, keychain[self.class.keychain_prefix + name, key]] }
+ @keys.map { |key| [key, ENV[key] || keychain[self.class.keychain_prefix + name, key]] }
]
+ end
+
+ def camel_cased_keys
+ Hash[keychain_data.map { |(key, value)| [key[0].downcase + key[1..-1], value] }]
end
end
end