Commit Graph

34 Commits

Author SHA1 Message Date
David Schmitt 6b5c2dbd45 Update Gemfile and gemspec
This adjusts the Gemfile and gemspec to current packaging
standards.
2018-06-26 08:29:46 +01:00
David Schmitt 3a1dcd75e7 Enable changelog generation 2018-06-26 08:29:46 +01:00
Eric Putnam 840dfca1bc
Merge pull request #152 from DavidS/codecov
Enable code coverage tracking
2018-02-14 08:59:09 -08:00
David Schmitt 993cb5fc05 Update to non-vulnerable yard version 2018-01-29 16:18:00 +00:00
David Schmitt 8364b8e685 Enable code coverage tracking 2018-01-26 14:09:20 +00:00
Spencer McElmurry dc25d9e631 (QENG-5344) Add beaker-abs for ci.next-i-fication
This is needed in order to work with always be scheduling on
CI.Next jenkins instances.
2017-10-05 15:27:01 -07:00
Will Hopper a3f00d043f (maint) Update outdated rubocop checks 2017-03-16 14:22:07 -07:00
Will Hopper 8ec6a68d98 (maint) Pin YARD to 0.9.5
There is currently a parsing bug in YAD 0.9.6 and above
which causes errors on certain strings with '/' characters.
We'll pin to YARD 0.9.5 until the issue is resolved on YARD's
side.

See https://github.com/lsegal/yard/issues/1054.
2017-01-10 12:24:05 -08:00
Garrett Honeycutt 516b1594ba (maint) Test against specific, supported versions of Puppet 2016-11-02 14:00:41 -04:00
Will Hopper 99c01f06ab (maint) Pin beaker version to < 3.0
Beaker 3.0 was recently released, and requires ruby > 2.0.
Since strings needs to support 1.9.3 in CI, we need to pin
beaker to < 3.0.
2016-09-28 14:57:28 -07:00
Will Hopper 98a14685f4 (maint) Make GEM_SOURCE configurable in Gemfile 2016-09-16 15:15:17 -07:00
Peter Huene ea9dd0c846
(PDOC-63) Delete the old implementation.
This commit deletes the old implementation to assist in cleaner code reviews of
the upcoming reimplementation.

This commit also moves YARD to version 0.9.5 and lays down a bare bones
implementation of Puppet Strings that currently does nothing.
2016-09-15 13:54:18 -07:00
Kylo Ginsberg a9e55c7e60 (maint) Enable rubocop tests to pass again
* Pin rubocop to enable spec support for ruby < 2.0
* Add 'Enabled: false' for a number of new rubocop tests.
2016-09-01 12:53:24 -07:00
Hailee Kenney a6e145d20c (maint) Tie YARD to version 0.8.7
Prior to this commit, we were not setting a specific version of
YARD in the Gemfile. Since YARD has a lot of potential to break the
way strings works since strings relies so much on YARD internals,
we should be more deliberate about deciding to upgrade to a new
YARD version.

Once the kinks are worked out with the 0.9 release of YARD, we will
update the Gemfile again.
2016-07-12 19:25:57 +01:00
Spencer McElmurry c6de41e6b9 (QENG-3888) Remove static nodeset, use beaker-hostgenerator
This is additional work for QENG-3888 in ci-job-configs. We were using static
nodesets within specs/acceptance/nodesets before and this commit will instead use beaker-hostgenerator
to get the specified platform .yml configurations.
2016-06-20 14:13:41 -07:00
Hailee Kenney 73518f9d41 (maint) Require rspec 3
Prior to this commit, the Gemfile did not specify an rspec version
but relied on methods that were only in rspec 3. In order to prevent
failures when running with versions older than 3, tie the specs to
3.1 or greater, which is what puppet does.
2016-04-25 16:45:52 -07:00
Hailee Kenney 5d3f013d73 (maint) Don't install beaker for spec tests in travis
Prior to this commit, the beaker gem and all its dependencies were
being installed just to run spec tests. Excluding beaker when running
spec tests should make things go faster because we won't have to
install so many gems.
2016-03-22 11:23:12 -07:00
David Danzilio 0dc8d95ce4 (PDOC-28) Adding syntax higlighting. Refactoring the gemspec a bit. 2015-09-16 13:00:59 -04:00
David Danzilio aac19e67b7 (PDOC-28) Make puppet strings available as a gem 2015-09-16 13:00:00 -04:00
Hailee Kenney 917d9b6536 (maint) Remove html-matchers dependency
Prior to this commit, some of the unit tests for strings relied on
the rspec-html-matchers gem, which does not seem to get along with
rspec 3. This meant that we had to tie our tests to rspec 2 which
has become too inconvenient.

