Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-08-05 | (#8797) Merge puppetlabs-functions into puppetlabs-stdlib | Ken Barber | |
It was decided that maintaining puppetlabs-functions and puppetlabs-stdlib was duplication as both are trying to achieve the same goal. This patch provides a merge of the puppetlabs-functions into the puppetlabs-stdlib repository, with history preservation. The following conflicts were found and resolved: * LICENSE file from functions was used as it aligns with ASL usage instructions and contains relevant copyright information: http://www.apache.org/licenses/LICENSE-2.0.html * Used spec_helper.rb from functions - this is what Puppet core uses and doesn't break tests. * Merged .gitignore and spec.opts options. | |||
2011-08-05 | * Moved kwalify to puppetlabs-kwalify project | Ken Barber | |
* Re-arranged tests in line with puppetlabs-stdlib | |||
2011-08-05 | Prep for stdlib merge | Ken Barber | |
* Renamed load_yaml & load_json to parseyaml & parsejson * Renamed is_valid_* functions and remove the 'valid_' | |||
2011-08-04 | Update CHANGELOG and Modulefile for 1.1.0 | Jeff McCune | |
2011-08-04 | Merge branch 'refactor/master/8665_whole_line' | Jeff McCune | |
* refactor/master/8665_whole_line: (#8665) Change type from append_line to whole_line | |||
2011-08-04 | Update CHANGELOG and README for 1.0.0 | Jeff McCune | |
2011-08-04 | Merge branch 'ticket/master/8678_validate_array_string' | Jeff McCune | |
* ticket/master/8678_validate_array_string: (#8678) Add validate_array and validate_string functions | |||
2011-08-04 | (#8678) Add validate_array and validate_string functions | Jeff McCune | |
The accounts module is making use of validate_array() and validate_string() which do not exist int he stdlib module without this patch. This patch adds the two functions to the stdlib with unit tests. Reviewed-by: Dan Bode | |||
2011-08-01 | Merge branch 'ticket/master/8717_merge_function_ruby_185' | Jeff McCune | |
* ticket/master/8717_merge_function_ruby_185: (#8717) Make merge() function work with Ruby 1.8.5 | |||
2011-08-01 | (#8717) Make merge() function work with Ruby 1.8.5 | Jeff McCune | |
The previous behavior of the merge() function used Array#inject with two arguments. Ruby 1.8.5 only supports inject being used with one argument. This change initializes and empty Hash object and merges each argument into the accumulator. The last argument still "wins" in the merge. rspec tests (cd spec; rspec **/*_spec.rb) verified as passing with this change. Reviewed-by: Dan Bode | |||
2011-07-30 | Fix some ruby 1.9.2 issues. | Ken Barber | |
2011-07-29 | Merge branch 'feature/master/add_merge_has_key' | Dan Bode | |
2011-07-29 | (#8709) Add hash merging function | Dan Bode | |
In Puppet, it is not possible to reassign hash values. This function allows a reasonable way to perform hash munging in Puppet. Reviewed-by: Jeff McCune | |||
2011-07-29 | (#8708) Add has_key function | Dan Bode | |
It is difficult to use existance of keys in a hash as a boolean condition in Puppet (see #8705) This function provides a working solution until the underlying issue in Puppet can be resolved. Reviewed-by: Jeff McCune | |||
2011-07-29 | (#3) Provide documentation for remaining functions. | Ken Barber | |
2011-07-29 | (#3) Apply missing documentation to more functions. | Ken Barber | |
2011-07-29 | Remove rand. | Ken Barber | |
2011-07-29 | Some improvements to values_at tests. | Ken Barber | |
2011-07-29 | (#1) provide some more detailed tests for a number of functions. | Ken Barber | |
2011-07-29 | Removed date stub since this functinality is available in strftime anyway. | Ken Barber | |
2011-07-29 | (#2) fix is_string finally so it also makes sure numbers return false. | Ken Barber | |
2011-07-29 | (#2) unstub is_valid_domain_name | Ken Barber | |
2011-07-30 | Added doc strings for first five functions | James Turnbull | |
2011-07-29 | Removed join_with_prefix. | Ken Barber | |
2011-07-29 | (#2) unstub is_valid_mac_address. | Ken Barber | |
2011-07-29 | Allow sort for strings. | Ken Barber | |
2011-07-28 | Count functionality overlaps with size - so removing it. | Ken Barber | |
2011-07-28 | Removed crontab functions instead of unstubbing them. | Ken Barber | |
2011-07-28 | Removed load_variables. load_yaml is sufficient to solve this problem on its ↵ | Ken Barber | |
own. | |||
2011-07-28 | Remove is_valid_netmask instead of unstubbing. Doesn't seem like a sensible ↵ | Ken Barber | |
function on its own. | |||
2011-07-28 | (#2) unstub is_numeric function. | Ken Barber | |
2011-07-28 | (#2) - unstubbed is_valid_ip_address | Ken Barber | |
2011-07-28 | (#1) - added new test for upcase. | Ken Barber | |
2011-07-28 | (#2) - Added is_float and is_integer functionality. | Ken Barber | |
2011-07-27 | (#8665) Change type from append_line to whole_line | Dan Bode | |
Changed the type name from append_line to whole_line. After feedback that having a type with a verb in the name was confusing. | |||
2011-07-26 | Merge branch 'ticket/master/8585_load_yaml_function' | Jeff McCune | |
* ticket/master/8585_load_yaml_function: (#8575) Add loadyaml() function | |||
2011-07-26 | (#8575) Add loadyaml() function | Jeff McCune | |
This change adds a loadyaml() puppet function that takes a path to a YAML data file and returns the contents as a Puppet variable. There is currently no validation of the contents of the file. This commit is intentionally lacking unit tests because of time constraints. Reviewed-by: Dan Bode | |||
2011-07-26 | Merge branch 'feature/master/8628_append_line' | Dan Bode | |
2011-07-26 | (#8628) Add append_line native type | Dan Bode | |
This commit adds a native type that can check if a line exists and append it to a file. This use case seems common enough to warrant its inclusion into stdlib. Reviewed-by: Jeff McCune | |||
2011-07-24 | (#1) - fleshed out some more tests. | Ken Barber | |
2011-07-01 | Added validate_resource function and examples on how to use it (and kwalify ↵ | Ken Barber | |
as well) | |||
2011-06-30 | Few more tests. | Ken Barber | |
2011-06-29 | Move require inside function for kwalify. | Ken Barber | |
2011-06-29 | Add some more functional tests. | Ken Barber | |
2011-06-29 | New abs test. | Ken Barber | |
2011-06-29 | Added tests for each function, fixing functions as we hit bugs. | Ken Barber | |
2011-06-29 | Added kwalify function. | Ken Barber | |
2011-06-29 | Copied function test scaffolding from puppet. | Ken Barber | |
2011-06-26 | Removed duplicate - is_hash is really now is_hash instead of is_array. | Ken Barber | |
2011-06-21 | Update CHANGELOG and version for 0.1.7 | Jeff McCune | |