<feed xmlns='http://www.w3.org/2005/Atom'>
<title>puppet-inifile/lib/puppet, branch master</title>
<subtitle>Puppet module for inifile</subtitle>
<id>https://cgit.fluxo.info/puppet-inifile/atom?h=master</id>
<link rel='self' href='https://cgit.fluxo.info/puppet-inifile/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-inifile/'/>
<updated>2013-04-02T22:10:43+00:00</updated>
<entry>
<title>Update Modulefile and Changelog, prepping for 0.10.0 release</title>
<updated>2013-04-02T22:10:43+00:00</updated>
<author>
<name>Chris Price</name>
<email>chris@puppetlabs.com</email>
</author>
<published>2013-04-01T22:29:54+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-inifile/commit/?id=6c245ef674316f4fbddb79698552138fe9f1e69a'/>
<id>urn:sha1:6c245ef674316f4fbddb79698552138fe9f1e69a</id>
<content type='text'>
This commit also adds some comments clarifying the new code
that was added to support purging.
</content>
</entry>
<entry>
<title>Merge pull request #29 from kbrezina/subsetting</title>
<updated>2013-03-25T18:00:41+00:00</updated>
<author>
<name>Chris Price</name>
<email>chris@puppetlabs.com</email>
</author>
<published>2013-03-25T18:00:41+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-inifile/commit/?id=e824ab2abae16e97f9a19d21580d6825c4bf705e'/>
<id>urn:sha1:e824ab2abae16e97f9a19d21580d6825c4bf705e</id>
<content type='text'>
Added 'ini_subsetting' custom resource type</content>
</entry>
<entry>
<title>Added 'ini_subsetting' custom resource type</title>
<updated>2013-03-25T10:34:37+00:00</updated>
<author>
<name>Karel Brezina</name>
<email>karel.brezina@gmail.com</email>
</author>
<published>2013-02-15T09:56:44+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-inifile/commit/?id=4351d8b9c8dac40f0f733fd7622d655241f113ba'/>
<id>urn:sha1:4351d8b9c8dac40f0f733fd7622d655241f113ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #30 from bodepd/fix_nil_indentation</title>
<updated>2013-03-12T18:11:09+00:00</updated>
<author>
<name>Chris Price</name>
<email>chris@puppetlabs.com</email>
</author>
<published>2013-03-12T18:11:09+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-inifile/commit/?id=8064df6d004b7e24104c7899053a5c8627c35e1b'/>
<id>urn:sha1:8064df6d004b7e24104c7899053a5c8627c35e1b</id>
<content type='text'>
guard against nil indentation values</content>
</entry>
<entry>
<title>guard against nil indentation values</title>
<updated>2013-03-12T00:42:08+00:00</updated>
<author>
<name>Dan Bode</name>
<email>dan@puppetlabs.com</email>
</author>
<published>2013-03-12T00:31:00+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-inifile/commit/?id=5f71d7f0bd78bbcc587210c9d251b92e1a1dea0f'/>
<id>urn:sha1:5f71d7f0bd78bbcc587210c9d251b92e1a1dea0f</id>
<content type='text'>
This commit is intended to resolves an issue where the indentation
value can be nil (which leads to a run time exception)

This occurrs in cases where a section is following by only one of more
comments.

The proposed fix is to guard against potential nil values where the
error occurs. This fix is idential to code used at line 125 of the same file.
</content>
</entry>
<entry>
<title>Add purging support to ini file</title>
<updated>2013-03-04T23:38:58+00:00</updated>
<author>
<name>Dan Bode</name>
<email>dan@puppetlabs.com</email>
</author>
<published>2013-01-07T23:54:41+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-inifile/commit/?id=2f22483c87dbaee9b45d121a65f2a09dbe638eaa'/>
<id>urn:sha1:2f22483c87dbaee9b45d121a65f2a09dbe638eaa</id>
<content type='text'>
This commit adds purging to ini file native types.

