summaryrefslogtreecommitdiff
path: root/lib/chef/monkey_patches
Commit message (Collapse)AuthorAgeFilesLines
* auto fixing some rubocopsLamont Granquist2016-02-091-2/+2
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing some missed copsLamont Granquist2016-02-051-1/+1
| | | | second round of autofixing for some reason...
* autofixing whitespace copsLamont Granquist2016-02-054-6/+6
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-023-4/+4
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Use double quotes by defaultThom May2016-01-144-8/+8
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* Add monkey patch for webrickjdm/webrick-monkeyJay Mundrawala2015-09-081-0/+51
| | | | | | | | | | | Ruby 2.1 introduces a regression on Windows in WEBrick. create_listeners does not throw an exception when we're already listening on a port. This seems to only be an issue on Windows. This patch reverts it back to what it was in Ruby 2.0 It seems the regression was introduced in https://github.com/ruby/ruby/commit/b1f493dcd1092fe17cccec998e175516ed5c6e47#diff-4b178393150b2b3a5ec9d77eced1f09e
* Move Win32::Registry#write monkeypatch into win32/registry monkeypatch file.Claire McQuin2015-09-041-3/+28
|
* Add file header.mcquin/monkeypatch-win32-registry-deleteClaire McQuin2015-09-031-0/+16
|
* Remove access mask to RegDeleteKeyExW, it's not usefulClaire McQuin2015-09-031-2/+1
|
* Monkey-patch Win32::Registry::API::DeleteKey for Win32::Registry#delete_keyClaire McQuin2015-09-031-5/+14
|
* Monkey-patch Win32::Registry::API::DeleteValue for Win32::Registry#delete_value.Claire McQuin2015-09-031-0/+23
|
* Update Net::HTTP IPv6 monkey patch w/ version infodanielsdeleo2014-12-081-0/+4
|
* Remove 1.8 and 1.9 specific monkey patchesdanielsdeleo2014-11-269-364/+0
|
* removed securerandom patchAnshul Sharma2014-11-131-44/+0
|
* Fix Pathname.each_filename on Ruby 1.8.7John Keiser2014-04-231-0/+32
|
* Patch ruby 2.0 Net::HTTP proxy code for IPv6danielsdeleo2013-11-191-0/+34
| | | | | | | | | | Ruby 2.0 changes the way proxying is implemented in Net::HTTP such that each request will check the URI for "proxy-ness." This check will generate a URL from the given address and port without wrapping IPv6 addresses in brackets, which triggers an error in the URI library. Check for this case on startup and monkey patch the offending method if necessary.
* Backport URI::Generic#hostname to Ruby 1.9.2 and olderdanielsdeleo2013-11-151-0/+70
| | | | | | | | | | | | | Documentation for URI::Generic#host in Ruby 2.0.0 explains: Since IPv6 addresses are wrapped by brackets in URIs, this method returns IPv6 addresses wrapped by brackets. This form is not appropriate to pass socket methods such as TCPSocket.open. If unwrapped host names are required, use “hostname” method. Therefore the best way to support IPv6 URIs is to replace calls to URI::Generic#host with URI::Generic#hostname. The #hostname method is added in Ruby 1.9.3 so we need to backport it for older ruby versions.
* Normalize whitespace on all filesSeth Vargo2013-09-264-10/+10
|
* Add File.realpath backport for ruby 1.8danielsdeleo2013-06-261-0/+26
| | | | - Related to fix for CHEF-4312
* Guard against unknown versions of net-ssh-multi in our monkey patch.sersut2013-06-201-79/+85
|
* Monkey patch for net-ssh-multi that fixes the concurrency issues in ↵sersut2013-06-201-0/+134
| | | | net-ssh-multi gem.
* monkey patch SecureRandom with uuid method if requiredjamesc2013-06-181-0/+44
|
* Removing Dir monkey patch.Jon Morrow2013-06-171-36/+0
|
* [CHEF-3715] remove caching of sha256 cksumsdanielsdeleo2012-12-211-50/+0
| | | | This also eliminates the dependency on moneta.
* CHEF-3660: rename files that didn't play nice with git rebasesdelano2012-12-131-0/+65
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-308-0/+279
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!