<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ruby-gems/chef.git/spec/unit/resource/template_spec.rb, branch https_shell</title>
<subtitle>github.com: opscode/chef.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/'/>
<entry>
<title>autofixing whitespace cops</title>
<updated>2016-02-05T23:00:00+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2016-02-05T23:00:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=686113531d23f30e9973d659c456ae33eb9cff1f'/>
<id>686113531d23f30e9973d659c456ae33eb9cff1f</id>
<content type='text'>
4174 Style/SpaceInsideHashLiteralBraces
1860 Style/SpaceAroundOperators
1336 Style/SpaceInsideBlockBraces
1292 Style/AlignHash
 997 Style/SpaceAfterComma
 860 Style/SpaceAroundEqualsInParameterDefault
 310 Style/EmptyLines
 294 Style/IndentationConsistency
 267 Style/TrailingWhitespace
 238 Style/ExtraSpacing
 212 Style/SpaceBeforeBlockBraces
 166 Style/MultilineOperationIndentation
 144 Style/TrailingBlankLines
 120 Style/EmptyLineBetweenDefs
 101 Style/IndentationWidth
  82 Style/SpaceAroundBlockParameters
  40 Style/EmptyLinesAroundMethodBody
  29 Style/EmptyLinesAroundAccessModifier
   1 Style/RescueEnsureAlignment
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
4174 Style/SpaceInsideHashLiteralBraces
1860 Style/SpaceAroundOperators
1336 Style/SpaceInsideBlockBraces
1292 Style/AlignHash
 997 Style/SpaceAfterComma
 860 Style/SpaceAroundEqualsInParameterDefault
 310 Style/EmptyLines
 294 Style/IndentationConsistency
 267 Style/TrailingWhitespace
 238 Style/ExtraSpacing
 212 Style/SpaceBeforeBlockBraces
 166 Style/MultilineOperationIndentation
 144 Style/TrailingBlankLines
 120 Style/EmptyLineBetweenDefs
 101 Style/IndentationWidth
  82 Style/SpaceAroundBlockParameters
  40 Style/EmptyLinesAroundMethodBody
  29 Style/EmptyLinesAroundAccessModifier
   1 Style/RescueEnsureAlignment
