summaryrefslogtreecommitdiff
path: root/lib/chef/data_bag_item.rb
Commit message (Collapse)AuthorAgeFilesLines
* replace some instances of to_hash with to_hlcg/to-h-cleanupLamont Granquist2018-09-261-3/+5
| | | | | | | | | | | to_hash on a lot of these objects should go away, but even eliminating all our calls to to_hash on these objects internally is difficult. (e.g. converting the knife ui code to call #to_h means we wind up calling nil#to_h which "helpfully" becomes '{}' which is hilarious and i don't know why someone thought that was a good idea). Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/PreferredHashMethodsLamont Granquist2018-07-021-1/+1
| | | | | | | absolutely hard requirement on the fixes that went into chef-config 2.2.11, so the floor of that gem is bumped up. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* prepping for rubocop 0.52.1lcg/rubocop-0.52.1Lamont Granquist2018-01-171-7/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Ensure DataBagItems are a Mashtm/mash_up_dem_dbiThom May2017-04-051-1/+2
| | | | | closes: #5686 Signed-off-by: Thom May <thom@chef.io>
* Kill JSON auto inflate with firetm/remove_json_autoinflateThom May2017-03-141-6/+0
| | | | Signed-off-by: Thom May <thom@chef.io>
* fix specs: RedundantReturn, RedundantSelf, RedundantBeginLamont Granquist2017-02-131-3/+3
| | | | | | department of redundancy department Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Structure deprecations with additional metadatatm/deprecation_with_urlThom May2016-11-161-1/+1
| | | | | | | | This adds URLs to each class of deprecation, and correctly prints and formats them for maximum user efficiency. We also provide the URL to the data collector for Visibility to ingest. Signed-off-by: Thom May <thom@chef.io>
* Ensure that solo specific code is run at the proper timeThom May2016-05-161-1/+1
| | | | | | ie, only when we're in OG mode and not in local mode. Signed-off-by: Thom May <thom@chef.io>
* Data bag item hash can have name keysalam/databag-fixSalim Alam2016-03-031-1/+0
|
* Clearer exception for loading non-existent data bag items in solo mode.Noah Kantrowitz2016-03-021-0/+1
|
* Fix a bug that was causing DataBagItem.to_hash to mutate the data bag itemjjh/databag_item_to_hash_non_mutatingJosh Hudson2016-02-261-2/+2
|
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-191-1/+1
| | | | no enforced trailing comma on arguments...
* autofixing whitespace copsLamont Granquist2016-02-051-7/+7
| | | | | | | | | | | | | | | | | | | | | | 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-3/+3
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/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"
* add deprecation warningsThom May2016-01-181-0/+1
|
* Use double quotes by defaultThom May2016-01-141-12/+12
| | | | | | | 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-131-2/+2
| | | | chefstyle -a fixed 1044 occurrances
* more rubocop fixeslcg/more-rubocop-lintLamont Granquist2016-01-121-2/+2
| | | | | | | | | | | fixes: Lint/UnreachableCode Lint/NonLocalExitFromIterator Lint/LiteralInCondition Lint/EmptyEnsure Lint/DefEndAlignment Lint/CircularArgumentReference
* Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-17/+19
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* Use why-run vs. why_run or whyrunTim Smith2015-10-181-1/+1
|
* allow dep injecting chef_server_rest into objectsLamont Granquist2015-02-111-2/+5
|
* Ruby 2.2 Issue:: data_bag_item.rb:161: warning: circular argument reference ↵Jan2014-12-281-1/+1
| | | | | | | - data_bag This fixes a warning in Ruby 2.2 about circular argument references in data_bag_item.rb See this ruby issue for more details: https://bugs.ruby-lang.org/issues/10314
* remove JSON gem usageLamont Granquist2014-08-111-7/+5
| | | | | | | | | 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.
* Revert "remove #to_json Monkeytpatching"Lamont Granquist2014-08-091-5/+7
| | | | This reverts commit adbb0fa85cc45b93ba91dc3019094b312cafb35c.
* remove #to_json MonkeypatchingLamont Granquist2014-08-091-7/+5
|
* allow dots in data bag names. Chef server already seems to accept these ↵Ilan Rabinovitch2013-12-201-1/+1
| | | | when making direct API calls.
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+214
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!