Commit Graph

522 Commits

Author SHA1 Message Date
Jesse Scott c1dfeb9864 Merge pull request #123 from whopper/PDOC-93/search_bar_css
(PDOC-93) Ensure search bar doesn't overlap item list in nav bar
2016-11-07 16:47:20 -08:00
Will Hopper 46af92731d (PDOC-93) Ensure search bar doesn't overlap item list in nav bar 2016-11-07 14:23:45 -08:00
Jesse Scott 2e64a37327 Merge pull request #121 from whopper/PDOC-121/master/gh_pages_sha
(PDOC-121) Include tag or SHA in gh_pages task commit
2016-11-03 13:51:53 -07:00
Will Hopper 05806e7aee (PDOC-121) Include tag or SHA in gh_pages task commit
This commit updates the gh_pages task to reference the SHA
of the branch being documented in the documentation commit.

In addition, the description of each task except `update`
has been removed, as they are not useful on their own and
should be considered private. This is necessary in order
to hide the tasks from the output of `rake -T`.
2016-11-03 13:41:20 -07:00
Will Hopper 5427ee859f Merge pull request #116 from ghoneycutt/improve_testing
Test against specific, supported versions of Puppet
2016-11-02 11:10:46 -07:00
Garrett Honeycutt 3f94656398 (maint) Ignore more cops as rubocop changes quickly 2016-11-02 14:00:46 -04:00
Garrett Honeycutt 516b1594ba (maint) Test against specific, supported versions of Puppet 2016-11-02 14:00:41 -04:00
Jesse Scott b8970b4294 Merge pull request #118 from whopper/PDOC-126/master/ruby_quotes
(PDOC-126) Remove `%Q` ruby quotation syntax from parsed strings
2016-10-28 12:00:42 -07:00
Will Hopper c4705d9705 (PDOC-126) Add spec test for util module and scrub_string method 2016-10-28 11:54:48 -07:00
Will Hopper e291f8cfe9 (PDOC-126) Remove `%Q` ruby quotation syntax from parsed strings
Previously, YARD would parse ruby strings which used %Q notation
and return the syntax literally. This commit adds a new Util
module with a `scrub_string` method to check for such a string
and remove the errant %Q and %q's.
2016-10-28 11:54:34 -07:00
Jesse Scott fb10fdcd50 Merge pull request #117 from whopper/PDOC-130/readme-long-docstrings
(PDOC-130) Add example to README about multi-line tag descriptions
2016-10-26 14:08:22 -07:00
Will Hopper 57475208f8 (PDOC-130) Add example to README about multi-line tag descriptions 2016-10-25 12:55:16 -07:00
Henrik Lindberg bda361a047 Merge pull request #115 from whopper/PDOC-120/gh_pages_jekyll
(PDOC-120) Update gh_pages task to allow publishing of _index.html
2016-10-13 21:20:35 +02:00
Will Hopper 6e3c973868 (PDOC-120) Update gh_pages task to allow publishing of _index.html
Previously, due to Jekyll's default rule of not allowing files beginning
with an '_' to be published, the gh_pages rake task led to broken links.
This commit adds a step to the task which adds a _config.yml file to the
`doc` directory of the gh-pages branch which explicitly allows the file
to be published.
2016-10-13 12:12:13 -07:00
Henrik Lindberg 03d89c55b5 Merge pull request #114 from whopper/PDOC-128/readme/examples
(PDOC-128) Add explanation of @example tag usage in README
2016-10-13 01:53:08 +02:00
Will Hopper 89658718c8 (PDOC-128) Add explanation of @example tag usage in README 2016-10-12 15:00:35 -07:00
Peter Huene d057028975 Merge pull request #113 from whopper/maint/fix_line_num
(maint) Update line number in fixture to fix specs
2016-10-11 16:56:58 -07:00
Will Hopper be0e93e3d6 (maint) Update line number in fixture to fix specs 2016-10-11 16:49:36 -07:00
Peter Huene 4f3f1e639e Merge pull request #111 from whopper/PDOC-95/master/multiple_defaultfor
(PDOC-95) Properly group and display multiple provider `defaultfor`s
2016-10-11 15:33:39 -07:00
Peter Huene 8e911af5a9 Merge pull request #112 from whopper/PDOC-127/master/scrub-feature-docstrings
(PDOC-127) Strip whitespace from type feature docstrings
2016-10-11 15:32:33 -07:00
Will Hopper d0f1fb7174 (PDOC-127) Strip whitespace from type feature docstrings 2016-10-11 14:48:02 -07:00
Will Hopper a5a3d6b48c (PDOC-95) Properly group and display multiple provider `defaultfor`s
Prior to this commit, strings did not properly handle providers
which had multiple related `defaultfor`s. In code, these are written
as comma-separated constraints. This commit updates strings' puppet
provider handler, as well as the template which generates HTML for
`defaultfor` statements.

Note that it was necessary to make a breaking change to the JSON
schema to accomodate multiple AND'ed defaults. Previously, provider
defaults were contained in a single key-value map. Now, they are
contained in an array of key-value lists, which allows multiple
constraints to be associated with each other.
2016-10-11 13:57:00 -07:00
Peter Huene d9c974aa99 Merge pull request #110 from whopper/PDOC-122/3x_newfunction
(PDOC-122) Properly parse `newfunction` calls with newlines
2016-10-10 16:32:11 -07:00
Will Hopper ca98890cdd (PDOC-122) Properly parse `newfunction` calls with newlines
When `newfunction` is separated from the Puppet::Parser::Functions module name by a
newline, YARD ignores the namespace and uses `newfunction` as the source of the
first statement.

