diff options
author | Chris Walters <cw@opscode.com> | 2010-06-24 22:56:26 -0700 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2010-06-25 17:11:27 -0700 |
commit | b2afddcfdac6672788c8380cf3ec0f74126508bf (patch) | |
tree | 810a7a646b6673009cf6182b62a41417488ed08f | |
parent | 150283889bea3be1d55f0ddfe69bcd1eccae3095 (diff) | |
download | chef-b2afddcfdac6672788c8380cf3ec0f74126508bf.tar.gz |
Adding licenses to files in monkey_patches
-rw-r--r-- | chef/lib/chef/monkey_patches/dir.rb | 18 | ||||
-rw-r--r-- | chef/lib/chef/monkey_patches/string.rb | 18 | ||||
-rw-r--r-- | chef/lib/chef/monkey_patches/tempfile.rb | 18 |
3 files changed, 54 insertions, 0 deletions
diff --git a/chef/lib/chef/monkey_patches/dir.rb b/chef/lib/chef/monkey_patches/dir.rb index 5dbffb7eab..100c099202 100644 --- a/chef/lib/chef/monkey_patches/dir.rb +++ b/chef/lib/chef/monkey_patches/dir.rb @@ -1,3 +1,21 @@ +# +# Author:: Adam Jacob (<adam@opscode.com>) +# Copyright:: Copyright (c) 2008 Opscode, Inc. +# License:: Apache License, Version 2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # Adds a Dir.glob to Ruby 1.8.5, for compat if RUBY_VERSION < "1.8.6" || RUBY_PLATFORM =~ /mswin|mingw32|windows/ class Dir diff --git a/chef/lib/chef/monkey_patches/string.rb b/chef/lib/chef/monkey_patches/string.rb index c5fc954b2c..6518c196d9 100644 --- a/chef/lib/chef/monkey_patches/string.rb +++ b/chef/lib/chef/monkey_patches/string.rb @@ -1,3 +1,21 @@ +# +# Author:: Adam Jacob (<adam@opscode.com>) +# Copyright:: Copyright (c) 2008 Opscode, Inc. +# License:: Apache License, Version 2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # On ruby 1.9, Strings are aware of multibyte characters, so #size and length # give the actual number of characters. In Chef::REST, we need the bytesize # so we can correctly set the Content-Length headers, but ruby 1.8.6 and lower diff --git a/chef/lib/chef/monkey_patches/tempfile.rb b/chef/lib/chef/monkey_patches/tempfile.rb index 52a61ec507..869cba051b 100644 --- a/chef/lib/chef/monkey_patches/tempfile.rb +++ b/chef/lib/chef/monkey_patches/tempfile.rb @@ -1,3 +1,21 @@ +# +# Author:: Adam Jacob (<adam@opscode.com>) +# Copyright:: Copyright (c) 2008 Opscode, Inc. +# License:: Apache License, Version 2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # Tempfile has a horrible bug where it causes an IOError: closed stream in its # finalizer, leading to intermittent application crashes with confusing stack # traces. Here we monkey patch the fix into place. You can track the bug on |