1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2024-12-21 04:54:22 +01:00

gem: adopt frozen string literals

This commit is contained in:
cn 2020-03-06 21:33:29 +01:00
parent c73c09f311
commit b597ecb15e
19 changed files with 27 additions and 8 deletions

View File

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

View File

@ -5,6 +5,7 @@
IMPROVEMENTS:
- Refactor gemspec based on [recommendations](https://piotrmurach.com/articles/writing-a-ruby-gem-specification/) so tests are now excluded from gem and binaries move to `./exe` directory
- Adopt Ruby 2.3 frozen string literals for source code potentially reducing memory consumption
## 2.1.1 (March 1, 2020)

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,3 +1,4 @@
# frozen_string_literal: true
require_relative 'lib/dyndnsd/version'

View File

@ -1,3 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'dyndnsd'

View File

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

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'forwardable'

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Dyndnsd
module Generator

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'ipaddr'

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Dyndnsd
module Responder

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Dyndnsd
module Responder

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
# Adapted from https://github.com/eric/metriks-graphite/blob/master/lib/metriks/reporter/graphite.rb

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Dyndnsd
module Updater

View File

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

View File

@ -1,4 +1,6 @@
require 'spec_helper'
# frozen_string_literal: true
require_relative 'spec_helper'
describe Dyndnsd::Daemon do
include Rack::Test::Methods

View File

@ -1,8 +1,10 @@
# frozen_string_literal: true
require 'rubygems'
require 'bundler/setup'
require 'rack/test'
require 'dyndnsd'
require 'support/dummy_database'
require 'support/dummy_updater'
require_relative 'support/dummy_database'
require_relative 'support/dummy_updater'

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'forwardable'

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Dyndnsd
module Updater