lib/key_master.rb in cocoapods-keys-1.3.2 vs lib/key_master.rb in cocoapods-keys-1.4.0
- old
+ new
@@ -7,11 +7,12 @@
class KeyMaster
attr_accessor :name, :interface, :implementation
def initialize(keyring, time = Time.now)
@time = time
- @keys = Hash[keyring.keychain_data.map { |(key, value)| [key[0].downcase + key[1..-1], value] }]
- @name = keyring.code_name + 'Keys'
+ @keys = keyring.camel_cased_keys
+ @name = keyring.code_name.capitalize + 'Keys'
+
@used_indexes = Set.new
@indexed_keys = {}
@data = generate_data
@interface = generate_interface
@implementation = generate_implementation