summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-07-31Introduce test for array destructionSpencer Krum
It was discovered that the concat array modifies the arrays passed to it as an argument as a side effect. This test will ensure that doesn't happen again.
2014-07-31Concatenate arrays without modifying the first arrayColleen Murphy
2014-07-16Merge pull request #300 from trlinkin/file_line_docsHunter Haugen
(MODULES-1221) Add file_line autorequire documentation
2014-07-16(MODULES-1221) Add file_line autorequire documentationThomas Linkin
This commit adds additional documentation to the file_line resource explaining how it will autorequire file resources when present.
2014-06-30Merge pull request #295 from cmurphy/masterHunter Haugen
Synchronize .travis.yml
2014-06-27Synchronize .travis.ymlColleen Murphy
2014-06-27Update .sync.yml to support new .travis.yml configsColleen Murphy
2014-06-26Merge pull request #290 from cmurphy/masterAshley Penney
Start synchronizing module files
2014-06-25Sync filesColleen Murphy
2014-06-25Add configuration file for modulesyncColleen Murphy
https://github.com/puppetlabs/modulesync
2014-06-18Merge pull request #270 from raphink/dev/privateAshley Penney
Add private() function
2014-06-11Add private() functionRaphaël Pinson
2014-06-05Merge pull request #268 from apenney/rspec3Morgan Haskel
Rspec3 changes
2014-06-04Convert specs to RSpec 2.99.0 syntax with TranspecAshley Penney
This conversion is done by Transpec 2.2.1 with the following command: transpec spec/functions * 345 conversions from: obj.should to: expect(obj).to * 122 conversions from: == expected to: eq(expected) * 85 conversions from: lambda { }.should to: expect { }.to * 22 conversions from: be_true to: be_truthy * 16 conversions from: be_false to: be_falsey * 11 conversions from: pending to: skip * 9 conversions from: it { should ... } to: it { is_expected.to ... } * 5 conversions from: =~ [1, 2] to: match_array([1, 2]) * 2 conversions from: =~ /pattern/ to: match(/pattern/) * 2 conversions from: obj.should_not to: expect(obj).not_to For more details: https://github.com/yujinakayama/transpec#supported-conversions
2014-06-04Convert specs to RSpec 2.99.0 syntax with TranspecAshley Penney
This conversion is done by Transpec 2.2.1 with the following command: transpec spec/unit * 53 conversions from: obj.should to: expect(obj).to * 19 conversions from: == expected to: eq(expected) * 5 conversions from: lambda { }.should to: expect { }.to * 2 conversions from: be_true to: be_truthy For more details: https://github.com/yujinakayama/transpec#supported-conversions
2014-06-03Merge pull request #265 from apenney/fix-testsMorgan Haskel
Further fixes to tests for 14.04.
2014-06-03Further fixes to tests for 14.04.Ashley Penney
2014-06-03Merge pull request #264 from apenney/fixes-for-testsMorgan Haskel
Fixes for PE3.3.
2014-06-03Fixes for PE3.3.Ashley Penney
2014-05-15Merge pull request #258 from mckern/enhancement/master/camelcasedemboolsAshley Penney
(MODULES-905) Narrow the confinement in bool2str
2014-05-15(MODULES-905) Extend spec tests for bool2strRyan McKern
The extended spec tests validate that the common types of values that could be passed to bool2str() are rejected.
2014-05-15(MODULES-905) Narrow the confinement in bool2strRyan McKern
Previously, bool2str() accepted a broad array of boolean values and bare strings, without any attempt to validate that the strings in any way resembled "true" or "false" (or any of the other values bool2num() accepts). This commit narrows the input confinement to TrueClass and FalseClass, which means that bool2str() will only interpolate strict boolean values now.
2014-05-15Merge pull request #257 from apenney/revert-beforeAshley Penney
Revert "Merge pull request #256 from stbenjam/2571-before"
2014-05-15Revert "Merge pull request #256 from stbenjam/2571-before"Ashley Penney
This reverts commit 8499ebdb7f892f2623295058649c67a5553d4732, reversing changes made to 08b00d9229961d7b3c3cba997bfb35c8d47e4c4b.
2014-05-15Merge pull request #255 from mckern/enhancement/master/camelcasedemboolsAshley Penney
(MODULES-905) Add bool2str() and camelcase() for string manipulation
2014-05-15Merge pull request #256 from stbenjam/2571-beforeAshley Penney
(PUP-2571) add 'before' functionality to file_line
2014-05-14(PUP-2571) add 'before' functionality to file_lineStephen Benjamin
file_line supports adding lines after a match, but there are use cases when having "before" would be useful. For example, in Debian-based OS's, the last line of /etc/rc.local is "exit 0" it's an incredible pain to deal with that scenario today. This commit adds a 'before' parameter to the file_line type, and implements it for the ruby provider.
2014-05-13(maint) Add bool2str & camelcase spec testsRyan McKern
2014-05-13(MODULES-905) Add bool2str() and camelcase() for string manipulationRyan McKern
Python likes to have its constants Capitalized, and the capitalize function only understands strings... so I shave a yak. bool2str will convert a boolean to its equivalent string value, and camelcase extends on uppercase & downcase to convert an underscore delimited string into a camelcased string.
2014-05-09Merge pull request #254 from apenney/421Ashley Penney
Prepare a 4.2.1 release.
2014-05-09Prepare a 4.2.1 release.Ashley Penney
2014-05-08Merge pull request #252 from hunner/release_4.2.0Ashley Penney
Release - 4.2.0
2014-05-08Release - 4.2.0Hunter Haugen
Summary ======== This release adds many new functions and fixes, and continues to be backwards compatible with stdlib 3.x Features ------- - New `base64()` function - New `deep_merge()` function - New `delete_undef_values()` function - New `delete_values()` function - New `difference()` function - New `intersection()` function - New `is_bool()` function - New `pick_default()` function - New `union()` function - New `validate_ipv4_address` function - New `validate_ipv6_address` function - Update `ensure_packages()` to take an option hash as a second parameter. - Update `range()` to take an optional third argument for range step - Update `validate_slength()` to take an optional third argument for minimum length - Update `file_line` resource to take `after` and `multiple` attributes Bugfixes -------- - Correct `is_string`, `is_domain_name`, `is_array`, `is_float`, and `is_function_available` for parsing odd types such as bools and hashes. - Allow facts.d facts to contain `=` in the value - Fix `root_home` fact on darwin systems - Fix `concat()` to work with a second non-array argument - Fix `floor()` to work with integer strings - Fix `is_integer()` to return true if passed integer strings - Fix `is_numeric()` to return true if passed integer strings - Fix `merge()` to work with empty strings - Fix `pick()` to raise the correct error type - Fix `uriescape()` to use the default URI.escape list - Add/update unit & acceptance tests.
2014-05-08Merge pull request #251 from hunner/fix_testsAshley Penney
Fix the stdlib functions that fail tests
2014-05-08Fix the stdlib functions that fail testsHunter Haugen
2014-05-08Merge pull request #250 from hunner/move_unitAshley Penney
Move unit tests to spec/functions
2014-05-08Move unit tests to spec/functionsHunter Haugen
rspec-puppet matchers are defined for tests which exist in spec/functions, but the function unit tests lived in spec/unit/puppet/parser/functions. This moves them to the correct place for using rspec-puppet
2014-05-07Merge pull request #247 from hunner/more_testsAshley Penney
Adding more spec coverage
2014-05-07Add mode +x to spec .rb filesHunter Haugen
2014-05-07Move the 4 misplaced testsHunter Haugen
2014-05-07Adding more spec coverageHunter Haugen
2014-05-07Merge pull request #248 from averi/masterHunter Haugen
Add the missing shebangs and fix the wrong ones
2014-05-07Add the missing shebangs and fix the wrong ones for rpmlint to stop ↵Andrea Veri
complaining loudly
2014-05-02Merge pull request #246 from hunner/update_build_csvHunter Haugen
Update build_csv to understand contexts
2014-05-02Update build_csv to understand contextsHunter Haugen
2014-05-02Merge pull request #245 from hunner/fix_augeasHunter Haugen
Fix the validate_augeas beaker tests
2014-05-02Fix the validate_augeas beaker testsHunter Haugen
2014-05-01Merge pull request #244 from hunner/add_testsAshley Penney
Add more specs
2014-05-01Add more specsHunter Haugen
2014-04-28Merge pull request #243 from hunner/add_beakerAshley Penney
Add beaker tests for functions.