Permalink
Commits on May 22, 2017
  1. Merge pull request #25 from RoboticCheese/jdh-fix-for-chef-13

    damacus committed on GitHub May 22, 2017
    Fix incompatibility with Chef 13
Commits on Apr 17, 2017
  1. Fix incompatibility with Chef 13

    RoboticCheese committed Apr 17, 2017
    Per the Chef 13 [release notes](https://docs.chef.io/release_notes.html)
    LWRP resources no longer get constant names, resulting in this:
    
    ```
    [2017-04-17T11:50:32-07:00] ERROR: mac_os_x_userdefaults[com.apple.dock autohide] (my-dev-machine::default line 120) had an error: NameError: uninitialized constant Chef::Resource::MacOsXUserdefaults
    Did you mean?  Chef::Resource::MacosxService
    Did you mean?  Chef::Resource::MacosxService
    [2017-04-17T11:50:32-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
    ```
    
    Signed-off-by: Jonathan Hartman <j@p4nt5.com>
Commits on May 1, 2014
Commits on Mar 3, 2014
  1. Bump devodd

    juliandunn committed Mar 3, 2014
  2. Complex array values break unless quoted.

    SteveMarshall committed with juliandunn Jan 27, 2014
    When passing complex (e.g. multi-line) array values, `defaults write` errors unless they're properly quoted.
Commits on Nov 25, 2013
  1. Merge pull request #17 from jeroenj/global

    jtimberman committed Nov 25, 2013
    Don't add '-g' to defaults read command for NSGlobalDomain
Commits on Sep 9, 2013
Commits on Sep 5, 2013
  1. Merge pull request #16 from jeroenj/defaults-read

    jtimberman committed Sep 5, 2013
    Put key in quotes while running defaults read command
Commits on Sep 3, 2013
  1. Put domain in quotes

    jeroenj committed Sep 3, 2013
    It can also contain spaces. Another way would be to escape spaces, but that makes the recipes less clear.
Commits on Aug 20, 2013
Commits on Mar 27, 2013
  1. Cleanup in README

    jtimberman committed Mar 27, 2013
  2. Ignore failure for killing Dock.app

    jtimberman committed Mar 27, 2013
    It's okay to ignore failure for killing Dock.app. For example, if Chef
    is running on an OS X system where the user is not logged into the
    desktop, Dock won't be running and the kill will fail to find a
    process.
Commits on Mar 3, 2013
  1. Merge pull request #15 from jeroenj/array

    jtimberman committed Mar 3, 2013
    Adds support for arrays
  2. Merge pull request #13 from jeroenj/booleans

    jtimberman committed Mar 3, 2013
    Booleans should be correctly recognized in userdefaults
  3. Adds support for arrays

    jeroenj committed Mar 3, 2013
Commits on Feb 27, 2013
Commits on Jan 27, 2013
  1. Merge pull request #10 from patcon/resource-attr-user

    jtimberman committed Jan 27, 2013
    Add `user` resource attr to `mac_os_x_userdefaults`
Commits on Jan 21, 2013
  1. Merge branch 'master' into resource-attr-user

    patcon committed Jan 21, 2013
    Conflicts:
    	providers/userdefaults.rb
Commits on Dec 7, 2012
Commits on Nov 22, 2012
  1. release v1.4.2

    jtimberman committed Nov 22, 2012
Commits on Aug 20, 2012
  1. release v1.4.0

    jtimberman committed Aug 10, 2012
Commits on Aug 11, 2012
  1. Merge pull request #12 from joemiller/patch-1

    jtimberman committed Aug 11, 2012
    fixed bug preventing the userdefaults recipe from working
Commits on Aug 10, 2012
  1. fixed bug preventing the userdefaults recipe from working

    joemiller committed Aug 10, 2012
    this bug seemed to pretty much break the recipe (chef would error with "cannot find resource named 'new' ...")
  2. Lion fixes, settings recipe/attributes, integers

    jtimberman committed Aug 10, 2012
    * Add settings attribute and recipe to process it (great idea from Ben Bleything's bootstrap)
    * Use integers instead of strings for plain numbers
    * Set resource as updated
    * Support floating point numbers
Commits on Jul 28, 2012
Commits on Apr 15, 2012
  1. Merge pull request #8 from nixgeek/patch-1

    jtimberman committed Apr 15, 2012
    Update to load_current_resource replacing 'truthy' with 'truefalse'.
Commits on Mar 4, 2012
  1. A minor update to documentation to reference false values now being h…

    agh committed Mar 4, 2012
    …andled by the Provider.
  2. Update to load_current_resource replacing 'truthy' with 'truefalse'.

    agh committed Mar 4, 2012
        defaults --help
        <value> is one of:
          -bool[ean] (true | false | yes | no)
    
    Right now we only convert 'TRUE' or 'true' which leads to a situation whereby chef-client reapplies settings (defaults write <DOMAIN> <KEY> -bool 'false') upon each run because the recipe value may validly be 'false'.
    
    Example recipe snippet which triggers this situation -
    
      mac_os_x_userdefaults "dont show quarantine warnings on downloaded files" do
        domain "com.apple.LaunchServices"
        key "LSQuarantine"
        value "false"
        type "bool"
        notifies :run, 'execute[killall Finder]'
        only_if { node[:platform_version].to_f >= 10.5 }
      end
    
    I've also taken the opportunity to extend things so that "YES" and "yes" are considered to be true values, because they would be accepted on the command-line by /usr/bin/defaults as valid input.
Commits on Feb 26, 2012
  1. release v1.3.6

    jtimberman committed Feb 26, 2012
Commits on Jan 2, 2012
  1. Merge pull request #6 from bleything/master

    jtimberman committed Jan 2, 2012
    add hashes to userdefaults
Commits on Dec 25, 2011
Commits on Dec 21, 2011