<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ruby-gems/chef.git/spec/unit, branch lcg/node-immutable-array-slice</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>add specs for array slice access to node attributes</title>
<updated>2016-11-15T18:46:11+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2016-11-15T18:46:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=c3f75bc59dfbae82ccb249659da898ce49179371'/>
<id>c3f75bc59dfbae82ccb249659da898ce49179371</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>Merge pull request #5315 from MsysTechnologiesllc/dh/adding_powershell_package_manager_support</title>
<updated>2016-11-11T13:51:36+00:00</updated>
<author>
<name>Bryan McLellan</name>
<email>btm@loftninjas.org</email>
</author>
<published>2016-11-11T13:51:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=9ab43c91221f05cd0912c03e37eff153b6572403'/>
<id>9ab43c91221f05cd0912c03e37eff153b6572403</id>
<content type='text'>
Adding support for Powershell package manager to Chef package provider</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding support for Powershell package manager to Chef package provider</pre>
</div>
</content>
</entry>
<entry>
<title>Respond to review comments and chefstyle</title>
<updated>2016-11-10T12:06:37+00:00</updated>
<author>
<name>Thom May</name>
<email>thom@chef.io</email>
</author>
<published>2016-10-06T13:56:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=65135ccabb85dd4c20982492f1f2cfeed6b12570'/>
<id>65135ccabb85dd4c20982492f1f2cfeed6b12570</id>
<content type='text'>
Signed-off-by: Thom May &lt;thom@chef.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Thom May &lt;thom@chef.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Code style fixes; :lipstick:</title>
<updated>2016-11-10T12:02:11+00:00</updated>
<author>
<name>Andrew Burns</name>
<email>andrew@fetlife.com</email>
</author>
<published>2016-07-15T17:21:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=fd5d5238c95d3d5d9a25812f91295805a90026cf'/>
<id>fd5d5238c95d3d5d9a25812f91295805a90026cf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>launchd: start_calendar_interval validity checking</title>
<updated>2016-11-10T12:02:11+00:00</updated>
<author>
<name>Andrew Burns</name>
<email>andrew@fetlife.com</email>
</author>
<published>2016-07-14T15:15:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=29ff4157f6144cc73967414cea60d7f426f00b91'/>
<id>29ff4157f6144cc73967414cea60d7f426f00b91</id>
<content type='text'>
StartCalendarInterval has some gotchas so we coerce it to sanity check.

According to `man 5 launchd.plist`:
  StartCalendarInterval [is a] &lt;dictionary of integers or array of dictionaries of integers&gt;
    ... Missing arguments are considered to be wildcard.

What the man page doesn't state, but what was observed (OSX 10.11.5, launchctrl v3.4.0) is that key that are specified, _but with invalid values, will also be silently treated as a wildcard values.

This means that an entry like:
  { "Hour"=&gt;0, "Weekday"=&gt;"6-7"}
will not just run on midnight of Sat and Sun, rather it will run _every_ midnight.

We check to make sure that the values are integers and not strings, adhering to the manpage documentation.

This also ensures that only keys that StartCalendarInterval supports will be passed.
This eliminates passing a key (like `:hour` or `'hour') and thinking it works when in reality launchd is just treating it as a wildcard.

NOTE: This is a "breaking" change in that: it will break existing cookbooks that are using the current docs: https://docs.chef.io/resource_launchd.html (See start_calendar_interval); however the generated plist doesn't appear to actually do what was intended anyway.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
StartCalendarInterval has some gotchas so we coerce it to sanity check.

According to `man 5 launchd.plist`:
  StartCalendarInterval [is a] &lt;dictionary of integers or array of dictionaries of integers&gt;
    ... Missing arguments are considered to be wildcard.

What the man page doesn't state, but what was observed (OSX 10.11.5, launchctrl v3.4.0) is that key that are specified, _but with invalid values, will also be silently treated as a wildcard values.

This means that an entry like:
  { "Hour"=&gt;0, "Weekday"=&gt;"6-7"}
will not just run on midnight of Sat and Sun, rather it will run _every_ midnight.

We check to make sure that the values are integers and not strings, adhering to the manpage documentation.

This also ensures that only keys that StartCalendarInterval supports will be passed.
This eliminates passing a key (like `:hour` or `'hour') and thinking it works when in reality launchd is just treating it as a wildcard.

NOTE: This is a "breaking" change in that: it will break existing cookbooks that are using the current docs: https://docs.chef.io/resource_launchd.html (See start_calendar_interval); however the generated plist doesn't appear to actually do what was intended anyway.
</pre>
</div>
</content>
</entry>
<entry>
<title>Additional changes based on more review comments</title>
<updated>2016-11-10T09:06:56+00:00</updated>
<author>
<name>dheerajd-msys</name>
<email>dheeraj.dubey@msystechnologies.com</email>
</author>
<published>2016-11-03T09:45:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=a067259401905a42babd8ae083682b4e83185b7e'/>
<id>a067259401905a42babd8ae083682b4e83185b7e</id>
<content type='text'>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Modified code based on review comments</title>
<updated>2016-11-10T09:06:56+00:00</updated>
<author>
<name>dheerajd-msys</name>
<email>dheeraj.dubey@msystechnologies.com</email>
</author>
<published>2016-10-28T13:21:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=526cf1e86182a5376343311df5dc61b215d7aafb'/>
<id>526cf1e86182a5376343311df5dc61b215d7aafb</id>
<content type='text'>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Added unit specs for powershell package</title>
<updated>2016-11-10T09:06:56+00:00</updated>
<author>
<name>dheerajd-msys</name>
<email>dheeraj.dubey@msystechnologies.com</email>
</author>
<published>2016-10-25T11:17:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=d79417f1e3fcd589c29f0527fe57cb68ad150ac8'/>
<id>d79417f1e3fcd589c29f0527fe57cb68ad150ac8</id>
<content type='text'>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent apt_update failures on non-Linux platforms</title>
<updated>2016-11-07T22:22:33+00:00</updated>
<author>
<name>Tim Smith</name>
<email>tsmith@chef.io</email>
</author>
<published>2016-11-07T22:22:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=b24a63950c48c39a64707b127849220a64e8b8ee'/>
<id>b24a63950c48c39a64707b127849220a64e8b8ee</id>
<content type='text'>
We 1/2 wired up the noop functionality, but specifying that we only provided the resource on Linux caused that code to never run.

This prevents this sort of error on non-Linux platforms:

```
Cannot find a resource for apt_update on windows version 6.3.9600
```

Signed-off-by: Tim Smith &lt;tsmith@chef.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We 1/2 wired up the noop functionality, but specifying that we only provided the resource on Linux caused that code to never run.

This prevents this sort of error on non-Linux platforms:

```
Cannot find a resource for apt_update on windows version 6.3.9600
```

Signed-off-by: Tim Smith &lt;tsmith@chef.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't double-JSON data collector run complete messages</title>
<updated>2016-11-04T04:20:50+00:00</updated>
<author>
<name>danielsdeleo</name>
<email>dan@chef.io</email>
</author>
<published>2016-11-04T03:50:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=a88e3068a9bd1755120663c8a4ff6ced70c7fd1d'/>
<id>a88e3068a9bd1755120663c8a4ff6ced70c7fd1d</id>
<content type='text'>
Signed-off-by: Daniel DeLeo &lt;dan@chef.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Daniel DeLeo &lt;dan@chef.io&gt;
</pre>
</div>
</content>
</entry>
</feed>
