puppetlabs-stdlib/lib/puppet/parser/functions
Jetroid 1d9189d860 (MODULE-2456) Modify union to accept more than two arrays
Add spec tests to test the new functionality:
 *Case for 3 arrays.
 *Case for 4 arrays.
Modify README to note new functionality.

This is for issue MODULE-2456, follow the precedent of MODULE-444.

This change allows union to be much more useful, unioning many arrays
in one line rather than in n lines. Additionally, as this is only added
functionality, and does not affect the 2 array case that all modules
currently using array are using, it should not affect any existing
modules utilizing union.

This is now useful, for example, for merging many arrays of resources
(eg: packages.) to generate just one list with no duplicates, to avoid
duplicate resource declarations.
2015-08-24 14:24:10 +01:00
..
abs.rb puppet-lint cleanup 2012-11-15 10:38:03 -06:00
any2array.rb Remove resundant code 2013-04-03 14:05:20 -07:00
assert_private.rb Rename private() to assert_private() 2015-03-05 10:59:31 -08:00
base64.rb Remove trailing whitespace 2014-02-05 15:01:45 -08:00
basename.rb Added basename() based on Ruby's File.basename 2014-12-17 12:39:40 -06:00
bool2num.rb Re-use existing str2bool code rather than doing a copy and paste 2014-09-22 19:49:50 +02:00
bool2str.rb (MODULES-905) Narrow the confinement in bool2str 2014-05-15 15:01:14 -07:00
camelcase.rb (MODULES-905) Add bool2str() and camelcase() for string manipulation 2014-05-13 15:46:40 -07:00
capitalize.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
ceiling.rb Add a ceiling function to complement the floor function. 2015-02-01 22:46:16 -08:00
chomp.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
chop.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
concat.rb (MODULES-444) - Real meat of the change 2014-12-04 14:34:25 +00:00
count.rb Add a count function 2013-04-10 14:39:25 +02:00
deep_merge.rb PUP-1724 Don't modify the paramaters to deep_merge 2014-02-17 12:19:40 -08:00
defined_with_params.rb Handle undef for parameter argument 2012-10-25 10:54:33 -07:00
delete.rb Update docs to reflect new behavior of delete function taking array in second argument 2014-12-19 10:41:07 -08:00
delete_at.rb (#3) Provide documentation for remaining functions. 2011-07-29 23:09:30 +01:00
delete_undef_values.rb Remove trailing whitespace 2014-02-05 15:01:45 -08:00
delete_values.rb Remove trailing whitespace 2014-02-05 15:01:45 -08:00
difference.rb (#20684) Add array comparison functions, difference, intersection and union. 2013-05-13 12:14:15 -04:00
dirname.rb Added type checks for dirname(), and additional tests 2014-12-17 12:55:48 -06:00
dos2unix.rb (MODULES-2410) Add new functions dos2unix and unix2dos 2015-08-14 13:30:01 +01:00
downcase.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
empty.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
ensure_packages.rb (MODULES-603) Add defaults arguments to ensure_packages() 2014-03-30 18:47:36 -04:00
ensure_resource.rb ensure_resource: be more verbose in debug mode 2014-10-10 22:57:26 +02:00
flatten.rb Fix number of arguments check in flatten() 2013-03-18 15:07:13 -07:00
floor.rb Fix the stdlib functions that fail tests 2014-05-08 14:55:23 -07:00
fqdn_rand_string.rb fqdn_rand_string: fix argument error message 2015-04-17 14:24:40 -07:00
fqdn_rotate.rb fqdn_rotate: Improve documentation 2015-06-01 16:19:07 -07:00
get_module_path.rb (Maint) Fix up the get_module_path parser function 2012-07-23 09:21:22 -07:00
getparam.rb (maint) Fix getparam() spec failure on MRI 1.8 2013-01-14 18:38:27 -08:00
getvar.rb Also catch :undefined_variable as thrown by future parser 2015-06-05 12:43:01 +01:00
grep.rb (#3) Provide documentation for remaining functions. 2011-07-29 23:09:30 +01:00
has_interface_with.rb catch and rescue from looking up non-existent facts when looking for 'kind' 2015-06-24 15:02:02 +02:00
has_ip_address.rb (#13974) Add predicate functions for interface facts 2012-11-07 14:00:44 -08:00
has_ip_network.rb (#13974) Add predicate functions for interface facts 2012-11-07 14:00:44 -08:00
has_key.rb Docs: Correct indentation of markdown code examples 2011-08-18 12:39:04 -07:00
hash.rb (maint) Fix a small typo in hash() description 2013-04-29 17:17:46 -07:00
intersection.rb (#20684) Add array comparison functions, difference, intersection and union. 2013-05-13 12:14:15 -04:00
is_array.rb (#3) Provide documentation for remaining functions. 2011-07-29 23:09:30 +01:00
is_bool.rb (#23381) add is_bool() function 2013-12-09 11:50:03 -07:00
is_domain_name.rb If present, top-level domain must be alphabetic 2015-03-05 21:51:12 -06:00
is_float.rb Fix the stdlib functions that fail tests 2014-05-08 14:55:23 -07:00
is_function_available.rb Fix the stdlib functions that fail tests 2014-05-08 14:55:23 -07:00
is_hash.rb (#3) Provide documentation for remaining functions. 2011-07-29 23:09:30 +01:00
is_integer.rb (PUP-1195) Rephrase documentation for is_integer and is_numeric 2014-01-24 00:22:09 +01:00
is_ip_address.rb puppet-lint cleanup 2012-11-15 10:38:03 -06:00
is_mac_address.rb simplify mac address regex 2015-05-29 20:13:21 +02:00
is_numeric.rb (PUP-1195) Rephrase documentation for is_integer and is_numeric 2014-01-24 00:22:09 +01:00
is_string.rb (#3) Provide documentation for remaining functions. 2011-07-29 23:09:30 +01:00
join.rb Fixed 'separator' typos 2013-10-25 15:26:21 -06:00
join_keys_to_values.rb Add join_keys_to_values function 2012-11-20 16:16:03 -05:00
keys.rb (#3) Provide documentation for remaining functions. 2011-07-29 23:09:30 +01:00
load_module_metadata.rb Add load_metadata_json function 2015-07-30 15:51:54 -07:00
loadyaml.rb Check if file exists before loading with loadyaml. If not, return nil 2014-09-02 11:35:42 +02:00
lstrip.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
max.rb Allow comparisons of Numeric and number as String 2013-03-27 14:03:31 -07:00
member.rb Convert tests to use plain rspec-puppet 2015-06-01 18:02:22 +01:00
merge.rb fix in merge.rb: refine the checking if an argument is an empty string 2013-05-08 18:24:07 +02:00
min.rb Allow comparisons of Numeric and number as String 2013-03-27 14:03:31 -07:00
num2bool.rb Cleanup per adrianthebo suggestions 2013-04-01 11:44:09 -04:00
parsejson.rb (#10285) Refactor json to use pson instead. 2011-10-25 15:54:47 -07:00
parseyaml.rb puppet-lint cleanup 2012-11-15 10:38:03 -06:00
pick.rb (Main) fix typo in pick error message 2013-10-29 12:01:25 -07:00
pick_default.rb (PUP-638) Add a pick_default() function that always returns a value. 2014-01-29 09:26:35 -08:00
prefix.rb Add support for hashes in the prefix function 2015-03-03 16:20:55 -08:00
private.rb Add private function back and forward to assert_private with deprecation warning 2015-03-05 11:12:51 -08:00
pw_hash.rb pw_hash: Fix functionality on JRuby < 1.7.17 2015-05-05 15:53:34 -07:00
range.rb range(): fix TypeError(can't convert nil into Integer) when using range syntax 2015-05-06 10:13:27 +01:00
reject.rb Add reject() function 2012-11-28 14:28:31 -08:00
reverse.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
rstrip.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
shuffle.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
size.rb adding support for hash in the size function 2015-07-22 12:11:52 +02:00
sort.rb Fix some ruby 1.9.2 issues. 2011-07-30 00:44:02 +01:00
squeeze.rb puppet-lint cleanup 2012-11-15 10:38:03 -06:00
str2bool.rb Remove trailing whitespace 2014-02-05 15:01:45 -08:00
str2saltedsha512.rb New str2saltedsha512 function for OS X Passwords 2012-01-09 11:30:47 -08:00
strftime.rb (#3) Apply missing documentation to more functions. 2011-07-29 22:18:56 +01:00
strip.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
suffix.rb (maint) better error reporting for prefix and suffix 2013-03-27 13:37:25 -07:00
swapcase.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
time.rb Fix time() on 1.8.7 2015-06-04 09:40:52 -07:00
to_bytes.rb Added correct converstions for PB and EB. 2014-10-28 13:14:06 -07:00
type.rb (MODULES-1473) Deprecate type() function for new parser 2015-01-07 16:40:06 -08:00
type3x.rb (MODULES-1473) Deprecate type() function for new parser 2015-01-07 16:40:06 -08:00
union.rb (MODULE-2456) Modify union to accept more than two arrays 2015-08-24 14:24:10 +01:00
unique.rb (MODULES-707) chomp() fails because generate() no longer returns a string 2014-09-22 19:49:50 +02:00
unix2dos.rb (MODULES-2410) Add new functions dos2unix and unix2dos 2015-08-14 13:30:01 +01:00
upcase.rb Fix documentation error in upcase 2015-07-20 18:00:09 +01:00
uriescape.rb URI.escape for the array case was incorrect. 2015-03-03 16:05:47 -08:00
validate_absolute_path.rb Allow array of pathes in validate_absolute_path 2014-11-25 12:45:23 +01:00
validate_array.rb Docs: Copyedit function doc strings 2011-08-18 12:39:04 -07:00
validate_augeas.rb validate_augeas: fix URL to docs 2015-05-05 13:55:18 +01:00
validate_bool.rb (#23381) add is_bool() function 2013-12-09 11:50:03 -07:00
validate_cmd.rb (MODULES-1582) Improve % detection 2014-12-18 23:35:24 +00:00
validate_hash.rb Docs: Remove author emails from stdlib functions 2011-08-18 12:39:05 -07:00
validate_integer.rb Remove colorful language from module. 2015-07-30 15:11:26 -07:00
validate_ipv4_address.rb Ruby 2.0 introduces IPAddr::InvalidAddressError 2013-05-22 17:21:38 -07:00
validate_ipv6_address.rb Ruby 2.0 introduces IPAddr::InvalidAddressError 2013-05-22 17:21:38 -07:00
validate_numeric.rb validate_integer, validate_numeric: explicitely reject hashes in arrays 2015-05-27 20:05:05 +01:00
validate_re.rb (maint) Comment Ken's fix to String#any? 2012-03-09 14:08:54 -08:00
validate_slength.rb Add validate_slength's optional 3rd arg to README 2015-07-09 18:13:19 +01:00
validate_string.rb Note that also future parser does not work 2014-09-16 19:03:02 +02:00
values.rb (#3) Apply missing documentation to more functions. 2011-07-29 22:18:56 +01:00
values_at.rb Fix testcases for Future Parser and resolve issue with values_at in assuming that it was dealing with a string 2014-10-28 15:27:24 -07:00
zip.rb Re-use existing str2bool code rather than doing a copy and paste 2014-09-22 19:49:50 +02:00