From 917ae77ce5bf32e2b322835f2ef87a87d0891529 Mon Sep 17 00:00:00 2001 From: Ricardo Mendes Date: Sat, 27 Jan 2018 00:41:18 +0000 Subject: [PATCH] require open-uri for fetching URL --- lib/versions.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/versions.rb b/lib/versions.rb index fa26d18a3b..2cfc7c1ab7 100644 --- a/lib/versions.rb +++ b/lib/versions.rb @@ -9,6 +9,7 @@ def registered(app) 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