|
1 |
| -0.5.2 (Next) |
2 |
| -============ |
| 1 | +### 0.5.2 (Next) |
| 2 | + |
| 3 | +#### Features |
3 | 4 |
|
4 |
| -* [#215](https://github.com/ruby-grape/grape-entity/pull/217): Fix: `#delegate_attribute` no longer delegates to methods included with `Kernel` - [@maltoe](https://github.com/maltoe). |
5 |
| -* [#219](https://github.com/ruby-grape/grape-entity/pull/219): Fix: double pass options in `serializable_hash` - [@sbatykov](https://github.com/sbatykov). |
6 | 5 | * [#226](https://github.com/ruby-grape/grape-entity/pull/226): Added `fetch` from `opts_hash` - [@alanjcfs](https://github.com/alanjcfs).
|
7 | 6 | * [#232](https://github.com/ruby-grape/grape-entity/pull/232), [#213](https://github.com/ruby-grape/grape-entity/issues/213): Added `#kind_of?` and `#is_a?` to `OutputBuilder` to get an exact class of an `output` object - [@avyy](https://github.com/avyy).
|
8 | 7 | * [#234](https://github.com/ruby-grape/grape-entity/pull/234), [#233](https://github.com/ruby-grape/grape-entity/issues/233): Added ruby version checking in `Gemfile` to install needed gems versions for supporting old rubies too - [@avyy](https://github.com/avyy).
|
9 | 8 | * [#237](https://github.com/ruby-grape/grape-entity/pull/237): Added Danger, PR linter - [@dblock](https://github.com/dblock).
|
10 |
| -* [#231](https://github.com/ruby-grape/grape-entity/pull/231), [#215](https://github.com/ruby-grape/grape-entity/issues/215): Fix: allow `delegate_attribute` for derived entity - [@sbatykov](https://github.com/sbatykov). |
11 | 9 | * Your contribution here.
|
12 | 10 |
|
13 |
| -0.5.1 (2016-4-4) |
14 |
| -================ |
| 11 | +#### Fixes |
| 12 | + |
| 13 | +* [#215](https://github.com/ruby-grape/grape-entity/pull/217): `#delegate_attribute` no longer delegates to methods included with `Kernel` - [@maltoe](https://github.com/maltoe). |
| 14 | +* [#219](https://github.com/ruby-grape/grape-entity/pull/219): Double pass options in `serializable_hash` - [@sbatykov](https://github.com/sbatykov). |
| 15 | +* [#231](https://github.com/ruby-grape/grape-entity/pull/231), [#215](https://github.com/ruby-grape/grape-entity/issues/215): Allow `delegate_attribute` for derived entity - [@sbatykov](https://github.com/sbatykov). |
| 16 | +* Your contribution here. |
| 17 | + |
| 18 | +### 0.5.1 (2016-4-4) |
| 19 | + |
| 20 | +#### Features |
15 | 21 |
|
16 |
| -* [#202](https://github.com/ruby-grape/grape-entity/pull/202): Fix: Reset `@using_class` memoization on `.setup` - [@rngtng](https://github.com/rngtng). |
17 | 22 | * [#203](https://github.com/ruby-grape/grape-entity/pull/203): `Grape::Entity::Exposure::NestingExposure::NestedExposures.delete_if` always returns exposures - [@rngtng](https://github.com/rngtng).
|
18 | 23 | * [#204](https://github.com/ruby-grape/grape-entity/pull/204), [#138](https://github.com/ruby-grape/grape-entity/issues/138): Added ability to merge fields into hashes/root (`:merge` option for `.expose`) - [@avyy](https://github.com/avyy).
|
19 | 24 |
|
20 |
| -0.5.0 (2015-12-07) |
21 |
| -================== |
| 25 | +#### Fixes |
| 26 | + |
| 27 | +* [#202](https://github.com/ruby-grape/grape-entity/pull/202): Reset `@using_class` memoization on `.setup` - [@rngtng](https://github.com/rngtng). |
| 28 | + |
| 29 | +### 0.5.0 (2015-12-07) |
| 30 | + |
| 31 | +#### Features |
22 | 32 |
|
23 | 33 | * [#139](https://github.com/ruby-grape/grape-entity/pull/139): Keep a track of attribute nesting path during condition check or runtime exposure - [@calfzhou](https://github.com/calfzhou).
|
24 | 34 | * [#151](https://github.com/ruby-grape/grape-entity/pull/151): `.exposures` is removed and substituted with `.root_exposures` array - [@marshall-lee](https://github.com/marshall-lee).
|
25 | 35 | * [#151](https://github.com/ruby-grape/grape-entity/pull/151): `.nested_exposures` is removed too - [@marshall-lee](https://github.com/marshall-lee).
|
26 | 36 | * [#151](https://github.com/ruby-grape/grape-entity/pull/151): `#should_return_attribute?`, `#only_fields` and `#except_fields` are moved to other classes - [@marshall-lee](https://github.com/marshall-lee).
|
27 |
| -* [#151](https://github.com/ruby-grape/grape-entity/pull/151): Fix: double exposures with conditions does not rewrite previously defined now: [#56](https://github.com/ruby-grape/grape-entity/issues/56) - [@marshall-lee](https://github.com/marshall-lee). |
28 |
| -* [#151](https://github.com/ruby-grape/grape-entity/pull/151): Fix: nested exposures were flattened in `.documentation`: [#112](https://github.com/ruby-grape/grape-entity/issues/112) - [@marshall-lee](https://github.com/marshall-lee). |
29 |
| -* [#151](https://github.com/ruby-grape/grape-entity/pull/151): Fix: `@only_fields` and `@except_fields` memoization: [#149](https://github.com/ruby-grape/grape-entity/issues/149) - [@marshall-lee](https://github.com/marshall-lee). |
30 |
| -* [#151](https://github.com/ruby-grape/grape-entity/pull/151): Fix: `:unless` condition with `Hash` argument logic: [#150](https://github.com/ruby-grape/grape-entity/issues/150) - [@marshall-lee](https://github.com/marshall-lee). |
31 | 37 | * [#151](https://github.com/ruby-grape/grape-entity/pull/151): Nested `unexpose` now raises an exception: [#152](https://github.com/ruby-grape/grape-entity/issues/152) - [@marshall-lee](https://github.com/marshall-lee).
|
32 |
| -* [#151](https://github.com/ruby-grape/grape-entity/pull/151): Fix: `@documentation` memoization: [#153](https://github.com/ruby-grape/grape-entity/issues/153) - [@marshall-lee](https://github.com/marshall-lee). |
33 |
| -* [#151](https://github.com/ruby-grape/grape-entity/pull/151): Fix: serializing of deeply nested presenter exposures: [#155](https://github.com/ruby-grape/grape-entity/issues/155) - [@marshall-lee](https://github.com/marshall-lee). |
34 |
| -* [#151](https://github.com/ruby-grape/grape-entity/pull/151): Fix: deep projections (`:only`, `:except`) were unaware of nesting: [#156](https://github.com/ruby-grape/grape-entity/issues/156) - [@marshall-lee](https://github.com/marshall-lee). |
35 | 38 |
|
36 |
| -0.4.8 (2015-08-10) |
37 |
| -================== |
| 39 | +#### Fixes |
| 40 | + |
| 41 | +* [#151](https://github.com/ruby-grape/grape-entity/pull/151): Double exposures with conditions does not rewrite previously defined now: [#56](https://github.com/ruby-grape/grape-entity/issues/56) - [@marshall-lee](https://github.com/marshall-lee). |
| 42 | +* [#151](https://github.com/ruby-grape/grape-entity/pull/151): Nested exposures were flattened in `.documentation`: [#112](https://github.com/ruby-grape/grape-entity/issues/112) - [@marshall-lee](https://github.com/marshall-lee). |
| 43 | +* [#151](https://github.com/ruby-grape/grape-entity/pull/151): `@only_fields` and `@except_fields` memoization: [#149](https://github.com/ruby-grape/grape-entity/issues/149) - [@marshall-lee](https://github.com/marshall-lee). |
| 44 | +* [#151](https://github.com/ruby-grape/grape-entity/pull/151): `:unless` condition with `Hash` argument logic: [#150](https://github.com/ruby-grape/grape-entity/issues/150) - [@marshall-lee](https://github.com/marshall-lee). |
| 45 | +* [#151](https://github.com/ruby-grape/grape-entity/pull/151): `@documentation` memoization: [#153](https://github.com/ruby-grape/grape-entity/issues/153) - [@marshall-lee](https://github.com/marshall-lee). |
| 46 | +* [#151](https://github.com/ruby-grape/grape-entity/pull/151): Serializing of deeply nested presenter exposures: [#155](https://github.com/ruby-grape/grape-entity/issues/155) - [@marshall-lee](https://github.com/marshall-lee). |
| 47 | +* [#151](https://github.com/ruby-grape/grape-entity/pull/151): Deep projections (`:only`, `:except`) were unaware of nesting: [#156](https://github.com/ruby-grape/grape-entity/issues/156) - [@marshall-lee](https://github.com/marshall-lee). |
| 48 | + |
| 49 | +### 0.4.8 (2015-08-10) |
| 50 | + |
| 51 | +#### Features |
38 | 52 |
|
39 | 53 | * [#167](https://github.com/ruby-grape/grape-entity/pull/167), [#166](https://github.com/ruby-grape/grape-entity/issues/166): Regression with global settings (exposures, formatters) on `Grape::Entity` - [@marshall-lee](https://github.com/marshall-lee).
|
40 | 54 |
|
41 |
| -0.4.7 (2015-08-03) |
42 |
| -================== |
| 55 | +### 0.4.7 (2015-08-03) |
| 56 | + |
| 57 | +#### Features |
43 | 58 |
|
44 | 59 | * [#164](https://github.com/ruby-grape/grape-entity/pull/164): Regression: entity instance methods were exposed with `NoMethodError`: [#163](https://github.com/ruby-grape/grape-entity/issues/163) - [@marshall-lee](https://github.com/marshall-lee).
|
45 | 60 |
|
46 |
| -0.4.6 (2015-07-27) |
47 |
| -================== |
| 61 | +### 0.4.6 (2015-07-27) |
| 62 | + |
| 63 | +#### Features |
48 | 64 |
|
49 | 65 | * [#114](https://github.com/ruby-grape/grape-entity/pull/114): Added 'only' option that selects which attributes should be returned - [@estevaoam](https://github.com/estevaoam).
|
50 | 66 | * [#115](https://github.com/ruby-grape/grape-entity/pull/115): Allowing 'root' to be inherited from parent to child entities - [@guidoprincess](https://github.com/guidoprincess).
|
|
53 | 69 | * [#135](https://github.com/ruby-grape/grape-entity/pull/135): Added `except` option - [@dan-corneanu](https://github.com/dan-corneanu).
|
54 | 70 | * [#136](https://github.com/ruby-grape/grape-entity/pull/136): Allow for strings in `only` and `except` options - [@bswinnerton](https://github.com/bswinnerton).
|
55 | 71 | * [#147](https://github.com/ruby-grape/grape-entity/pull/147), [#140](https://github.com/ruby-grape/grape-entity/issues/140): Expose `safe` attributes as `nil` if they cannot be evaluated - [@marshall-lee](https://github.com/marshall-lee).
|
56 |
| -* [#147](https://github.com/ruby-grape/grape-entity/pull/147), [#142](https://github.com/ruby-grape/grape-entity/pull/142): Fix: private method values were not exposed with `safe` option - [@marshall-lee](https://github.com/marshall-lee). |
57 | 72 | * [#147](https://github.com/ruby-grape/grape-entity/pull/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](https://github.com/marshall-lee).
|
58 | 73 | * [#147](https://github.com/ruby-grape/grape-entity/pull/147): The `valid_exposures` method was removed - [@marshall-lee](https://github.com/marshall-lee).
|
59 | 74 |
|
60 |
| -0.4.5 (2015-03-10) |
61 |
| -================== |
| 75 | +#### Fixes |
| 76 | + |
| 77 | +* [#147](https://github.com/ruby-grape/grape-entity/pull/147), [#142](https://github.com/ruby-grape/grape-entity/pull/142): Private method values were not exposed with `safe` option - [@marshall-lee](https://github.com/marshall-lee). |
| 78 | + |
| 79 | +### 0.4.5 (2015-03-10) |
| 80 | + |
| 81 | +#### Features |
62 | 82 |
|
63 | 83 | * [#109](https://github.com/ruby-grape/grape-entity/pull/109): Added `unexpose` method - [@jonmchan](https://github.com/jonmchan).
|
64 | 84 | * [#98](https://github.com/ruby-grape/grape-entity/pull/98): Added nested conditionals - [@zbelzer](https://github.com/zbelzer).
|
65 | 85 | * [#105](https://github.com/ruby-grape/grape-entity/pull/105): Specify which attribute is missing in which Entity - [@jhollinger](https://github.com/jhollinger).
|
66 |
| -* [#111](https://github.com/ruby-grape/grape-entity/pull/111): Fix: allow usage of attributes with name 'key' if `Hash` objects are used - [@croeck](https://github.com/croeck). |
67 |
| -* [#110](https://github.com/ruby-grape/grape-entity/pull/110): Fix: safe exposure when using `Hash` models - [@croeck](https://github.com/croeck). |
68 |
| -* [#91](https://github.com/ruby-grape/grape-entity/pull/91): Fix: OpenStruct serializing - [@etehtsea](https://github.com/etehtsea). |
69 | 86 |
|
70 |
| -0.4.4 (2014-08-17) |
71 |
| -================== |
| 87 | +#### Fixes |
| 88 | + |
| 89 | +* [#111](https://github.com/ruby-grape/grape-entity/pull/111): Allow usage of attributes with name 'key' if `Hash` objects are used - [@croeck](https://github.com/croeck). |
| 90 | +* [#110](https://github.com/ruby-grape/grape-entity/pull/110): Safe exposure when using `Hash` models - [@croeck](https://github.com/croeck). |
| 91 | +* [#91](https://github.com/ruby-grape/grape-entity/pull/91): OpenStruct serializing - [@etehtsea](https://github.com/etehtsea). |
| 92 | + |
| 93 | +### 0.4.4 (2014-08-17) |
| 94 | + |
| 95 | +#### Features |
72 | 96 |
|
73 | 97 | * [#85](https://github.com/ruby-grape/grape-entity/pull/85): Added `present_collection` to indicate that an `Entity` presents an entire Collection - [@dspaeth-faber](https://github.com/dspaeth-faber).
|
74 | 98 | * [#85](https://github.com/ruby-grape/grape-entity/pull/85): Hashes can now be passed as object to be presented and the `Hash` keys can be referenced by expose - [@dspaeth-faber](https://github.com/dspaeth-faber).
|
75 | 99 |
|
76 |
| -0.4.3 (2014-06-12) |
77 |
| -================== |
| 100 | +### 0.4.3 (2014-06-12) |
| 101 | + |
| 102 | +#### Features |
78 | 103 |
|
79 |
| -* [#77](https://github.com/ruby-grape/grape-entity/pull/77): Fix: compatibility with Rspec 3 - [@justfalter](https://github.com/justfalter). |
80 | 104 | * [#76](https://github.com/ruby-grape/grape-entity/pull/76): Improve performance of entity serialization - [@justfalter](https://github.com/justfalter).
|
81 | 105 |
|
82 |
| -0.4.2 (2014-04-03) |
83 |
| -================== |
| 106 | +#### Fixes |
| 107 | + |
| 108 | +* [#77](https://github.com/ruby-grape/grape-entity/pull/77): Compatibility with Rspec 3 - [@justfalter](https://github.com/justfalter). |
| 109 | + |
| 110 | +### 0.4.2 (2014-04-03) |
| 111 | + |
| 112 | +#### Features |
84 | 113 |
|
85 | 114 | * [#60](https://github.com/ruby-grape/grape-entity/issues/59): Performance issues introduced by nested exposures - [@AlexYankee](https://github.com/AlexYankee).
|
86 | 115 | * [#60](https://github.com/ruby-grape/grape-entity/issues/57): Nested exposure double-exposes a field - [@AlexYankee](https://github.com/AlexYankee).
|
87 | 116 |
|
88 |
| -0.4.1 (2014-02-13) |
89 |
| -================== |
| 117 | +### 0.4.1 (2014-02-13) |
| 118 | + |
| 119 | +#### Fixes |
90 | 120 |
|
91 | 121 | * [#54](https://github.com/ruby-grape/grape-entity/issues/54): Fix: undefined method `to_set` - [@aj0strow](https://github.com/aj0strow).
|
92 | 122 |
|
93 |
| -0.4.0 (2014-01-27) |
94 |
| -================== |
| 123 | +### 0.4.0 (2014-01-27) |
| 124 | + |
| 125 | +#### Features |
95 | 126 |
|
96 | 127 | * Ruby 1.8.x is no longer supported - [@dblock](https://github.com/dblock).
|
97 | 128 | * [#36](https://github.com/ruby-grape/grape-entity/pull/36): Enforcing Ruby style guidelines via Rubocop - [@dblock](https://github.com/dblock).
|
|
108 | 139 | * [#51](https://github.com/ruby-grape/grape-entity/pull/51): Raise `ArgumentError` if an unknown option is used with `expose` - [@aj0strow](https://github.com/aj0strow).
|
109 | 140 | * [#51](https://github.com/ruby-grape/grape-entity/pull/51): Alias `:with` to `:using`, consistently with the Grape api endpoints - [@aj0strow](https://github.com/aj0strow).
|
110 | 141 |
|
111 |
| -0.3.0 (2013-03-29) |
112 |
| -================== |
| 142 | +### 0.3.0 (2013-03-29) |
| 143 | + |
| 144 | +#### Features |
113 | 145 |
|
114 | 146 | * [#9](https://github.com/ruby-grape/grape-entity/pull/9): Added `with_options` for block-level exposure setting - [@SegFaultAX](https://github.com/SegFaultAX).
|
115 | 147 | * The `instance.entity` method now optionally accepts `options` - [@mbleigh](https://github.com/mbleigh).
|
116 | 148 | * You can pass symbols to `:if` and `:unless` to simply check for truthiness/falsiness of the specified options key - [@mbleigh](https://github.com/mbleigh).
|
117 | 149 |
|
118 |
| -0.2.0 (2013-01-11) |
119 |
| -================== |
| 150 | +### 0.2.0 (2013-01-11) |
| 151 | + |
| 152 | +#### Features |
120 | 153 |
|
121 | 154 | * Moved the namespace back to `Grape::Entity` to preserve compatibility with Grape - [@dblock](https://github.com/dblock).
|
122 | 155 |
|
123 |
| -0.1.0 (2013-01-11) |
124 |
| -================== |
| 156 | +### 0.1.0 (2013-01-11) |
125 | 157 |
|
126 | 158 | * Initial public release - [@agileanimal](https://github.com/agileanimal).
|
0 commit comments