diff --git a/lib/versions.rb b/lib/versions.rb index 2cfc7c1ab7..a865c53843 100644 --- a/lib/versions.rb +++ b/lib/versions.rb @@ -10,9 +10,8 @@ module Helpers def current_version require 'open-uri' - versions = JSON.parse(open('https://raw.githubusercontent.com/emberjs/guides.emberjs.com/master/snapshots/versions.json').read) - versions.sort_by! { |version| Gem::Version.new(version[1..-1]) } - @current_version = versions.last + versions = JSON.parse(open('https://guides.emberjs.com/content/versions.json').read) + @current_version = versions['data']['attributes']['current-version'] end def replace_current_version(input)