</pre>
</div>
</content>
</entry>
<entry>
<title>Update all auth email address from opscode.com and getchef.com to chef.io.</title>
<updated>2016-02-02T22:53:28+00:00</updated>
<author>
<name>Noah Kantrowitz</name>
<email>noah@coderanger.net</email>
</author>
<published>2016-02-02T22:53:28+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=220b5a65ed21015f2704e5b344d95e304fcefd87'/>
<id>220b5a65ed21015f2704e5b344d95e304fcefd87</id>
<content type='text'>
Generated via git ls-files | xargs perl -pi -e "s/(Author.*?&lt;[^@]+@)(?:opscode\\.com|getchef\\.com)(&gt;)/\\1chef.io\\2/gi"</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Generated via git ls-files | xargs perl -pi -e "s/(Author.*?&lt;[^@]+@)(?:opscode\\.com|getchef\\.com)(&gt;)/\\1chef.io\\2/gi"</pre>
</div>
</content>
</entry>
<entry>
<title>Replace all Opscode copyrights with Chef Software.</title>
<updated>2016-02-02T22:50:29+00:00</updated>
<author>
<name>Noah Kantrowitz</name>
<email>noah@coderanger.net</email>
</author>
<published>2016-02-02T22:50:29+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=5e7af20bf4372b908916f3e816614fcfe19491de'/>
<id>5e7af20bf4372b908916f3e816614fcfe19491de</id>
<content type='text'>
Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"</pre>
</div>
</content>
</entry>
<entry>
<title>Copyright year update for 2016 and massive cleanup.</title>
<updated>2016-02-02T22:43:28+00:00</updated>
<author>
<name>Noah Kantrowitz</name>
<email>noah@coderanger.net</email>
</author>
<published>2016-02-02T22:43:28+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=0878ed6123706ed4201644ee798da993f8cb5ad4'/>
<id>0878ed6123706ed4201644ee798da993f8cb5ad4</id>
<content type='text'>
Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"</pre>
</div>
</content>
</entry>
<entry>
<title>Use double quotes by default</title>
<updated>2016-01-14T14:08:03+00:00</updated>
<author>
<name>Thom May</name>
<email>thom@chef.io</email>
</author>
<published>2016-01-14T14:08:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=51cfbdc4d16739caac4d946fadbe678444aafe34'/>
<id>51cfbdc4d16739caac4d946fadbe678444aafe34</id>
<content type='text'>
This is an entirely mechanically generated (chefstyle -a) change, to go
along with chef/chefstyle#5 . We should pick something and use it
consistently, and my opinion is that double quotes are the appropriate
thing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is an entirely mechanically generated (chefstyle -a) change, to go
along with chef/chefstyle#5 . We should pick something and use it
consistently, and my opinion is that double quotes are the appropriate
thing.
</pre>
</div>
</content>
</entry>
<entry>
<title>Purge pending specs</title>
<updated>2015-05-23T21:26:26+00:00</updated>
<author>
<name>danielsdeleo</name>
<email>dan@getchef.com</email>
</author>
<published>2015-05-23T00:18:35+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=4664b73dc46aa7b31f5471e668a575da96250af0'/>
<id>4664b73dc46aa7b31f5471e668a575da96250af0</id>
<content type='text'>
RSpec isn't a bug database
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
RSpec isn't a bug database
</pre>
</div>
</content>
</entry>
<entry>
<title>updating resources/providers unit tests to rpsec3</title>
<updated>2014-10-25T01:12:50+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2014-10-25T01:12:50+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=bd0b0a34e4dbb60fe61bbc8716df90e8f7c7d19a'/>
<id>bd0b0a34e4dbb60fe61bbc8716df90e8f7c7d19a</id>
<content type='text'>
mechanically generated patch using transpec 2.3.7 gem
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
mechanically generated patch using transpec 2.3.7 gem
</pre>
</div>
</content>
</entry>
<entry>
<title>Explictly test template helpers with arguments</title>
<updated>2013-05-29T18:32:22+00:00</updated>
<author>
<name>danielsdeleo</name>
<email>dan@opscode.com</email>
</author>
<published>2013-05-29T18:30:54+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=7468183d2a6e001d610c3dc35a7f20b633accf71'/>
<id>7468183d2a6e001d610c3dc35a7f20b633accf71</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move helper module compilation inside template resource</title>
<updated>2013-05-29T18:32:22+00:00</updated>
<author>
<name>danielsdeleo</name>
<email>dan@opscode.com</email>
</author>
<published>2013-05-27T19:18:41+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=7761abd2ef185acca93c9330db235f6704689ae4'/>
<id>7761abd2ef185acca93c9330db235f6704689ae4</id>
<content type='text'>
- Resource::Template compiles helper methods/module bodies into a
  collection of modules for inclusion into the template context.
- Resource::Template checks for obvious invalid input to helper
  definition methods.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Resource::Template compiles helper methods/module bodies into a
  collection of modules for inclusion into the template context.
- Resource::Template checks for obvious invalid input to helper
  definition methods.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add helper method/module support to template resource</title>
<updated>2013-05-29T18:32:22+00:00</updated>
<author>
<name>danielsdeleo</name>
<email>dan@opscode.com</email>
</author>
<published>2013-05-26T22:45:54+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=e7d836f1bc6478a05419abb242197eee98c803b1'/>
<id>e7d836f1bc6478a05419abb242197eee98c803b1</id>
<content type='text'>
Adds helper methods to a template via the following syntax:

```
template "name" do
  # singular method definition:
  helper(:method_name) { method_body }

  # inline module definition
  helpers do
    def method_name
      method_body
    end
  end

  # external module inclusion
  helpers(MyHelperModule)
end
```

In each of the above cases, variables defined by Chef (e.g., `@node`)
or the user (via `:variables =&gt; {}`) can be accessed as normal.

Could use the following improvements:
- Template partials are not supported
- Input validation on Resource::Template should be improved
- Needs Unit tests for Template provider/implementation classes
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds helper methods to a template via the following syntax:

```
template "name" do
  # singular method definition:
  helper(:method_name) { method_body }

  # inline module definition
  helpers do
    def method_name
      method_body
    end
  end

  # external module inclusion
  helpers(MyHelperModule)
end
```

In each of the above cases, variables defined by Chef (e.g., `@node`)
or the user (via `:variables =&gt; {}`) can be accessed as normal.

Could use the following improvements:
- Template partials are not supported
- Input validation on Resource::Template should be improved
- Needs Unit tests for Template provider/implementation classes
</pre>
</div>
</content>
</entry>
</feed>
