<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ruby-gems/chef.git/lib/chef/property.rb, branch https</title>
<subtitle>github.com: opscode/chef.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/'/>
<entry>
<title>Use .key? instead of keys.include</title>
<updated>2020-08-03T23:23:27+00:00</updated>
<author>
<name>Tim Smith</name>
<email>tsmith84@gmail.com</email>
</author>
<published>2020-08-03T22:21:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=9a6ac264ade2ca205b00e4247c7c2d4d8d757f4a'/>
<id>9a6ac264ade2ca205b00e4247c7c2d4d8d757f4a</id>
<content type='text'>
We don't need to create an array that we then search when we can just search the hash.

Also disable a few hash like calls that are false positives

Signed-off-by: Tim Smith &lt;tsmith@chef.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We don't need to create an array that we then search when we can just search the hash.

Also disable a few hash like calls that are false positives

Signed-off-by: Tim Smith &lt;tsmith@chef.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Get lib/ free of spelling violations.</title>
<updated>2020-05-19T03:29:40+00:00</updated>
<author>
<name>Pete Higgins</name>
<email>pete@peterhiggins.org</email>
</author>
<published>2020-05-07T23:50:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=a729c9be155e3d335fbd7bd165abd4ba9610943d'/>
<id>a729c9be155e3d335fbd7bd165abd4ba9610943d</id>
<content type='text'>
Signed-off-by: Pete Higgins &lt;pete@peterhiggins.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Pete Higgins &lt;pete@peterhiggins.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Force requiring properties</title>
<updated>2020-04-17T23:23:51+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2020-04-17T19:51:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=49aa17ad9805b6949baaa37cfe66f8cf2b8083a8'/>
<id>49aa17ad9805b6949baaa37cfe66f8cf2b8083a8</id>
<content type='text'>
All required properties are now required for all actions by default
even if the action does not reference the property.

In order to only make the property required for a subset of the
actions, specify them as an array of symbols to the required
options on the property.

```
property :whatever, String, required: %i{start stop}

action :start do
end

action :stop do
end

action :enable do
end

action :disable do
end
```

That property will be required for start+stop but not for
enable+disable.

There's an unaddressed edge case here where if you reference the
property in an action which was not specified that it will also
fail validation.  That is correct behavior.  We should probably
dig into how to warn the user that they must either remove the
reference to the property from that action or else to add the
action to the list of required actions on the property.

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All required properties are now required for all actions by default
even if the action does not reference the property.

In order to only make the property required for a subset of the
actions, specify them as an array of symbols to the required
options on the property.

```
property :whatever, String, required: %i{start stop}

action :start do
end

action :stop do
end

action :enable do
end

action :disable do
end
```

That property will be required for start+stop but not for
enable+disable.

There's an unaddressed edge case here where if you reference the
property in an action which was not specified that it will also
fail validation.  That is correct behavior.  We should probably
dig into how to warn the user that they must either remove the
reference to the property from that action or else to add the
action to the list of required actions on the property.

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove copyright dates</title>
<updated>2020-04-13T22:47:17+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2020-04-13T22:21:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=4d3b847aee1b917bb139862c623e9633d180fb31'/>
<id>4d3b847aee1b917bb139862c623e9633d180fb31</id>
<content type='text'>
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 &lt;lamont@scriptkiddie.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;lamont@scriptkiddie.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo</title>
<updated>2020-04-06T17:16:26+00:00</updated>
<author>
<name>Vivek Singh</name>
<email>vivek.singh@msystechnologies.com</email>
</author>
<published>2020-04-06T16:44:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=a1bf06c753173ac698d9329a09c6edba6c18c781'/>
<id>a1bf06c753173ac698d9329a09c6edba6c18c781</id>
<content type='text'>
Signed-off-by: Vivek Singh &lt;vivek.singh@msystechnologies.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Vivek Singh &lt;vivek.singh@msystechnologies.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Change name_property to be identity and not desired_state by default</title>
<updated>2020-04-03T02:52:21+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2020-04-03T02:52:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=8dcf5be92642700ee3f2aedb83484bcf0e2c159c'/>
<id>8dcf5be92642700ee3f2aedb83484bcf0e2c159c</id>
<content type='text'>
If no other property is an identity property then the name_property is
the default identity property.  The name_property is also marked as not
being desired state by default (the 'name' should never change).

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If no other property is an identity property then the name_property is
the default identity property.  The name_property is also marked as not
being desired state by default (the 'name' should never change).

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Expose equal_to values in property / chef-resource-inspector</title>
<updated>2020-03-09T22:58:22+00:00</updated>
<author>
<name>Tim Smith</name>
<email>tsmith84@gmail.com</email>
</author>
<published>2020-03-04T19:39:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=80a6ae159623c2b32855eb603cc826c04a4ec7aa'/>
<id>80a6ae159623c2b32855eb603cc826c04a4ec7aa</id>
<content type='text'>
We need this information so we can generator documentation that includes these values.

