Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tags always an array; fix set_unless | Lamont Granquist | 2015-12-14 | 2 | -3/+3 |
| | | | | | | | previously if the node had a { normal: { tags: nil } } that we read since the key existed (but was nil) we would not initialize with an array. replacing the code with a call to node.set_unless revealed that set_unless was similarly buggy. fixed both issues by fixing set_unless. | ||||
* | Completing tests for https://github.com/chef/chef/pull/2310, fixes ↵tball/complete-2310 | tyler-ball | 2015-02-11 | 1 | -0/+4 |
| | | | | https://github.com/chef/chef/issues/1562 | ||||
* | Use #define_method instead of #class_eval (ruby 1.8 specific, issue #2497) | Xabier de Zuazo | 2015-01-27 | 3 | -27/+15 |
| | |||||
* | deep_merge_cache fixes for bugs in 12.0.0 | Lamont Granquist | 2015-01-14 | 1 | -4/+4 |
| | | | | | | | | In 12.0.0 we introduced a cache for the merged attributes for the top-level node attribute keys. This fixes this so that node['foo'] and node[:foo] are not cached separately. This also showed up in bugs as issues between node['foo'] access and node.foo access because node.foo is translated into node[:foo]. | ||||
* | WIP: immutabilizing deep mergelcg/remove-knockout-merge | Lamont Granquist | 2014-11-21 | 2 | -1/+7 |
| | |||||
* | deleted the last end accidentally | Lamont Granquist | 2014-11-21 | 1 | -2/+4 |
| | |||||
* | add more commentary | Lamont Granquist | 2014-11-21 | 1 | -4/+20 |
| | |||||
* | add partial deep merge cache | Lamont Granquist | 2014-11-21 | 2 | -1/+53 |
| | |||||
* | revert to serdar's deep_merge de-dup version | Lamont Granquist | 2014-11-19 | 1 | -4/+16 |
| | |||||
* | fix ImmutableAttributeModification exception | Lamont Granquist | 2014-11-19 | 2 | -7/+3 |
| | |||||
* | remove cache resetting | Lamont Granquist | 2014-11-19 | 2 | -9/+0 |
| | |||||
* | remove lots of useless deep merge duping | Lamont Granquist | 2014-11-19 | 1 | -2/+2 |
| | |||||
* | WIP: lazy deep merging | Lamont Granquist | 2014-11-19 | 1 | -46/+78 |
| | |||||
* | fix autovivification | Lamont Granquist | 2014-11-08 | 2 | -31/+78 |
| | |||||
* | chef-12 attribute changes | Lamont Granquist | 2014-11-08 | 2 | -13/+159 |
| | | | | | | - adding rm, rm_default, rm_normal, rm_override APIs - adding default!, normal! and override! APIs - changing force_default! and force_override! APIs | ||||
* | [CHEF-5132] ImmutableCollections #to_a and #to_hash methods fixed and improved | Xabier de Zuazo | 2014-03-28 | 1 | -11/+19 |
| | |||||
* | [CHEF-3953] ImmutableMash and ImmutableArray should implement to_hash and ↵ | brianbianco | 2014-03-28 | 1 | -0/+24 |
| | | | | | | | | to_a respectively - ImmutableMash now implements a to_hash method. This recurses through the ImmutableMash and returns a fully mutable Hash - ImmutableArray now implements a to_a method. This recurses through the ImmutableArray and returns a fully mutable Array - Unit tests added for both of the above methods | ||||
* | [CHEF-4799] Handle non-dupable elements when duping attribute arrays | Pierre Ynard | 2014-01-10 | 2 | -2/+16 |
| | |||||
* | Normalize whitespace on all files | Seth Vargo | 2013-09-26 | 1 | -1/+1 |
| | |||||
* | [CHEF-3806] add attribute value debug | danielsdeleo | 2013-01-29 | 1 | -0/+28 |
| | |||||
* | also clear set_unless_present in reset_cache | Lamont Granquist | 2013-01-29 | 1 | -0/+1 |
| | |||||
* | [CHEF-3799] fixes TypeError for puts on VividMash | danielsdeleo | 2013-01-28 | 1 | -1/+8 |
| | |||||
* | fix errors when merging deeply nested values | danielsdeleo | 2013-01-25 | 1 | -15/+20 |
| | |||||
* | make merge between precedence overwrite arrays | danielsdeleo | 2013-01-25 | 1 | -3/+3 |
| | |||||
* | CHEF-3688 remove stale attribute read protection | Adam Jacob | 2012-12-12 | 2 | -224/+11 |
| | | | | | | This commit removes stale attribute read protection, as it does more harm than good. Includes removal of passing "root" around to immutablize. | ||||
* | [CHEF-3680] don't invalidate computed attributes on dup | danielsdeleo | 2012-12-11 | 2 | -1/+11 |
| | |||||
* | [CHEF-3680] Specify file and line for eval | danielsdeleo | 2012-12-11 | 2 | -6/+6 |
| | |||||
* | Add "force" level precedence to Node::Attribute | danielsdeleo | 2012-11-09 | 1 | -2/+35 |
| | |||||
* | [CHEF-2936] ensure all default and override attrs go in node json | danielsdeleo | 2012-11-02 | 1 | -0/+37 |
| | | | | | | | | | | default and override attributes are now split into components, so all the components need to be merged together to generate the serialized representation of a node. Unfortunately, this means that serializing a node is now lossy because the information about which component default and override attributes belong to is lost. In practice, this is not a major issue, since automatic, override, and default attributes are cleared by chef for each run. | ||||
* | [CHEF-2936] add role and environment components to Node::Attribute | danielsdeleo | 2012-11-02 | 1 | -129/+179 |
| | | | | | | | | | I reformatted Chef::Node::Attribute because the indentation was busted. The actual code change is that Attribute now has components for role_default, env_default, role_override, and env_override, and merges them according to the precedence given in the documentation. These new components are not yet wired in to Chef::Node, however. | ||||
* | [OC-3564] move core Chef to the repo root \o/ \m/ | Seth Chisamore | 2012-10-30 | 3 | -0/+832 |
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo! |