From 029ba18a70c359f298d6a1a35502906ec1379aca Mon Sep 17 00:00:00 2001 From: Murilo Dal Ri Date: Tue, 19 Apr 2022 13:20:21 +0100 Subject: [PATCH 1/3] Update .ruby-version to 2.7.6 --- .ruby-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index 338a5b5..49cdd66 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.6.6 +2.7.6 From 6c893020593de920b1011bf327a3ca1596a18c17 Mon Sep 17 00:00:00 2001 From: Murilo Dal Ri Date: Wed, 4 May 2022 16:48:32 +0100 Subject: [PATCH 2/3] Add required_ruby_version to gemspec To appease Rubocop. --- plek.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/plek.gemspec b/plek.gemspec index 7fd5f6d..8954635 100644 --- a/plek.gemspec +++ b/plek.gemspec @@ -14,6 +14,7 @@ Gem::Specification.new do |s| s.license = "MIT" s.files = Dir.glob("lib/**/*") + %w[LICENCE README.md] + s.required_ruby_version = ">= 2.7" s.require_path = "lib" s.add_development_dependency "climate_control" s.add_development_dependency "minitest" From 68cde1f7f9cc01f30a0d49a8f3792eba57f68f5d Mon Sep 17 00:00:00 2001 From: Murilo Dal Ri Date: Wed, 4 May 2022 16:51:48 +0100 Subject: [PATCH 3/3] Rubocop auto-correct --- lib/plek.rb | 2 +- plek.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plek.rb b/lib/plek.rb index 4b6eab8..ccde486 100644 --- a/lib/plek.rb +++ b/lib/plek.rb @@ -133,7 +133,7 @@ def name_for(service) name = service.to_s.dup name.downcase! name.strip! - name.gsub!(/[^a-z\.-]+/, "") + name.gsub!(/[^a-z.-]+/, "") name end diff --git a/plek.gemspec b/plek.gemspec index 8954635..c63221b 100644 --- a/plek.gemspec +++ b/plek.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |s| s.description = "Find the right hostname for each service in an environment-dependent manner" s.license = "MIT" - s.files = Dir.glob("lib/**/*") + %w[LICENCE README.md] + s.files = Dir.glob("lib/**/*") + %w[LICENCE README.md] s.required_ruby_version = ">= 2.7" s.require_path = "lib" s.add_development_dependency "climate_control"