1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2024-12-22 12:54:24 +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: Style/FormatStringToken:
Enabled: false Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/GuardClause: Style/GuardClause:
Enabled: false Enabled: false

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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