Signed-off-by: Tim Smith &lt;tsmith@chef.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need this information so we can generator documentation that includes these values.

Signed-off-by: Tim Smith &lt;tsmith@chef.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix most Ruby 2.7 test failures</title>
<updated>2020-01-22T04:43:09+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2020-01-22T04:43:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=204783996d0dbe274675c935fce5f84f15c8c40a'/>
<id>204783996d0dbe274675c935fce5f84f15c8c40a</id>
<content type='text'>
Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add comment to property call method order</title>
<updated>2019-08-07T23:31:44+00:00</updated>
<author>
<name>Tim Smith</name>
<email>tsmith84@gmail.com</email>
</author>
<published>2019-08-07T23:31:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=798384540841c404635448bf7367da70ae325f8e'/>
<id>798384540841c404635448bf7367da70ae325f8e</id>
<content type='text'>
Let's make sure we don't revert this by accident

Signed-off-by: Tim Smith &lt;tsmith@chef.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Let's make sure we don't revert this by accident

Signed-off-by: Tim Smith &lt;tsmith@chef.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Property: Reorder comparison with NOT_PASSED.</title>
<updated>2019-07-27T08:04:04+00:00</updated>
<author>
<name>Andy Brody</name>
<email>git@abrody.com</email>
</author>
<published>2019-07-27T08:04:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=789ced10df4e1dca44522996a379008542d8081c'/>
<id>789ced10df4e1dca44522996a379008542d8081c</id>
<content type='text'>
The original comparison `value == NOT_PASSED` ends up calling `.&lt;=&gt;` on
value under the hood. This relies on the implementation of `&lt;=&gt;`/`cmp`
not being broken in that class.

Unfortunately, some classes like OpenSSL::X509::Name have broken
implementations of `&lt;=&gt;` that raise TypeError instead of returning nil
for mismatched types. https://github.com/ruby/openssl/pull/264

As a result, currently, if you attempt to set a resource property to an
OpenSSL::X509::Name object, the result is a TypeError.

With this change, we use the implementation of comparison from the
NOT_PASSED object instead, which we know will work no matter what.

Signed-off-by: Andy Brody &lt;git@abrody.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The original comparison `value == NOT_PASSED` ends up calling `.&lt;=&gt;` on
value under the hood. This relies on the implementation of `&lt;=&gt;`/`cmp`
not being broken in that class.

Unfortunately, some classes like OpenSSL::X509::Name have broken
implementations of `&lt;=&gt;` that raise TypeError instead of returning nil
for mismatched types. https://github.com/ruby/openssl/pull/264

As a result, currently, if you attempt to set a resource property to an
OpenSSL::X509::Name object, the result is a TypeError.

With this change, we use the implementation of comparison from the
NOT_PASSED object instead, which we know will work no matter what.

Signed-off-by: Andy Brody &lt;git@abrody.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
