summaryrefslogtreecommitdiff
path: root/lib/chef/node/mixin/immutablize_hash.rb
Commit message (Collapse)AuthorAgeFilesLines
* add ruby-3.0 hash methods to immutabilize_hashLamont Granquist2020-09-301-0/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix most Ruby 2.7 test failureslcg/ruby-2.7.0Lamont Granquist2020-01-211-1/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add to_yaml methods for AttrArray & VividMashVivek Singh2019-09-281-0/+1
| | | | | | | - Fix to_json Wrong number of argument while calling on object of Node::Attribute. - Allowed to_yaml method in Node::Attribute. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* fix more Style/SymbolArray autocorrect bugsLamont Granquist2019-07-021-3/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/SymbolArrayLamont Granquist2019-07-021-130/+130
| | | | | | start enforcing using %i{} instead of arrays of symbols Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Enumerable#chain looks read-onlyLamont Granquist2019-01-031-0/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* add new ruby 2.6 methodsLamont Granquist2019-01-031-0/+2
| | | | | | filter[!] is just an alias for select[!] Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/MutableConstantLamont Granquist2018-07-021-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Whitelist some additional Hash/Array methodslcg/whitelist-node-methodsLamont Granquist2018-04-271-0/+2
| | | | | | | | | these get monkeypatched in by gems which are included in ChefDK and cause those tests to break. kind of unpleasant workflow, but this is doing its job correctly. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* update immutable API blacklist and whitelistLamont Granquist2018-01-231-5/+111
| | | | | | | | | | | | | adds the whitelist so that when we update to new ruby versions it forces us to audit the new Array and Hash methods and figure out if they are mutators or not. this change closes the Hash#store loophole that was being abused by some cookbook consumers to directly modify merged ImmutableHashes (producing inherently undefined behavior that we 'broke' at one point). Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef-13 freeze merged node attributelcg/node-freezeLamont Granquist2017-03-151-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* add code to implement node path trackingLamont Granquist2016-10-251-0/+54
via node.__path variable using __underscore format because node["path"] could very well be used and we still have to deal with node.path method_missing horribleness. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>