Skip to content
This repository has been archived by the owner on Apr 7, 2018. It is now read-only.

Commit

Permalink
Rubocop and copyright fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tas50 committed Feb 16, 2016
1 parent d4ed807 commit 91e5da5
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 17 deletions.
6 changes: 3 additions & 3 deletions attributes/default.rb
@@ -1,9 +1,9 @@
#
# Author:: Seth Chisamore (<schisamo@chef.io>)
# Cookbook Name:: chef_handlers
# Attribute:: default
# Cookbook Name:: chef_handler
# Attributes:: default
#
# Copyright 2011-2013, Chef Software, Inc
# Copyright 2011-2016, Chef Software, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion libraries/helpers.rb
@@ -1,6 +1,6 @@
#
# Author:: Kartik Cating-Subramanian (<ksubramanian@chef.io>)
# Copyright:: Copyright (c) 2015 Chef, Inc.
# Copyright:: Copyright (c) 2015-2016 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
12 changes: 6 additions & 6 deletions libraries/matchers.rb
Expand Up @@ -3,7 +3,7 @@
# Cookbook Name:: chef_handler
# Library:: matchers
#
# Copyright 2014, Chef Software, Inc.
# Copyright 2014-2016, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -20,11 +20,11 @@

if defined?(ChefSpec)
chefspec_version = Gem.loaded_specs['chefspec'].version
if chefspec_version < Gem::Version.new('4.1.0')
define_method = ChefSpec::Runner.method(:define_runner_method)
else
define_method = ChefSpec.method(:define_matcher)
end
define_method = if chefspec_version < Gem::Version.new('4.1.0')
ChefSpec::Runner.method(:define_runner_method)
else
ChefSpec.method(:define_matcher)
end

define_method.call :chef_handler

Expand Down
2 changes: 1 addition & 1 deletion providers/default.rb
Expand Up @@ -3,7 +3,7 @@
# Cookbook Name:: chef_handler
# Provider:: default
#
# Copyright:: 2011-2013, Chef Software, Inc <legal@chef.io>
# Copyright:: 2011-2016, Chef Software, Inc <legal@chef.io>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions recipes/default.rb
@@ -1,9 +1,9 @@
#
# Author:: Seth Chisamore (<schisamo@chef.io>)
# Cookbook Name:: chef_handlers
# Cookbook Name:: chef_handler
# Recipe:: default
#
# Copyright 2011, Chef Software, Inc.
# Copyright 2011-2016, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions recipes/json_file.rb
@@ -1,9 +1,9 @@
#
# Author:: Seth Chisamore (<schisamo@chef.io>)
# Cookbook Name:: chef_handlers
# Cookbook Name:: chef_handler
# Recipe:: json_file
#
# Copyright 2011, Chef Software, Inc.
# Copyright 2011-2016, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion resources/default.rb
Expand Up @@ -3,7 +3,7 @@
# Cookbook Name:: chef_handler
# Resource:: default
#
# Copyright:: 2011-2013, Chef Software, Inc <legal@chef.io>
# Copyright:: 2011-2016, Chef Software, Inc <legal@chef.io>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
@@ -1,5 +1,5 @@
# Author:: Kartik Cating-Subramanian (<ksubramanian@chef.io>)
# Copyright:: Copyright (c) 2015 Chef, Inc.
# Copyright:: Copyright (c) 2015-2016 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,3 +16,5 @@

require 'chefspec'
require_relative '../libraries/helpers'

at_exit { ChefSpec::Coverage.report! }

0 comments on commit 91e5da5

Please sign in to comment.