summaryrefslogtreecommitdiff
path: root/spec/unit/formatters
Commit message (Collapse)AuthorAgeFilesLines
* checkpointlcg/chef-sugarLamont Granquist2019-09-051-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/MutableConstantLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/LeadingCommentSpaceLamont Granquist2018-07-025-5/+5
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* clean up whitespace againLamont Granquist2018-07-022-9/+9
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/IndentHeredocLamont Granquist2018-07-022-58/+58
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-4/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Feed the Rubocop.Noah Kantrowitz2018-04-261-6/+6
| | | | | | Some day I will remember which is which on string styles. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Allow specifying `ignore_failure :quiet` to disable the error spew.Noah Kantrowitz2018-04-261-5/+34
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Chefstyle fixes.Noah Kantrowitz2017-04-031-3/+3
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Expand the system info displayed on error to give us some more data to work ↵Noah Kantrowitz2017-03-311-7/+52
| | | | | | with when helping users. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-171-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Log platform in pretty error outputcd/log-platformJordan Running2016-03-181-0/+96
|
* Enable progress output to be configuredtm/remote_file_download_progressThom May2016-03-041-0/+14
| | | | Add tests around progress output and tidy up
* autofixing whitespace copsLamont Granquist2016-02-058-23/+13
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* auto-fixing some easy copschefstyle/fixesLamont Granquist2016-02-031-1/+1
| | | | | | | | | | | | | 3 Performance/CaseWhenSplat: Place when conditions with a splat at the end of the when branches. 1 Style/ElseAlignment: Align else with if. 1 Style/EvenOdd: Replace with Fixnum#even?. 1 Style/MethodDefParentheses: Use def with parentheses when there are parameters. 3 Style/PercentQLiterals: Do not use %Q unless interpolation is needed. Use %q. 3 Style/SpaceAfterColon: Space missing after colon. 2 Style/SpaceAfterMethodName: Do not put a space between a method name and the opening parenthesis. 2 Style/Tab: Tab detected. 1 Style/TrailingUnderscoreVariable: Do not use trailing _s in parallel assignment. 1 Style/UnneededCapitalW: Do not use %W unless interpolation is needed. If not, use %w.
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-028-8/+8
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-027-7/+7
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-0210-11/+11
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* explicit specs for EOFErrorslcg/better-eof-errorsLamont Granquist2016-01-261-3/+26
|
* Use double quotes by defaultThom May2016-01-1410-13/+13
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-133-7/+7
| | | | chefstyle -a fixed 1044 occurrances
* Remove Timecop dependencyJoel Handwell2015-09-021-28/+19
|
* Keep elapsed_time and add pretty_elapsed_timeJoel Handwell2015-09-021-6/+9
|
* Refactor to reduce duplicated instancializationJoel Handwell2015-09-021-17/+14
|
* Add unit tests for elapsed_timeJoel Handwell2015-09-021-0/+35
|
* Add additional helpful section for frozen objectsMartin Smith2015-08-061-0/+26
| | | | | | Augument runtime errors with additional information that explains why an object might be frozen, and how frozen resource properties are a good thing. Fixes #3734, for [accepted RFC 55](https://github.com/chef/chef-rfc/pull/135).
* Add a test for the new output.Noah Kantrowitz2015-07-311-0/+6
|
* Added versioned Chef Object API support code and repaired Chef::User.create.tylercloke2015-06-051-10/+12
| | | | Also added Chef::User.create V1 API support. Chef::User.create will attempt to use V1 of the server API, and if it fails, it will fall back to V0.
* Display policy name and ID during the chef rundanielsdeleo2015-05-221-0/+46
|
* Show cookbook trace when available regardless of exception typedanielsdeleo2015-05-201-0/+16
|
* Add regression test for failures not originating from cookbook codedanielsdeleo2015-05-201-0/+33
|
* Modernize compile error inspector specdanielsdeleo2015-05-201-113/+101
|
* Escape string inside regexJay Mundrawala2015-05-081-0/+7
|
* Nice error handling for unsupported API version in formatters/*.rb.tylercloke2015-05-041-0/+75
|
* typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-081-4/+4
|
* Update to RSpec 3.Claire McQuin2014-10-295-43/+43
|
* Prevent indentation from being set to negative numbersLamont Granquist2014-07-311-0/+48
| | | | | | | | If we don't defensively program here, the result is terrible. All that gets raised is "negative argument" from deep within the formatter and from then on the formatter is broken. It will continue to raise errors from events called from inside the Chef::Client exception handler and you're gonna have a bad time.
* Make indentable print() function more intelligibleJohn Keiser2014-05-025-10/+10
|
* Implement required interface for Recipe DSL in Providerdanielsdeleo2014-02-191-1/+4
|
* fix should_not raise_error(SpecificException)Lamont Granquist2014-01-291-1/+1
|
* s/stub!/stub/gLamont Granquist2014-01-295-18/+18
| | | | fix deprecation warnings
* Normalize whitespace on all filesSeth Vargo2013-09-267-18/+18
|
* Handle new 412 depsolver errors without any cookbook information.sersut2013-06-191-2/+38
|
* Make sure that windows line endings are protected during template rendering.sersut2013-05-301-2/+3
|
* Merge branch '10-stable' into integrate-chef-10-18-0danielsdeleo2013-01-171-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitattributes chef-expander/Rakefile chef-expander/lib/chef/expander/version.rb chef-server-api/Rakefile chef-server-api/chef-server-api.gemspec chef-server-api/lib/chef-server-api/version.rb chef-server-webui/Rakefile chef-server-webui/chef-server-webui.gemspec chef-server-webui/lib/chef-server-webui/version.rb chef-server/Rakefile chef-server/lib/chef-server/version.rb chef-solr/lib/chef/solr/version.rb chef.gemspec chef/Rakefile chef/spec/support/platform_helpers.rb chef/spec/support/shared/functional/file_resource.rb chef/spec/unit/api_client_spec.rb chef/spec/unit/provider/directory_spec.rb ci/jenkins_run_tests.bat ci/jenkins_run_tests.sh distro/common/html/chef-client.8.html distro/common/html/chef-expander.8.html distro/common/html/chef-expanderctl.8.html distro/common/html/chef-server-webui.8.html distro/common/html/chef-server.8.html distro/common/html/chef-shell.1.html distro/common/html/chef-solo.8.html distro/common/html/chef-solr.8.html distro/common/html/knife-bootstrap.1.html distro/common/html/knife-client.1.html distro/common/html/knife-configure.1.html distro/common/html/knife-cookbook-site.1.html distro/common/html/knife-cookbook.1.html distro/common/html/knife-data-bag.1.html distro/common/html/knife-environment.1.html distro/common/html/knife-exec.1.html distro/common/html/knife-index.1.html distro/common/html/knife-node.1.html distro/common/html/knife-role.1.html distro/common/html/knife-search.1.html distro/common/html/knife-ssh.1.html distro/common/html/knife-status.1.html distro/common/html/knife-tag.1.html distro/common/html/knife.1.html distro/common/man/man1/chef-shell.1 distro/common/man/man1/knife-bootstrap.1 distro/common/man/man1/knife-client.1 distro/common/man/man1/knife-configure.1 distro/common/man/man1/knife-cookbook-site.1 distro/common/man/man1/knife-cookbook.1 distro/common/man/man1/knife-data-bag.1 distro/common/man/man1/knife-environment.1 distro/common/man/man1/knife-exec.1 distro/common/man/man1/knife-index.1 distro/common/man/man1/knife-node.1 distro/common/man/man1/knife-role.1 distro/common/man/man1/knife-search.1 distro/common/man/man1/knife-ssh.1 distro/common/man/man1/knife-status.1 distro/common/man/man1/knife-tag.1 distro/common/man/man1/knife.1 distro/common/man/man8/chef-client.8 distro/common/man/man8/chef-expander.8 distro/common/man/man8/chef-expanderctl.8 distro/common/man/man8/chef-server-webui.8 distro/common/man/man8/chef-server.8 distro/common/man/man8/chef-solo.8 distro/common/man/man8/chef-solr.8 lib/chef/api_client.rb lib/chef/rest.rb lib/chef/version.rb spec/functional/knife/ssh_spec.rb spec/functional/resource/cookbook_file_spec.rb spec/spec_helper.rb spec/stress/win32/security_spec.rb spec/support/shared/functional/securable_resource.rb spec/unit/config_spec.rb spec/unit/knife/ssh_spec.rb
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-307-0/+647
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!