Skip to content

Commit

Permalink
Rubocop fixes and removal of Ruby 1.8.7 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tas50 committed May 4, 2015
1 parent 7ef1e03 commit c323bb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
VAGRANTFILE_API_VERSION = '2'

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

config.vm.box = 'chef/centos-6.6'
config.vm.box_download_checksum = true
config.vm.box_download_checksum_type = 'md5'
Expand Down
1 change: 0 additions & 1 deletion bin/check-uchiwa-health.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
# for details.
#

require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'sensu-plugin/check/cli'
require 'net/http'
require 'net/https'
Expand Down
7 changes: 3 additions & 4 deletions sensu-plugins-uchiwa.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'date'


if RUBY_VERSION < '2.0.0'
require 'sensu-plugins-uchiwa'
else
Expand All @@ -15,7 +14,7 @@ pvt_key = '~/.ssh/gem-private_key.pem'
Gem::Specification.new do |s|
s.name = 'sensu-plugins-uchiwa'
s.version = SensuPluginsUchiwa::VERSION
s.authors = ["Yieldbot, Inc. and contributors"]
s.authors = ['Yieldbot, Inc. and contributors']
s.email = '<[email protected]>'
s.homepage = 'https://github.com/sensu-plugins/sensu-plugins-uchiwa'
s.summary = ''
Expand All @@ -25,8 +24,8 @@ Gem::Specification.new do |s|
s.files = Dir.glob('{bin,lib}/**/*') + %w(LICENSE README.md CHANGELOG.md)
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.require_paths = ["lib"]
s.cert_chain = ["certs/sensu-plugins.pem"]
s.require_paths = ['lib']
s.cert_chain = ['certs/sensu-plugins.pem']
s.signing_key = File.expand_path(pvt_key) if $PROGRAM_NAME =~ /gem\z/
s.platform = ruby
s.required_ruby_version = '>= 1.9.3'
Expand Down

0 comments on commit c323bb7

Please sign in to comment.