summaryrefslogtreecommitdiff
path: root/lib/chef/json_compat.rb
Commit message (Collapse)AuthorAgeFilesLines
* Kill JSON auto inflate with firetm/remove_json_autoinflateThom May2017-03-141-93/+1
| | | | Signed-off-by: Thom May <thom@chef.io>
* fix specs: RedundantReturn, RedundantSelf, RedundantBeginLamont Granquist2017-02-131-10/+6
| | | | | | department of redundancy department Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* chefstyle Style/AndOr fixesLamont Granquist2016-03-141-1/+1
| | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* autofixing whitespace copsLamont Granquist2016-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | 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-021-1/+1
| | | 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-021-1/+1
| | | 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"
* Use double quotes by defaultThom May2016-01-141-3/+3
| | | | | | | 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.
* Added run list expansion json conversion. Creates a json tree from the run ↵kyleen/addExpandedRunListKyleen MacGugan2015-10-211-0/+1
| | | | | | | | | | list expansion trace. Added event to report expanded run list Updated json conversion to use chef compat json. Remove RunListExpansion from JsonCompat
* Chef-12 RC Provider ResolverLamont Granquist2014-10-241-1/+1
| | | | | makes resource and provider class resolution more dynamic. begins deprecation of Chef::Platform static mapping.
* Refactoring ResourceCollection interface to be backwards compatiable, all ↵tyler-ball2014-10-161-0/+6
| | | | specs continue to pass, removing ResourceSet and ResourceList from consumer knowledge
* Adding back `require 'json'` to prevent breaking consumers who currently use ↵tball/yajl-replace-jsontyler-ball2014-10-081-0/+2
| | | | Hash.to_json in their cookbooks
* Removing old .to_json monkeypatching for all objectstyler-ball2014-10-071-2/+0
|
* Trying to eradicate all traces of the JSON gem from Cheftyler-ball2014-10-071-1/+1
|
* Fix error class typo, bump ffi-yajl requirement to pull in bugfixesdanielsdeleo2014-08-121-1/+1
|
* remove JSON gem usageLamont Granquist2014-08-111-6/+23
| | | | | | | | | should fully convert to using ffi-yajl there are still issues with JSON gem monkeypatching interacting with chef-zero and the spec tests so we keep the requires here for the json gem and the ffi_yajl/json_gem here. when ohai and chef-zero are fixed, we an just require ffi_yajl.
* Fix expected format of JSON errors in integration testsdanielsdeleo2014-08-101-0/+1
| | | | | | | | The format was previously not stable because chef-zero (or other test code) would `require 'json'` and undo ffi-yajl's monkey patches to the JSON gem. We would probably be better off if we can get out of the business of monkeypatching JSON or attempting to provide compatibility at all, in which case this commit could be reverted.
* Revert "remove #to_json Monkeytpatching"Lamont Granquist2014-08-091-6/+4
| | | | This reverts commit adbb0fa85cc45b93ba91dc3019094b312cafb35c.
* remove #to_json MonkeypatchingLamont Granquist2014-08-091-4/+6
|
* remove another commentLamont Granquist2014-06-241-2/+0
|
* replace yajl and json gem with ffi-yajlLamont Granquist2014-06-231-15/+6
|
* CHEF-3895: Add Chef::Checksum to JSON class hackBryan McLellan2013-02-261-0/+3
|
* [CHEF-3863] improve error compat with old impl.danielsdeleo2013-02-121-3/+17
|
* rdoc json compat methodsdanielsdeleo2013-02-111-0/+7
|
* allow lookup of resources without symbol creationdanielsdeleo2013-02-111-2/+2
|
* add fallback deserialization to hash for Resourcesdanielsdeleo2013-02-111-0/+2
|
* mutate the incoming hashdanielsdeleo2013-02-111-3/+2
| | | | | I'd rather not, but this object should be local to the caller at this point so it seems less bad than creating a bunch more objects
* Use consts for class stringsdanielsdeleo2013-02-111-10/+22
|
* Add json_class support w/o JSON for most typesdanielsdeleo2013-02-111-1/+61
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+53
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!