From df85ce80cddc438ca8e31b8df4256f7abb0687d4 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 17 Dec 2017 00:27:33 -0800 Subject: [PATCH] Fix oops in update script. --- Scripts/update_feed.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/update_feed.rb b/Scripts/update_feed.rb index 3f8f0fcba..eab89b245 100755 --- a/Scripts/update_feed.rb +++ b/Scripts/update_feed.rb @@ -27,8 +27,8 @@ sortedchannels = channel.search('./item').sort_by{ |i| Time.parse(i.at('pubDate' #Get the latest revision from the appcast appcast_enclosure = sortedchannels[0].search('./enclosure').first appcast_url = appcast_enclosure.attribute('url'); -appcast_revision = appcast_enclosure.attribute_with_ns('version', sparkle); -appcast_revision_split = appcast_revision.to_s.split( /-/ ) +appcast_revision = appcast_enclosure.attribute_with_ns('version', sparkle).to_s; +appcast_revision_split = appcast_revision.split( /-/ ) appcast_revision_code = appcast_revision_split[2] appcast_revision_split = appcast_revision_code.split( /g/ ) appcast_revision_code = appcast_revision_split[1]