diff --git a/.rubocop.yml b/.rubocop.yml index c6842ef..381d0b7 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -53,9 +53,6 @@ Style/Documentation: Style/FormatStringToken: Enabled: false -Style/FrozenStringLiteralComment: - Enabled: false - Style/GuardClause: Enabled: false diff --git a/Gemfile b/Gemfile index fa75df1..7f4f5e9 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source 'https://rubygems.org' gemspec diff --git a/Rakefile b/Rakefile index ba57a1f..444ff67 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'rubocop/rake_task' diff --git a/exe/openvpn-status-web b/exe/openvpn-status-web index d9d49ee..bad8872 100755 --- a/exe/openvpn-status-web +++ b/exe/openvpn-status-web @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'openvpn-status-web' diff --git a/lib/openvpn-status-web.rb b/lib/openvpn-status-web.rb index eed59fd..589145e 100755 --- a/lib/openvpn-status-web.rb +++ b/lib/openvpn-status-web.rb @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'date' require 'etc' diff --git a/lib/openvpn-status-web/int_patch.rb b/lib/openvpn-status-web/int_patch.rb index f8baf7b..b147f12 100644 --- a/lib/openvpn-status-web/int_patch.rb +++ b/lib/openvpn-status-web/int_patch.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true class Integer def as_bytes diff --git a/lib/openvpn-status-web/parser/modern_stateless.rb b/lib/openvpn-status-web/parser/modern_stateless.rb index 84b8f56..b8e65fa 100644 --- a/lib/openvpn-status-web/parser/modern_stateless.rb +++ b/lib/openvpn-status-web/parser/modern_stateless.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module OpenVPNStatusWeb module Parser diff --git a/lib/openvpn-status-web/parser/v1.rb b/lib/openvpn-status-web/parser/v1.rb index 4eb2b4a..4c806b5 100644 --- a/lib/openvpn-status-web/parser/v1.rb +++ b/lib/openvpn-status-web/parser/v1.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module OpenVPNStatusWeb module Parser diff --git a/lib/openvpn-status-web/parser/v2.rb b/lib/openvpn-status-web/parser/v2.rb index cac3b37..b8a9842 100644 --- a/lib/openvpn-status-web/parser/v2.rb +++ b/lib/openvpn-status-web/parser/v2.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative 'modern_stateless' diff --git a/lib/openvpn-status-web/parser/v3.rb b/lib/openvpn-status-web/parser/v3.rb index 149883a..149bab3 100644 --- a/lib/openvpn-status-web/parser/v3.rb +++ b/lib/openvpn-status-web/parser/v3.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative 'modern_stateless' diff --git a/lib/openvpn-status-web/status.rb b/lib/openvpn-status-web/status.rb index 8dbd39a..f9861fb 100644 --- a/lib/openvpn-status-web/status.rb +++ b/lib/openvpn-status-web/status.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module OpenVPNStatusWeb class Status diff --git a/lib/openvpn-status-web/version.rb b/lib/openvpn-status-web/version.rb index 6ff45ad..dbdb4ca 100644 --- a/lib/openvpn-status-web/version.rb +++ b/lib/openvpn-status-web/version.rb @@ -1,4 +1,5 @@ +# frozen_string_literal: true module OpenVPNStatusWeb - VERSION = '2.0.0'.freeze + VERSION = '2.0.0' end diff --git a/openvpn-status-web.gemspec b/openvpn-status-web.gemspec index 98d1fb4..0682004 100644 --- a/openvpn-status-web.gemspec +++ b/openvpn-status-web.gemspec @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative 'lib/openvpn-status-web/version' diff --git a/spec/parser/modern_stateless_spec.rb b/spec/parser/modern_stateless_spec.rb index 4d0928d..6e916a4 100644 --- a/spec/parser/modern_stateless_spec.rb +++ b/spec/parser/modern_stateless_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative '../spec_helper' diff --git a/spec/parser/v1_spec.rb b/spec/parser/v1_spec.rb index e332551..ff7baba 100644 --- a/spec/parser/v1_spec.rb +++ b/spec/parser/v1_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative '../spec_helper' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ca9d8d4..91c210b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require 'rubygems' require 'bundler/setup'