pilot/lib/pilot/build_manager.rb in fastlane-2.182.0 vs pilot/lib/pilot/build_manager.rb in fastlane-2.183.0
- old
+ new
@@ -445,11 +445,11 @@
return uploaded_build
end
end
def update_review_detail(build, info)
- info = info.collect { |k, v| [k.to_sym, v] }.to_h
+ info = info.transform_keys(&:to_sym)
attributes = {}
attributes[:contactEmail] = info[:contact_email] if info.key?(:contact_email)
attributes[:contactFirstName] = info[:contact_first_name] if info.key?(:contact_first_name)
attributes[:contactLastName] = info[:contact_last_name] if info.key?(:contact_last_name)
@@ -461,11 +461,11 @@
Spaceship::ConnectAPI.patch_beta_app_review_detail(app_id: build.app.id, attributes: attributes)
end
def update_localized_app_review(build, info_by_lang, default_info: nil)
- info_by_lang = info_by_lang.collect { |k, v| [k.to_sym, v] }.to_h
+ info_by_lang = info_by_lang.transform_keys(&:to_sym)
if default_info
info_by_lang.delete(:default)
else
default_info = info_by_lang.delete(:default)
@@ -507,10 +507,10 @@
Spaceship::ConnectAPI.post_beta_app_localizations(app_id: app.id, attributes: attributes)
end
end
def update_localized_build_review(build, info_by_lang, default_info: nil)
- info_by_lang = info_by_lang.collect { |k, v| [k.to_sym, v] }.to_h
+ info_by_lang = info_by_lang.transform_keys(&:to_sym)
if default_info
info_by_lang.delete(:default)
else
default_info = info_by_lang.delete(:default)