Purging will only work for child providers that
implement the method: self.file_path. This is
because collecting all instances of the type (
which is a requirement for purging) is only possible
when the path of the file that is being managed
can be accessed by the class instance (in the
method self.instances.)

This commit adds the following method to the internal
of the ini_file:
- get_settings - has of all settings/values for
a given section

It also adds the following method to the section
class:
- setting_names - list of all setting names in a
section.

These methods are required for the instances method
to be able to list the values for all settings of
each section.
</content>
</entry>
<entry>
<title>Add detection for commented versions of settings</title>
<updated>2012-10-27T00:24:37+00:00</updated>
<author>
<name>Chris Price</name>
<email>chris@puppetlabs.com</email>
</author>
<published>2012-10-27T00:24:37+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-inifile/commit/?id=a45ab6593035cfbbd4cbcb535a8b8324b212ef4e'/>
<id>urn:sha1:a45ab6593035cfbbd4cbcb535a8b8324b212ef4e</id>
<content type='text'>
This commit adds support for detecting commented versions of
settings in an existing version of an inifile.  If you are
setting a value for a setting that isn't currently set
in the file, but a commented version is found, then we
add the new setting immediately following the commented
version, rather than at the end of the section.
</content>
</entry>
<entry>
<title>Refactor to clarify implementation of `save`</title>
<updated>2012-10-21T06:14:39+00:00</updated>
<author>
<name>Chris Price</name>
<email>chris@puppetlabs.com</email>
</author>
<published>2012-10-21T06:14:39+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-inifile/commit/?id=f0d443fed02d870965613dd174793cc1816137a2'/>
<id>urn:sha1:f0d443fed02d870965613dd174793cc1816137a2</id>
<content type='text'>
The `save` method was previously relying on some really
specific implementation details of the `section` class
(when the start/end_line would be nil, etc.).  This made
the code a bit hard to follow.

This commit introduces a few utility methods in the
`section` class (`is_new_section?`, `is_global?`), and
refactors the `save` method to use them... this makes
the logic a little easier to follow and should hopefully
make it easier to maintain.
</content>
</entry>
<entry>
<title>Better handling of whitespace lines at ends of sections</title>
<updated>2012-10-20T08:43:19+00:00</updated>
<author>
<name>Chris Price</name>
<email>chris@puppetlabs.com</email>
</author>
<published>2012-10-20T07:24:37+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-inifile/commit/?id=845fa707be7132e753f291901dd7e4d4dc48c405'/>
<id>urn:sha1:845fa707be7132e753f291901dd7e4d4dc48c405</id>
<content type='text'>
This is another bit of cosmetic functionality; prior to
this commit, when adding a new setting to a section, we'd
write it on the very last line before the next section,
even if there was a chunk of trailing whitespace lines
at the end of the existing section.  This was functional,
but the output was not always particularly pleasant for
human consumption.

This commit tweaks things so that we insert new settings
just before the final chunk of whitespace lines in an
existing section.  This keeps things a bit cleaner.
</content>
</entry>
<entry>
<title>Respect indentation / spacing for existing sections and settings</title>
<updated>2012-10-20T07:08:06+00:00</updated>
<author>
<name>Chris Price</name>
<email>chris@puppetlabs.com</email>
</author>
<published>2012-10-20T07:08:06+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-inifile/commit/?id=c2c26de9b10c3675e1044d5571e47e195a5d0167'/>
<id>urn:sha1:c2c26de9b10c3675e1044d5571e47e195a5d0167</id>
<content type='text'>
This commit adds some cosmetic functionality.  The main two
improvements are:

* We'll now pay attention to indentation within existing
  sections, and when we write new settings or update
  existing ones, we'll match the existing indentation.

* When modifying existing settings, the regex now captures
  a greater portion of the original line and preserves it.
  Basically, the original whitespacing in the line should
  remain intact and only the value should be modified.
</content>
</entry>
</feed>