In order to remove the gem, use simple string matching instead.
Update the Gemfile so that it no longer requires the matchers and
no longer has rspec tied to 2.7.
2015-07-02 15:12:49 -07:00
Ian Kronquist ec328e082f Use different debuggers for ruby 2 and 1.9
The debugger gem does not support ruby 2.0.
The byebug gem does not support ruby < 2.0.
Conditionally specify the right gem for the right version of ruby.
2015-06-23 09:43:20 -07:00
Hailee Kenney 93e584524d (maint) Update rspec to 2.14.1 for Jenkins
Prior to this commit the Gemfile required rspec 2.14.0 which was
not available in the rubbygems mirror for Jenkins. To prevent the
spec tests from failing in Jenkins, use rspec 2.14.1 instead.
2015-02-18 09:53:41 -08:00
Hailee Kenney 0a3c37373c (maint) Update Gemfile to use rspec 2.14.0
Prior to this commit, the Gemfile for strings did not specify which
version of rspec to use. When it started using rspec 3, the tests
that relied upon the rspec-html-matchers gem began to fail, likely
because that gem is not yet compatible with the new version of rspec.

Update the Gemfile so that we explicitly use an older version of
rspec to prevent tests from failing. We will have to either wait
for rspec-html-matchers to catch up or find a new way of testing
the HTML output before we can update to rspec 3.
2015-02-13 15:53:22 -08:00
Hailee Kenney 1abca4705f (PDOC-8) Add rubocop to travis job
In order to ensure long term code quality, add a rubocop check to
the travis job which runs when a pull request is submitted. Do this
by adding a rake task for rubocop and setting up travis to run
both the spec rake task and the rubocop one.

Additionally, make a few changes to the .rubocop.yml file so it
will stop complaining about incorrect namespaces.
2014-10-08 14:15:29 -07:00
Hailee Kenney 999daa9c4c (PDOC-8) Fix present rubocop offenses
Since we want to run rubocop in travis when pull requests are
submitted, fix a few pre-existing rubocop offenses.
2014-10-08 11:36:21 -07:00
Hailee Kenney c7f3880d40 (PDOC-8) Add .rubocop.yml to project
Since we want to use rubocop to help maintain the code quality of
this project, add a .rubocop.yml file (borrowed from the puppet repo)
so that we can successfully enforce the things we want and disable
those we don't.
2014-10-07 16:40:51 -07:00
Hailee Kenney ee6997cd24 (PDOC-9) Add preliminary full system test
In order to help ensure that the strings module is not broken
during development, add a full system integration test which can
run at regular intervals to ensure that the module is working as
expected.

The test installs the string module as well as a test module which
contains the different types of puppet and ruby code that the strings
module can document. It then runs strings and ensures that the HTML
generated is correct.

Additionally, make some changes to the Gemfile to allow strings to
be run as a gem even if it isn't installed in the modulepath. Also
make a few changes to the unit tests to make them compatible with
the version of rspec required by Beaker.
2014-10-06 10:08:30 -07:00
Hailee Kenney 583ddcb6ad (PDOC-6) Allow for different puppet gem versions
In order to make the Gemfile compatible with the puppet strings
Jenkins job (which tests against multiple versions of puppet), update
the Gemfile to allow for for the Jenkins job to specify which version
of puppet it is testing against.
2014-09-24 14:09:31 -07:00
Hailee Kenney d5ffc4d8da (PDOC-2) Refactor tests for 4x function handler
Update the spec tests which cover the Puppet 4x function handler
to be more specific and cover different test cases. Prior to this commit,
they would simply check that the right objects had been added to the
Registry for one example. Now, they examine multiple examples and ensure that
the code objects not only exist but that the details about them are what we
would expect for each specific scenario.
2014-09-08 15:39:31 -07:00
Hailee Kenney 4c303a0258 (PDOC-2) Add tests around face and HTML generation
Add tests to ensure that the face (puppet yardoc) works from end to
end. In other words, ensure that when given a module, puppet yardoc can
successfully evaluate the .pp and .rb files present in the module and
produce the expected HTML.
2014-09-05 14:10:55 -07:00
Hailee Kenney 7728c82615 (maint) Update Gemfile to require redcarpet gem
Update the project Gemfile to include the redcarpet gem. This
particular gem is needed for Markdown processing.
2014-09-04 20:18:16 -07:00
Hailee Kenney 766fd57ebe (PDOC-5) Add spec testing for pops component
Prior to this commit there was no testing around the pops component.
Since most of the API in the pops component is private, there aren't
very many things to test, so add just a few test cases.

Additionally rename a previous spec file and make some changes to
the Gemfile.
2014-09-03 14:28:06 -07:00
Hailee Kenney 195374d2a7 (PDOC-5) Add spec testing for face component
Add spec tests for Puppet face component, mainly around error checking.
Due to the use of `puppet module list`, the behavior of the `modules`
and `server` actions are not very feasible to test via spec testing.

Additionally, make a few minor changes to the gem file, and make a
small change in `check_required_features` to reflect the fact that
this module will no longer support anything earlier than Ruby 1.9.
2014-09-03 14:27:48 -07:00
Hailee Kenney 686e60c791 Add project Gemfile
Prior to this commit there was no Gemfile for this project. Now
a Gemfile has been added so that those developing the project
can take advantage of Bundler.
2014-08-15 10:21:09 -07:00