diff --git a/lib/puppet-strings/markdown.rb b/lib/puppet-strings/markdown.rb index 40122796..3abd43a0 100644 --- a/lib/puppet-strings/markdown.rb +++ b/lib/puppet-strings/markdown.rb @@ -76,9 +76,6 @@ def self.render(path = nil) # @param [String] path The full path to the template file. # @return [ERB] Template def self.erb(path) - unless Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.6.0') - # This outputs warnings in Ruby 2.6+. - end ERB.new(File.read(path), trim_mode: '-') end end diff --git a/lib/puppet/face/strings.rb b/lib/puppet/face/strings.rb index 47026258..5d5e56c2 100644 --- a/lib/puppet/face/strings.rb +++ b/lib/puppet/face/strings.rb @@ -144,7 +144,6 @@ def check_required_features raise "The 'yard' gem must be installed in order to use this face." unless Puppet.features.yard? raise "The 'rgen' gem must be installed in order to use this face." unless Puppet.features.rgen? - raise 'This face requires Ruby 1.9 or greater.' if RUBY_VERSION.match?(/^1\.8/) end # Builds the options to PuppetStrings.generate.