1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2024-12-22 02:54:23 +01:00

gem: adopt frozen string literals

This commit is contained in:
cn 2020-03-07 01:30:57 +01:00
parent 92ee01e5de
commit 41f5d4ed62
16 changed files with 18 additions and 4 deletions

View File

@ -53,9 +53,6 @@ Style/Documentation:
Style/FormatStringToken:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/GuardClause:
Enabled: false

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
source 'https://rubygems.org'
gemspec

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'openvpn-status-web'

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'date'
require 'etc'

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
class Integer
def as_bytes

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
module OpenVPNStatusWeb
module Parser

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
module OpenVPNStatusWeb
module Parser

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative 'modern_stateless'

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative 'modern_stateless'

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
module OpenVPNStatusWeb
class Status

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
module OpenVPNStatusWeb
VERSION = '2.0.0'.freeze
VERSION = '2.0.0'
end

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative 'lib/openvpn-status-web/version'

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative '../spec_helper'

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative '../spec_helper'

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'rubygems'
require 'bundler/setup'