From 55aecedef7ddd47968f715a936bd3e7364c6fd58 Mon Sep 17 00:00:00 2001 From: "depfu[bot]" <23717796+depfu[bot]@users.noreply.github.com> Date: Fri, 24 Dec 2021 12:20:14 +0000 Subject: [PATCH] gems: update rubocop to version 1.24.0 --- openvpn-status-web.gemspec | 2 +- spec/spec_helper.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openvpn-status-web.gemspec b/openvpn-status-web.gemspec index f48b433..d9f7901 100644 --- a/openvpn-status-web.gemspec +++ b/openvpn-status-web.gemspec @@ -37,7 +37,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'rack-test' s.add_development_dependency 'rake' s.add_development_dependency 'rspec' - s.add_development_dependency 'rubocop', '~> 1.23.0' + s.add_development_dependency 'rubocop', '~> 1.24.0' s.add_development_dependency 'rubocop-rake', '~> 0.6.0' s.add_development_dependency 'rubocop-rspec', '~> 2.6.0' s.add_development_dependency 'solargraph', '~> 0.44.0' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 91c210b..974a031 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -7,16 +7,16 @@ require 'rack/test' require 'openvpn-status-web' def status_v1 - text = File.open('examples/status.v1', 'rb', &:read) + text = File.binread('examples/status.v1') OpenVPNStatusWeb::Parser::V1.new.parse_status_log text end def status_v2 - text = File.open('examples/status.v2', 'rb', &:read) + text = File.binread('examples/status.v2') OpenVPNStatusWeb::Parser::V2.new.parse_status_log text end def status_v3 - text = File.open('examples/status.v3', 'rb', &:read) + text = File.binread('examples/status.v3') OpenVPNStatusWeb::Parser::V3.new.parse_status_log text end