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