Commit Graph

320 Commits

Author SHA1 Message Date
Hailee Kenney 946cae44a0 (PDOC-70) Update rake task documentation
Prior to this commit, the rake task section of the README did not
reflect that strings:generate rake task would also create a strings.json
file. Update the README to include this detail.
2016-03-24 23:32:10 -07:00
Hailee Kenney 80e05bf6b1 Merge pull request #72 from garethr/output-json-from-rake-task
(PDOC-70) Always generate the JSON doc when running the rake task
2016-03-24 23:10:29 -07:00
Henrik Lindberg a3227b8b1f Merge pull request #77 from HAIL9000/issue/master/PDOC-75-strings_fails_with_puppet_4.4.0
(PDOC-75) Work with both versions of 'interpret_any'
2016-03-25 00:32:16 +01:00
Hailee Kenney 91b46be4ea (maint) Remove deprecated rspec method
Prior to this commit, strings relied on failure_message_for_should
which produced a deprecation warning. Use the suggested alternative
'failure_message' instead to removed the deprecation warning and
ensure the tests are up to date.
2016-03-24 16:01:21 -07:00
Hailee Kenney e541e7c027 (PDOC-75) Work with both versions of 'interpret_any'
Prior to this commit, strings would fail with puppet 4.4.0 and
newer. This was because strings was making use of a method that was
marked API private and thus subject to change. The method was changed
in 4.4.0 release of puppet to take two variables, meaning that strings
much adjust how it calls the method based on the version of puppet
it's running with.
2016-03-24 16:01:10 -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
Hailee Kenney f6584bd8eb (maint) Update module version in metadata
Update the module metadata to reflect that this is the 0.4.0 release
of strings.
2016-03-16 15:07:21 -07:00
Hailee Kenney 3e56169d5e (PDOC-74) Update gemspec not to rely on metadata
Prior to this commit, the gemspec for strings relied on the module
metadata.json. Since we would ultimately like to stop releasing
strings as a module entirely, update the gemspec not to rely on the
module metadata so it is not broken when we ultimately remove it.
2016-03-16 15:07:15 -07:00
Hailee Kenney 0a4233614d (PDOC-74) Update README to reflect gem release
Since 0.4.0 will be the last version of strings released as a puppet
module, update the README to reflect the fact that this method of
distribution is deprecated and add a description of how to install
the Ruby gem version of strings.
2016-03-15 23:28:07 -07:00
Gareth Rushgrove 9160e6f970 (PDOC-70) Always generate the JSON doc when running the rake task
I'm super enthusiastic about the potential for folks to build things on
top of the JSON output, we've had several related conversations at
Config Management Camp and on puppet-dev recently. I think this is a
sane default, and calling the file strings.json seems a nice
reinforcement.
2016-03-13 12:15:03 +00:00
Hailee Kenney 678ba735e8 Merge pull request #71 from garethr/rake-file-fix
Fix issue running strings:generate without a yardopts file
2016-02-08 22:00:29 -08:00
Gareth Rushgrove 8bbbd7f698 Fix issue running strings:generate without a yardopts file
Without a .yardopts options array.pop is nil, and everything explodes
with an exception. Applying this patch allowed for running rake
strings:generate cleanly.

Note that this did not affect strings:serve.
2016-02-03 13:56:54 +01:00
Hailee Kenney 3a8067bad5 Merge pull request #70 from garethr/rake-task-documentation
(MAINT) Correct the link and task names for the Rake task
2015-12-17 11:27:29 -08:00
Gareth Rushgrove 31e154b83c (MAINT) Correct the link and task names for the Rake task 2015-12-16 10:52:01 +00:00
Henrik Lindberg 3c70b5d3d2 Merge pull request #69 from HAIL9000/issue/master/PDOC-58_strings_server_throws_exception
(maint) Fix ruby namespacing issue
2015-12-12 01:14:54 -08:00
Hailee Kenney 9e32817380 (maint) Fix ruby namespacing issue
Prior to this commit, strings would raise an error when the server
command was run against a module directory that contained the strings
module. This was due to the fact that we were trying to reference
the YARD namespace but our own namespace was being prepending to the
front, making Ruby think the two class were the same.

In order to stop this from happening, prepend a :: to the front of the
YARD version of the class to tell Ruby that we mean the YARD namespace.
2015-12-08 12:00:58 -08:00
Hailee Kenney eaddebbdc9 Merge pull request #68 from roidelapluie/accident
(maint) Delete .rb file that was probably commited by accident
2015-11-03 10:04:03 -08:00
Julien Pivotto a2e622d2aa (maint) Delete .rb file that was probably commited by accident
Extension of the file is .rb but should be .erb, so I guess thir file
was committed by accident.
2015-10-26 16:28:01 +01:00
Hailee Kenney 26a9d73ef2 Merge pull request #67 from roidelapluie/spdx
metadata.json: Use SPDX standardized short identifier for license
2015-10-20 08:35:22 -07:00
Julien Pivotto 7ccd8b2e92 metadata.json: Use SPDX standardized short identifier for license
This commit changes the metadata.json to use the
SPDX licence short identifier in the metadata.json.

