Skip to content

Commit

Permalink
Update dependencies and correct style
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman committed Oct 22, 2015
1 parent 50d23dc commit 3f5294f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions chef-handler-datadog.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ Gem::Specification.new do |gem|
gem.version = ChefHandlerDatadog::VERSION

gem.files = `git ls-files`.split($\) # rubocop:disable SpecialGlobalVars
gem.executables = gem.files.grep(/^bin\//).map { |f| File.basename(f) }
gem.test_files = gem.files.grep(/^(test|spec|features)\//)
gem.executables = gem.files.grep(%r{^bin\/}).map { |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)\/})
gem.require_paths = ['lib']
gem.extra_rdoc_files = ['README.md', 'LICENSE.txt']

gem.add_dependency 'dogapi', '>= 1.6'

gem.add_development_dependency 'appraisal', '~> 1.0.0'
gem.add_development_dependency 'appraisal', '~> 2.0.1'
gem.add_development_dependency 'bundler'
gem.add_development_dependency 'chef', '>= 10.14.4', '<= 13'
gem.add_development_dependency 'dotenv'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'rspec', '~> 3.2.0'
gem.add_development_dependency 'rubocop', '~> 0.29.1'
gem.add_development_dependency 'rubocop', '~> 0.34.2'
gem.add_development_dependency 'simplecov'
gem.add_development_dependency 'vcr'
gem.add_development_dependency 'webmock'
Expand Down
3 changes: 2 additions & 1 deletion lib/chef/handler/datadog_chef_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def initialize
# method calls
@event_body = ''
end

# set the dogapi client handle
#
# @param dogapi_client [Dogapi::Client] datadog api client handle
Expand Down Expand Up @@ -77,7 +78,7 @@ def emit_to_datadog
priority: @event_priority,
source_type_name: 'chef',
tags: @tags
), host: @hostname)
), host: @hostname)

begin
# FIXME: nice-to-have: abstract format of return value away a bit
Expand Down
2 changes: 1 addition & 1 deletion lib/chef/handler/datadog_chef_tags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def with_application_key(application_key)
Chef::Log.warn('You need an application key to let Chef tag your nodes ' \
'in Datadog. Visit https://app.datadoghq.com/account/settings#api to ' \
'create one and update your datadog attributes in the datadog cookbook.'
)
)
fail ArgumentError, 'Missing Datadog Application Key'
end
self
Expand Down

0 comments on commit 3f5294f

Please sign in to comment.