spaceship/lib/spaceship/tunes/app_version.rb in fastlane-2.37.0.beta.20170605010054 vs spaceship/lib/spaceship/tunes/app_version.rb in fastlane-2.37.0
- old
+ new
@@ -150,10 +150,13 @@
attr_accessor :languages
# @return (Hash) A hash representing the keywords in all languages
attr_reader :keywords
+ # @return (Hash) A hash representing the promotionalText in all languages
+ attr_reader :promotional_text
+
# @return (Hash) A hash representing the description in all languages
attr_reader :description
# @return (Hash) The changelog
attr_reader :release_notes
@@ -561,11 +564,12 @@
{
keywords: :keywords,
description: :description,
supportUrl: :support_url,
marketingUrl: :marketing_url,
- releaseNotes: :release_notes
+ releaseNotes: :release_notes,
+ promotionalText: :promotional_text
}.each do |json, attribute|
instance_variable_set("@#{attribute}".to_sym, LanguageItem.new(json, languages))
end
end
@@ -809,10 +813,12 @@
return [] unless display_families
result = []
display_families.each do |display_family|
- trailer_data = display_family.fetch("trailer", {}).fetch("value")
+ trailer_raw = display_family["trailer"]
+ next if trailer_raw.nil?
+ trailer_data = trailer_raw["value"]
next if trailer_data.nil?
data = {
device_type: display_family['name'],
language: row["language"]
}.merge(trailer_data)