SPDX is an effort from the Linux foundation to easily
parse and identify open-source licenses. Some tools
in the Puppet Ecosystem relies on those short
identifiers, like the metadata-json-lint project.

- https://spdx.org/licenses
- https://github.com/puppet-community/metadata-json-lint
2015-10-20 10:52:30 +02:00
Hailee Kenney 2deaee8431 Merge pull request #66 from HAIL9000/maint/master/update_readme
(maint) Make some small updates to the README
2015-10-19 13:04:36 -07:00
Hailee Kenney 0deed02353 (maint) Make some small updates to the README
Update the README so that it is accurate
2015-10-19 11:53:52 -07:00
Hailee Kenney 93f0dd923b Merge pull request #55 from iankronquist/emit-json-pdoc-23
(PDOC-23) Emit json
2015-10-19 08:07:21 -07:00
Ian Kronquist 86414df8de (PDOC-23) Polish JSON output command line behavior
Fix path where json is saved.
Suppress statistics when emitting json to stdout.
2015-10-16 15:50:04 -07:00
Ian Kronquist 0e1dbb17be (PDOC-23) Document JSON structure format 2015-10-16 15:50:04 -07:00
Ian Kronquist a9a387a05a (PDOC-23) Define JSON Structure for Puppet code 2015-10-16 15:50:04 -07:00
Ian Kronquist 0b0d3c9587 (PDOC-23) Add JSON Registry back end 2015-10-16 15:49:58 -07:00
Hailee Kenney d033183002 Merge pull request #54 from danzilio/gem
(PDOC-28) Make puppet strings available as a gem
2015-10-07 11:00:43 -07:00
Hailee Kenney 5206c8c62e Merge pull request #65 from puppetlabs/metadata_updates
make metadata match pmt output
2015-09-22 16:12:40 -07:00
Morgan Haskel 1078b72119 make metadata match pmt output 2015-09-22 16:11:16 -07:00
Morgan Haskel 336d8f2b26 Merge pull request #64 from HAIL9000/maint/master/prep_for_0.3.1
(maint) Update CHANGELOG and metadata for 0.3.1
2015-09-22 16:05:37 -07:00
Hailee Kenney 7fbb64b912 (maint) Update CHANGELOG and metadata for 0.3.1 2015-09-22 16:03:12 -07:00
Hailee Kenney d965d06bca Merge pull request #61 from iankronquist/same-name-type-and-provider
Same name type and provider
2015-09-21 16:47:34 -07:00
Hailee Kenney 4e1e8cf36d Merge pull request #62 from iankronquist/type-warnings-fixes
Last PR for the Summer
2015-09-21 16:46:28 -07:00
David Schmitt a450bea5c4 Merge pull request #63 from puppetlabs/0.3.0
Release Prep 0.3.0
2015-09-21 14:53:42 +01:00
Jonathan Tripathy dcf22ee93b Release Prep 0.3.0 2015-09-21 14:29:47 +01:00
JT (Jonny) 5aac81981f Merge pull request #58 from iankronquist/0.3.0-changelog
(maint) Update changelog for 0.3.0 release
2015-09-21 14:25:00 +01:00
Ian Kronquist 97acd1b0b3 (PDOC-57) Get the content of the string
We used to extract the string from the source code. We should have extracted
the content of the string. This is the difference between `"String"` and
`String`.
2015-09-18 16:17:29 -07:00
Ian Kronquist 3151e4e1b1 (PDOC-56) Fix type warning for defined types
Puppet defined types would print the string representation of the ruby object,
and not representation you would see in puppet. This is the difference between
`Puppet::Pops::Types::PStringType` and `String`.
2015-09-18 16:17:02 -07:00
David Danzilio 4845bc2a0d (PDOC-28) Naming this gem puppet-strings instead of puppetlabs-strings. 2015-09-18 07:32:43 -04:00
Ian Kronquist 5dd65d3b5e (maint) Add newline for readability 2015-09-16 17:25:49 -07:00
Ian Kronquist c8eec8ded3 (maint) Fix typo in README 2015-09-16 16:49:25 -07:00
Ian Kronquist 7814eeaf3c (PDOC-54) Providers & Types w/same name conflict
If a provider and a type with the same name conflict strings will overwrite the
documentation of one of them with the other. That is if both a provider and a
type are named apt_key, strings will write the type to doc/apt_key.html and the
provider to doc/apt_key.html. The fix is to write the provider to
doc/apt_key_provider.html and the type to doc/apt_key_type.html.
2015-09-16 16:47:59 -07:00
Ian Kronquist 8aab1ea0a3 (maint) Remove debug statement on unusual path 2015-09-16 14:43:27 -07:00
David Danzilio 0431bc7735 (PDOC-28) Porting changes introduced in #46 2015-09-16 13:01:18 -04:00
David Danzilio 023c95ff62 (PDOC-28) Adding email to gemspec 2015-09-16 13:01:15 -04:00
David Danzilio 3974d20612 (PDOC-28) Being picky about spacing 2015-09-16 13:01:10 -04: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 3c885cf550 Merge pull request #59 from iankronquist/puppet-type-list-linebreak-pdoc-35
(PDOC-35) Format generated html properly
2015-09-15 15:39:36 -07:00