Prior to this commit, strings didn't recognize this case, and 3.x functions written
in this way were not parsed as functions. This commit updates the ruby function handler
to identify and properly parse 3.x functions that include a newline between the
Puppet::Parser::Function namespace and the newfunction method call.
2016-10-10 15:27:23 -07:00
Peter Huene 7df4f9e87c Merge pull request #108 from whopper/PDOC-118/ruby_version_req
(PDOC-119) Add required ruby version to gemspec
2016-10-07 13:58:22 -07:00
Will Hopper ca6f51daff (PDOC-108) Add link to 0.99.0 Jira filter in CHANGELOG 2016-10-07 13:48:55 -07:00
Peter Huene eeb5479af4 Merge pull request #109 from whopper/PDOC-108/version_changelog_bump
(PDOC-108) Update CHANGELOG and gemspec for 0.99.0 release
2016-10-07 13:30:24 -07:00
Will Hopper 72d849f68f (PDOC-108) Update CHANGELOG and gemspec for 0.99.0 release 2016-10-07 13:23:04 -07:00
Will Hopper aef17296fa (PDOC-119) Add required ruby version to gemspec
Strings is tested and supported for ruby 1.9.3 and above, so
the gemspec should reflect that.
2016-10-06 16:23:52 -07:00
Henrik Lindberg 7c475a5095 Merge pull request #105 from whopper/maint/code_coverage
(PDOC-88) Add additional spec and acceptance tests
2016-10-03 13:53:05 +02:00
Henrik Lindberg f1c7ad39ae Merge pull request #106 from whopper/PDOC-106/json-tests
(PDOC-106) Add acceptance tests for --emit-json options
2016-10-01 15:05:42 +02:00
Will Hopper c5e3d488da (PDOC-106) Add acceptance test for --emit-json CLI options 2016-09-30 16:35:48 -07:00
Will Hopper 3b66f5888f (maint) Refactor `generate` test to use acceptance helper method 2016-09-30 16:35:42 -07:00
Will Hopper 132d39066c (maint) Add acceptance libdir and Util helper module 2016-09-30 16:35:32 -07:00
Will Hopper 3af15ce4f1 (PDOC-88) Add tests for types and providers into acceptance 2016-09-30 15:08:19 -07:00
Will Hopper beb79d3a63 (PDOC-88) Add acceptance test for puppet functions 2016-09-30 13:39:09 -07:00
Will Hopper ef6db6df41 (PDOC-88) Add additional spec tests to increase code coverage 2016-09-29 14:48:07 -07:00
Jesse Scott f72b7995fe Merge pull request #104 from whopper/maint/beaker_version_pin
(maint) Pin beaker version to < 3.0
2016-09-28 15:02:11 -07: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
Henrik Lindberg 5450fc041a Merge pull request #103 from whopper/PDOC-80/remove_puppet_dependency
(PDOC-80) Remove runtime dependency on puppet
2016-09-28 20:58:03 +02:00
Will Hopper ee4f11968a (PDOC-80) Remove runtime dependency on puppet
The runtime dependency on puppet presents problems when
puppet is not installed on the system as a gem, as is the
case in PE installations. Because the dependency will only be
satisfied by a gem, strings currently cannot be installed in
PE 3.8. This had to be worked around in newer PE versions with
a fake gemspec file.

Another issue is that installing strings with an older
version of puppet will force an upgrade to the newest version of
puppet via the gem.

This commit replaces the runtime dependency on puppet with a
requirement which will be present on the gem homepage on
rubygems.org. Requirements are meant to list external requirements
needed for the gem to work, which is correct for puppet as it can be
present via a different type of package.
2016-09-28 11:35:00 -07:00
Will Hopper a44ec44708 Merge pull request #102 from peterhuene/spec-fixes
(PDOC-63) Restore acceptance test to the spec directory.
2016-09-16 15:45:58 -07:00
Peter Huene e5577e199c
(PDOC-63) Restore acceptance test to the spec directory.
Previously the acceptance test was implemented under the `spec` directory and
was moved out to a top level `acceptance` directory.

This broke the expected location for the node configuration files.

This commit puts the acceptance test back where it was previously.

Also fixes a failure in the test now that Markdown is the default markup
language used.
2016-09-16 15:42:00 -07:00
Jesse Scott 0b682d5710 Merge pull request #101 from whopper/maint/gem_source
(maint) Make GEM_SOURCE configurable in Gemfile
2016-09-16 15:19:03 -07:00
Will Hopper 98a14685f4 (maint) Make GEM_SOURCE configurable in Gemfile 2016-09-16 15:15:17 -07:00
Will Hopper ee0cc0e5a4 Merge pull request #100 from peterhuene/spec-fixes
(PDOC-63) Fix specs for Puppet versions less than 4.1.
2016-09-16 13:08:33 -07:00
Peter Huene 9ba9b56306
(PDOC-63) Fix specs for Puppet versions less than 4.1.
The specs test functions written in the Puppet language in a few places, but
this feature is only supported in Puppet 4.1+.  This commit prevents these
specs from running if targeting older versions of Puppet.
2016-09-16 12:16:35 -07:00
Will Hopper ef651fb33a Merge pull request #99 from peterhuene/readme
(maint) Minor fixes to README.
2016-09-16 10:38:10 -07:00
Peter Huene e396000f3d
(maint) Minor fixes to README.
Some minor fixes to the README that need correction following the recent
refactoring commit.
2016-09-16 10:32:43 -07:00
Will Hopper 7ae8e74ec5 Merge pull request #98 from peterhuene/rewrite
(PDOC-63) Code refactoring, fix up, and lots of new functionality.
2016-09-16 09:57:10 -07:00