From fce606039b616754df69939c7ff87d03889136b1 Mon Sep 17 00:00:00 2001 From: Nikolaos Anastopoulos Date: Thu, 18 Jul 2024 17:08:49 +0300 Subject: [PATCH] Fixed Ruby 2.5 compatibility Previous commit d54a6b7 broke Ruby 2.5 compatibility by using `Time#iso8601`. Patching it to use `Time#strftime` instead. --- lib/iruby/session.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/iruby/session.rb b/lib/iruby/session.rb index 584de9a..2b06759 100644 --- a/lib/iruby/session.rb +++ b/lib/iruby/session.rb @@ -2,7 +2,6 @@ require 'iruby/session/mixin' require 'securerandom' -require 'time' module IRuby class Session @@ -80,7 +79,7 @@ def send(socket_type, message_type, content) header = { msg_type: message_type, msg_id: SecureRandom.uuid, - date: Time.now.utc.iso8601, + date: Time.now.utc.strftime('%Y-%m-%dT%H:%M:%SZ'), username: 'kernel', session: @session_id, version: '5.0'