Skip to content

Latest commit

 

History

History
212 lines (134 loc) · 15.1 KB

CHANGELOG.md

File metadata and controls

212 lines (134 loc) · 15.1 KB

Next

Features

Fixes

  • Your contribution here.

0.7.1 (2018-01-30)

Features

0.7.0 (2018-01-25)

Features

Fixes

0.6.1 (2017-01-09)

Features

  • #253: Adds ruby 2.4.0 support, updates dependencies - @LeFnord.

Fixes

0.6.0 (2016-11-20)

Features

  • #247: Updates dependencies; refactores to make specs green - @LeFnord.

Fixes

0.5.2 (2016-11-14)

Features

  • #226: Added fetch from opts_hash - @alanjcfs.
  • #232, #213: Added #kind_of? and #is_a? to OutputBuilder to get an exact class of an output object - @avyy.
  • #234, #233: Added ruby version checking in Gemfile to install needed gems versions for supporting old rubies too - @avyy.
  • #237: Added Danger, PR linter - @dblock.

Fixes

  • #215: #delegate_attribute no longer delegates to methods included with Kernel - @maltoe.
  • #219: Double pass options in serializable_hash - @sbatykov.
  • #231, #215: Allow delegate_attribute for derived entity - @sbatykov.

0.5.1 (2016-4-4)

Features

  • #203: Grape::Entity::Exposure::NestingExposure::NestedExposures.delete_if always returns exposures - @rngtng.
  • #204, #138: Added ability to merge fields into hashes/root (:merge option for .expose) - @avyy.

Fixes

  • #202: Reset @using_class memoization on .setup - @rngtng.

0.5.0 (2015-12-07)

Features

Fixes

0.4.8 (2015-08-10)

Features

0.4.7 (2015-08-03)

Features

0.4.6 (2015-07-27)

Features

  • #114: Added 'only' option that selects which attributes should be returned - @estevaoam.
  • #115: Allowing 'root' to be inherited from parent to child entities - @guidoprincess.
  • #121: Sublcassed Entity#documentation properly handles unexposed params - @dan-corneanu.
  • #134: Subclasses no longer affected in all cases by unexpose in parent - @etehtsea.
  • #135: Added except option - @dan-corneanu.
  • #136: Allow for strings in only and except options - @bswinnerton.
  • #147, #140: Expose safe attributes as nil if they cannot be evaluated - @marshall-lee.
  • #147: Remove catching of NoMethodError because it can occur deep inside in a method call so this exception does not mean that attribute not exist - @marshall-lee.
  • #147: The valid_exposures method was removed - @marshall-lee.

Fixes

0.4.5 (2015-03-10)

Features

Fixes

  • #111: Allow usage of attributes with name 'key' if Hash objects are used - @croeck.
  • #110: Safe exposure when using Hash models - @croeck.
  • #91: OpenStruct serializing - @etehtsea.

0.4.4 (2014-08-17)

Features

  • #85: Added present_collection to indicate that an Entity presents an entire Collection - @dspaeth-faber.
  • #85: Hashes can now be passed as object to be presented and the Hash keys can be referenced by expose - @dspaeth-faber.

0.4.3 (2014-06-12)

Features

Fixes

0.4.2 (2014-04-03)

Features

0.4.1 (2014-02-13)

Fixes

0.4.0 (2014-01-27)

Features

  • Ruby 1.8.x is no longer supported - @dblock.
  • #36: Enforcing Ruby style guidelines via Rubocop - @dblock.
  • #7: Added serializable option to represent - @mbleigh.
  • #18: Added safe option to expose, will not raise error for a missing attribute - @fixme.
  • #16: Added using option to expose SYMBOL BLOCK - @fahchen.
  • #24: Return documentation with as param considered - @drakula2k.
  • #27: Properly serialize hashes - @clintonb.
  • #28: Look for method on entity before calling it on the object - @MichaelXavier.
  • #33: Support proper merging of nested conditionals - @wyattisimo.
  • #43: Call procs in context of entity instance - @joelvh.
  • #47: Support nested exposures - @wyattisimo.
  • #46, #50: Added support for specifying the presenter class in using in string format - @larryzhao.
  • #51: Raise ArgumentError if an unknown option is used with expose - @aj0strow.
  • #51: Alias :with to :using, consistently with the Grape api endpoints - @aj0strow.

0.3.0 (2013-03-29)

Features

  • #9: Added with_options for block-level exposure setting - @SegFaultAX.
  • The instance.entity method now optionally accepts options - @mbleigh.
  • You can pass symbols to :if and :unless to simply check for truthiness/falsiness of the specified options key - @mbleigh.

0.2.0 (2013-01-11)

Features

  • Moved the namespace back to Grape::Entity to preserve compatibility with Grape - @dblock.

0.1.0 (2013-01-11)