(PDB-107) Support chained CA certificates

This patch makes puppetdb load all of the certificates in the CA .pem
file into the in-memory truststore. This allows users to use a
certificate chain (typically represented as a sequence of certs in a
single file) for trust.
Merge pull request #788 from grimradical/PDB-107-cert-chains

(PDB-107) Support chained CA certificates
(PDB-247) Fixes the namespace override warnings from schema

Schema 0.2.0 has not yet been released, but has the fix for PDB-247. I
made a pre-release (0.2.0-pre-1) of the current state of the branch and
updated PuppetDB to use it.  Some PuppetDB code also needed to change as
one of the protocols is changing in 0.2.0.
Merge pull request #789 from senior/ticket/master/pdb-247-fix-schema-warnings

(PDB-247) Fixes the namespace override warnings from schema
PDB-279 Sanitize report imports

Previously we had a bug PDB-85 that caused our exports on 1.5.x to fail. This
has been fixed, but alas people are trying to import those broken dumps into
1.6.x and finding it doesn't work.

This patch sanitizes our imports by only using select keys from the reports
model and dropping everything else.

Signed-off-by: Ken Barber <ken@bob.sh>
PDB-303 Utilise final version of prismatic/schema 0.2.0

Previously we were using our own published version of a pre 0.2.0 release, this
patch remedies that to now point at the upstream finalized version.

Signed-off-by: Ken Barber <ken@bob.sh>
PDB-279 Remove extraneous brackets from functions in ->

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #795 from kbarber/ticket/1.6.x/PDB-303-utilise-final-version-of-schema-020

PDB-303 Utilise final version of prismatic/schema 0.2.0
Merge pull request #794 from kbarber/ticket/1.6.x/PDB-279-import_from_15_fails

PDB-279 Sanitize report imports
PDB-299 Release notes for 1.6.0-rc2 changes

This covers the release notes for 1.6.0-rc2 plus a mention for
prismatic schema as well.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #797 from kbarber/ticket/1.6.x/PDB-299-release_notes_for_rc2

PDB-299 Release notes for 1.6.0-rc2 changes
PDB-307 Fix private method rspec failures due to mocha 1.0.0 upgrade

This patch fixes an rspec failure we were having on the terminus due to the
recent bump from mocha from 0.14.1 to 1.0.0.

Previously mocha seems to have been ignoring private method calls for whatever
reason. With the new version of mocha it is throwing exceptions (as it rightly
should).

This patch removes the use of the `private` declaration and converts all of
these methods to be document `@api private` in YARD instead migrating a
language enforcement to a documentation enforcement instead.

As an aside I noticed that char_encoding.rb had a 3 space indent convention,
this has been converted to 2 space as per our standard.

Signed-off-by: Ken Barber <ken@bob.sh>
PDB-307 Move jenkins rspec build script into version control

This patch moves the jenkins rspec build script into our git repository to
be called by jenkins instead of loading up the full script in the job itself.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #798 from kbarber/ticket/1.5.x/PDB-307-fix_private_method_rspec_failures

PDB-307 Fix private method rspec failures due to mocha 1.0.0 upgrade
PDB-307 Fix ruby-1.8.5 support for using bundler during rspec tests

Ruby 1.8.5 has some limitations in what it supports as far as gems go and
since we have been attempting as part of PDB-307 to use bundler more often
we have hit some problems.

* nokogiri, the version that beaker expects is not supported
* rake > 0.8.7 is also not supported

This patch removes beaker as a dependency while we run the rspec tests. This
will avoid pulling in lots of extra gems and hopefully speed up the whole
thing anyway. I've also applied this to the travis tests to hopefully speed
those up as well.

There is also now a conditional to change the dependencies for `rake` when
applied to a 1.8.5 ruby.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #799 from kbarber/ticket/1.5.x/PDB-307-fixes_for_ruby185

PDB-307 Fix ruby-1.8.5 support for using bundler during rspec tests
PDB-307 Ensure 'vendor' directory is created for ruby 1.8.5 bundler

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #803 from kbarber/ticket/1.5.x/PDB-307-create_vendor_dir_for_ruby185_bundler

PDB-307 Ensure 'vendor' directory is created for ruby 1.8.5 bundler
PDB-307 Remove usage of bundler for ruby-1.8.5

Bundler times out on ruby-1.8.5. This is probably due to the fact that it is
such an old implementation. We are less concerned with latest gems for 1.8.5
so for now I'm disabling this functionality.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #804 from kbarber/ticket/1.5.x/PDB-307-nobundler-for-ruby185

PDB-307 Remove usage of bundler for ruby-1.8.5