From 7f697ee69f3485efd23ff501ebdfeeb7b4362676 Mon Sep 17 00:00:00 2001 From: Josh Perry Date: Thu, 17 Sep 2020 11:50:16 -0600 Subject: [PATCH] Nuke identity lambdas --- lib/puppet/type/rvm_gem.rb | 2 +- lib/puppet/type/rvm_gemset.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet/type/rvm_gem.rb b/lib/puppet/type/rvm_gem.rb index 22912ff6..a132e29f 100644 --- a/lib/puppet/type/rvm_gem.rb +++ b/lib/puppet/type/rvm_gem.rb @@ -4,7 +4,7 @@ @doc = 'Ruby Gem support using RVM.' def self.title_patterns - [[/^(?:(.*)\/)?(.*)$/, [[:ruby_version, ->(x) { x }], [:name, ->(x) { x }]]]] # rubocop:disable Style/RegexpLiteral + [[/^(?:(.*)\/)?(.*)$/, [[:ruby_version], [:name]]]] # rubocop:disable Style/RegexpLiteral end ensurable do diff --git a/lib/puppet/type/rvm_gemset.rb b/lib/puppet/type/rvm_gemset.rb index 72171c57..c103b7dd 100644 --- a/lib/puppet/type/rvm_gemset.rb +++ b/lib/puppet/type/rvm_gemset.rb @@ -4,7 +4,7 @@ @doc = 'Manage RVM Gemsets.' def self.title_patterns - [[%r{^(?:(.*)@)?(.*)$}, [[:ruby_version, ->(x) { x }], [:name, ->(x) { x }]]]] + [[%r{^(?:(.*)@)?(.*)$}, [[:ruby_version], [:name]]]] end ensurable