Actions
Refactor #21360
closedRemove legacy code for Ruby <= 2.0 from hammer-cli-foreman
Difficulty:
easy
Triaged:
No
Team Backlog:
Description
Hammer plugin for the Foreman no longer supports ruby 2.0, there's no point of keeping the historical code.
From my search there's following places containing some compatibility code that should be removed:
./hammer/hammer-cli-foreman/lib/hammer_cli_foreman/option_builders.rb: 93 94 def unique(resources) 95: # ruby 1.8 hack - it does not support passing blocks to Array#uniq 96 resources.inject({}) do |h, r| 97 h.update(r.name => r) ./hammer/hammer-cli-foreman/Gemfile: 4 5 gem 'gettext', '>= 3.1.3', '< 4.0.0' 6: if RUBY_VERSION < '2.1.0' 7 gem 'fast_gettext', '< 1.2.0' 8 end
Actions