mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2024-12-22 12:54:24 +01:00
gems: update rubocop to version 1.24.0
This commit is contained in:
parent
d401074524
commit
55aecedef7
@ -37,7 +37,7 @@ Gem::Specification.new do |s|
|
|||||||
s.add_development_dependency 'rack-test'
|
s.add_development_dependency 'rack-test'
|
||||||
s.add_development_dependency 'rake'
|
s.add_development_dependency 'rake'
|
||||||
s.add_development_dependency 'rspec'
|
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-rake', '~> 0.6.0'
|
||||||
s.add_development_dependency 'rubocop-rspec', '~> 2.6.0'
|
s.add_development_dependency 'rubocop-rspec', '~> 2.6.0'
|
||||||
s.add_development_dependency 'solargraph', '~> 0.44.0'
|
s.add_development_dependency 'solargraph', '~> 0.44.0'
|
||||||
|
@ -7,16 +7,16 @@ require 'rack/test'
|
|||||||
require 'openvpn-status-web'
|
require 'openvpn-status-web'
|
||||||
|
|
||||||
def status_v1
|
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
|
OpenVPNStatusWeb::Parser::V1.new.parse_status_log text
|
||||||
end
|
end
|
||||||
|
|
||||||
def status_v2
|
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
|
OpenVPNStatusWeb::Parser::V2.new.parse_status_log text
|
||||||
end
|
end
|
||||||
|
|
||||||
def status_v3
|
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
|
OpenVPNStatusWeb::Parser::V3.new.parse_status_log text
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user