Skip to content

Commit

Permalink
Merge pull request #378 from ekohl/remove-old-ruby-checks
Browse files Browse the repository at this point in the history
Drop outdate Ruby version checks
  • Loading branch information
jordanbreen28 authored Jan 19, 2024
2 parents 6891e66 + 3cbed72 commit 86d17ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions lib/puppet-strings/markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion lib/puppet/face/strings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 86d17ba

Please sign in to comment.