(#15591) Skip test that causes segfault on Windows

Previously, this test would segfault on Windows with ruby 1.8.7 p370, but
not p334. The test can never work on Windows as currently written
(Kernel.fork). And we can't mark it as pending, because rspec attempts to
run the test, expecting either a failure or exception, but ruby segfaults.
So we have to skip entirely on Windows.

Note in the merge up to 3.x, this spec file has been removed.
Maint: Large or complex HEREDOC strings w/ no interpolation should be single-quote type

We were getting accidental interpolation of \t and \n sequences in the desc string
for the file type's content parameter. To avoid this, any description string which:

* Does not deliberately interpolate values from the surrounding code

AND

* Is long enough or complex enough that it can't be read in a single glance

...should probably be the single-quoted type of HEREDOC instead of the
double-quoted type. This commit changes a bunch of HEREDOCs that match this
description.
Remove version check regex from puppet

This commit removes the version test method in
default.rb, which is the sudo-equivalent of e30d6ef
in the 3.x branch. AFAICT this method is not called
anywhere in puppet, and since we've started using
RC versions it won't work as-is if called.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Fix a small docs typo - umounted vs. unmounted
Don't pollute Functions namespace in shellquote function

This moves two constants into local variables inside the function, as the
constants polluted the Puppet::Parser::Functions namespace and caused warnings
when the function was reloaded.
Backport fix for commandline spec

This makes the commandline spec not try to execute a command that does not
exist.
Don't make executables in /tmp in posix_spec

The posix specs were creating executable files in /tmp, which caused a warning
about an insecure directory in the path. This adds an intermediate safe
directory.
Fixup debian artifacts for 3.x
Fixup for different source paths

This commit adjusts the packaging artifacts for the difference
in directories between 2.7.x and 3.x, which doesn't have sbin
and test. Because of this we also switch to using the packaging
gem task and remove the existing one.
remove old tasks and pull out of rake subdir

This commit removes several tasks that as far as
I can tell are no longer used, and the remaining
tasks out of the rake subdir in tasks.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Move all packaging artifacts from conf to ext

This commit moves all packaging artifacts out of the conf dir and into
the ext dir. This is generally a move to align packaging across all
puppetlabs products and make the directories more sensible, e.g. conf
should have config files. The redhat spec and install.rb are updated
for the path change.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Remove debian manpages that are obsolete in 3.x
Merge pull request #1082 from joshcooper/ticket/2.7.x/15591-segfault

(#15591) Skip test that causes segfault on Windows
Merge pull request #1085 from nfagerlund/maint/2.7.x/bad_escaping_in_doc_strings

Maint: Large or complex HEREDOC strings w/ no interpolation should be single-quote type
Merge pull request #1087 from pcarlisle/maint/2.7.x/test-warnings

Maint/2.7.x/test warnings
Merge remote-tracking branch 'origin/2.7.x' into 3.x

Conflicts:
	lib/puppet/parser/functions/shellquote.rb
	lib/puppet/type/package.rb
	spec/integration/util/file_locking_spec.rb
	spec/unit/parser/functions/shellquote_spec.rb
	spec/unit/util/command_line_spec.rb

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
Merge remote-tracking branch 'origin/3.x'
Merge pull request #1096 from djmitche/fix-umount-typo

Fix a small docs typo - umounted vs. unmounted
Merge pull request #1093 from MosesMendoza/maint/3.x/shift_to_using_packaging_repo

Maint/3.x/shift to using packaging repo
Merge pull request #1095 from MosesMendoza/remove_version_check_from_puppet

Remove version check regex from puppet