@@ -5,7 +5,7 @@ require 'date'
55require_relative 'lib/sensu-plugins-elasticsearch'
66
77# pvt_key = '~/.ssh/gem-private_key.pem'
8- Gem ::Specification . new do |s |
8+ Gem ::Specification . new do |s | # rubocop:disable Metrics/BlockLength
99 s . authors = [ 'Sensu Plugins and contributors' ]
1010 # s.cert_chain = ['certs/sensu-plugins.pem']
1111 s . date = Date . today . to_s
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
1414 service health and metrics for cluster, node, and more.'
1515 s . email = '<sensu-users@googlegroups.com>'
1616 s . executables = Dir . glob ( 'bin/**/*.rb' ) . map { |file | File . basename ( file ) }
17- s . files = Dir . glob ( '{bin,lib}/**/*' ) + %w( LICENSE README.md CHANGELOG.md )
17+ s . files = Dir . glob ( '{bin,lib}/**/*' ) + %w[ LICENSE README.md CHANGELOG.md ]
1818 s . homepage = 'https://github.com/sensu-plugins/sensu-plugins-elasticsearch'
1919 s . license = 'MIT'
2020 s . metadata = { 'maintainer' => 'sensu-plugin' ,
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
2626 s . platform = Gem ::Platform ::RUBY
2727 s . post_install_message = 'You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu'
2828 s . require_paths = [ 'lib' ]
29- s . required_ruby_version = '>= 2.0 .0'
29+ s . required_ruby_version = '>= 2.1 .0'
3030 # s.signing_key = File.expand_path(pvt_key) if $PROGRAM_NAME =~ /gem\z/
3131 s . summary = 'Sensu plugins for elasticsearch'
3232 s . test_files = s . files . grep ( %r{^(test|spec|features)/} )
@@ -42,11 +42,14 @@ Gem::Specification.new do |s|
4242 s . add_development_dependency 'codeclimate-test-reporter' , '~> 0.4'
4343 s . add_development_dependency 'github-markup' , '~> 1.3'
4444 s . add_development_dependency 'kitchen-docker' , '~> 2.6'
45+ # locked to keep ruby 2.1 support, this is pulled in by test-kitchen
46+ s . add_development_dependency 'mixlib-shellout' , [ '< 2.3.0' , '~> 2.2' ]
4547 s . add_development_dependency 'pry' , '~> 0.10'
4648 s . add_development_dependency 'rake' , '~> 10.0'
4749 s . add_development_dependency 'redcarpet' , '~> 3.2'
4850 s . add_development_dependency 'rspec' , '~> 3.1'
49- s . add_development_dependency 'rubocop' , '~> 0.40.0'
51+ s . add_development_dependency 'rubocop' , '~> 0.51.0'
52+ # 0.17 requires ruby 2.3+
5053 s . add_development_dependency 'test-kitchen' , '~> 1.16.0'
5154 s . add_development_dependency 'yard' , '~> 0.8'
5255end
0 commit comments