(PUP-1811) Set regexp match vars on regexp match using in operator
(PUP-1811) Add tests for regexp search in array setting match vars
(PUP-2654) Capitalize each segment of a resource type "label"

When a Resource type is stringified it selects the short notation
(e.g. Fee::Foo) over the longer (e.g. Resource[Fee::Foo]), and
when doing so it should output each segment of the FQN with a
capital letter. The current implementation only capitalizes
the initial letter (e.g. Fee::foo::fum).

This fixes the implementation of
TypeCalculator.string_PResourceExpression to capitalize all segments.
(maint) Fix Pattern / Variant Type assignability

This fix corrects Pattern.assignable?(Variant) which was not
correctly supported in the type calculator. (It gave up if t2
was not a String or an Enum). Now, if t2 is a Variant,
the check recurses to the types described by the enum.
(maint) Fix Enum / Variant assignability

The type calculator did not correctly compute assignability
for an Enum when assigning a Variant type. Now, all variants
are checked if they are assignable to the enum type.
Merge pull request #2789 from hlindberg/PUP-1811_in-set-match-vars

(PUP-1811) Make 'in' set match vars when regexp is used to match
(maint) Fix problem with Enum subset not matching Enum

This corrects a problem where Enum[a] was not assignable to
Enum[a,b], since it is a subset, it should be assignable.
(maint) Add the ability to inject calling scope into function.

The InteralFunction API now has the ability to "inject" and weave
the calling scope into the dispatched arguments by calling
the method scope_param() when building the dispatcher.
(PUP-2845) Move the epp function to the 4x function API.

This moves the epp function to the new function API.
The type checking is much approved as a consequence as the function
is now protected against spilling non variable name compliant
variables into the scope.
(maint) Extract constant for name separator

The name separator is used a few different times in the file. This
extracts it out and freezes the value, which has the nice benefit of a
small speed boost. Unfortunately this isn't a big win for the system
since this code path is only really used for error conditions.
(doc) Describe ca subcommands in puppet help

PUP-2801 requests ability to remove pending CSRs. The requester confirmed
that the puppet ca destroy command met that need. This patch adds basic
descriptions to puppet help ca for destroy, revoke, generate, sign,
print, fingerprint, and verify. The descriptions are largely sourced from
the puppet help cert descriptions of the same functionality.
Merge branch 'pull-2783'

This closes GH-2783.
Merge branch 'pr/2810'

* pr/2810:
  (maint) Extract constant for name separator
  (PUP-2654) Capitalize each segment of a resource type "label"
(PUP-2845) Move the inline_epp function to the new function API.

This moves the function inline_epp to use the new function API.
This also improves the argument checking since it is not not possible
to leak non variable name compliant variables into the scope.
(PUP-2845) Remove comment about skipping mapping in call_function

The comment refers to removed behaviour. Now, since the epp
functions are moved, there is also no need to map them (there are PRs in
flight that will add such behavior).
(PUP-2104) Fix facter terminus to print out fact files.

Prior to the refactoring of the facter terminus, the terminus loaded
module facts directly.  This is no longer the case and instead facter
always loads the facts itself.

The previous implementation logged an informational message displaying
the path to each fact script it found.  The new behavior only printed
the directory that would be searched for facts.

Given that this information may be useful to module developers and to
maintain existing output behavior, this change restores the previous
output behavior but still relies on facter to load the facts.
(PUP-2104) Update define_settings documentation for default option.

Updating the documentation for define_settings to match the recent
changes that allow a Proc to be passed and lazy-evaluated for the
default value.
Merge pull request #2816 from peterhuene/pup/2104

(PUP-2104) Fix facter terminus to print out fact files.
(PUP-392) FFI ADSI GetComputerName /Add Group SID

 - Some existing tests were using Sys::Admin.get_login to get the
   current username.  Implement this same functionality in
   Puppet::Util::Windows::ADSI::User.current_user_name by making
   Win32 API call directly instead of relying on sys/admin.  Note that
   unlike GetComputerNameW, GetUserNameW returns a length
   including the trailing NULL.
 - Further, replace calls to Sys::Admin::get_user(name).sid and
   Sys::Admin::get_group(name).sid with their respective equivalents in
   the ADSI classes, namely ADSI::User.new(name).sid and
   ADSI::Group.new(name).sid.  Note that Sys::Admin returned a string
   while ADSI returns a SID object which must be converted to a string.
 - To support retrieving the ADSI Group sid, add a new class member
   and method identical to the one on ADSI User.
(PUP-392) Remove sys-admin gem

 - Update inline strings mentioning it as a dependency