Skip to content

Commit bda9756

Browse files
authored
Prepare release 0.8.2 (#341)
1 parent b128af8 commit bda9756

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,24 @@
77
#### Fixes
88

99
* Your contribution here.
10+
11+
12+
### 0.8.2 (2020-11-08)
13+
14+
#### Fixes
15+
1016
* [#340](https://github.com/ruby-grape/grape-entity/pull/340): Preparations for 3.0 - [@LeFnord](https://github.com/LeFnord).
1117
* [#338](https://github.com/ruby-grape/grape-entity/pull/338): Fix ruby 2.7 deprecation warning - [@begotten63](https://github.com/begotten63).
1218

19+
1320
### 0.8.1 (2020-07-15)
1421

1522
#### Fixes
1623

1724
* [#336](https://github.com/ruby-grape/grape-entity/pull/336): Pass options to delegators when they accept it - [@dnesteryuk](https://github.com/dnesteryuk).
1825
* [#333](https://github.com/ruby-grape/grape-entity/pull/333): Fix typo in CHANGELOG.md - [@eitoball](https://github.com/eitoball).
1926

27+
2028
### 0.8.0 (2020-02-18)
2129

2230
#### Features
@@ -32,12 +40,14 @@
3240
* [#320](https://github.com/ruby-grape/grape-entity/pull/320): Gemspec: drop eol'd property rubyforge_project - [@olleolleolle](https://github.com/olleolleolle).
3341
* [#307](https://github.com/ruby-grape/grape-entity/pull/307): Allow exposures to call methods defined in modules included in an entity - [@robertoz-01](https://github.com/robertoz-01).
3442

43+
3544
### 0.7.1 (2018-01-30)
3645

3746
#### Features
3847

3948
* [#297](https://github.com/ruby-grape/grape-entity/pull/297): Introduce `override` option for expose (fixes [#286](https://github.com/ruby-grape/grape-entity/issues/296)) - [@DmitryTsepelev](https://github.com/DmitryTsepelev).
4049

50+
4151
### 0.7.0 (2018-01-25)
4252

4353
#### Features
@@ -56,6 +66,7 @@
5666
* [#291](https://github.com/ruby-grape/grape-entity/pull/291): Refactor and simplify various classes and modules - [@DmitryTsepelev](https://github.com/DmitryTsepelev).
5767
* [#292](https://github.com/ruby-grape/grape-entity/pull/292): Allow replace non-conditional non-nesting exposures in child classes (fixes [#286](https://github.com/ruby-grape/grape-entity/issues/286)) - [@DmitryTsepelev](https://github.com/DmitryTsepelev).
5868

69+
5970
### 0.6.1 (2017-01-09)
6071

6172
#### Features
@@ -66,6 +77,7 @@
6677

6778
* [#251](https://github.com/ruby-grape/grape-entity/pull/251): Avoid noise when code runs with Ruby warnings - [@cpetschnig](https://github.com/cpetschnig).
6879

80+
6981
### 0.6.0 (2016-11-20)
7082

7183
#### Features
@@ -77,6 +89,7 @@
7789
* [#249](https://github.com/ruby-grape/grape-entity/issues/249): Fix leaking of options and internals in default serialization - [@dblock](https://github.com/dblock), [@KingsleyKelly](https://github.com/KingsleyKelly).
7890
* [#248](https://github.com/ruby-grape/grape-entity/pull/248): Fix `nil` values causing errors when `merge` option passed - [@arempe93](https://github.com/arempe93).
7991

92+
8093
### 0.5.2 (2016-11-14)
8194

8295
#### Features
@@ -92,6 +105,7 @@
92105
* [#219](https://github.com/ruby-grape/grape-entity/pull/219): Double pass options in `serializable_hash` - [@sbatykov](https://github.com/sbatykov).
93106
* [#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).
94107

108+
95109
### 0.5.1 (2016-4-4)
96110

97111
#### Features
@@ -103,6 +117,7 @@
103117

104118
* [#202](https://github.com/ruby-grape/grape-entity/pull/202): Reset `@using_class` memoization on `.setup` - [@rngtng](https://github.com/rngtng).
105119

120+
106121
### 0.5.0 (2015-12-07)
107122

108123
#### Features
@@ -123,18 +138,21 @@
123138
* [#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).
124139
* [#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).
125140

141+
126142
### 0.4.8 (2015-08-10)
127143

128144
#### Features
129145

130146
* [#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).
131147

148+
132149
### 0.4.7 (2015-08-03)
133150

134151
#### Features
135152

136153
* [#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).
137154

155+
138156
### 0.4.6 (2015-07-27)
139157

140158
#### Features
@@ -153,6 +171,7 @@
153171

154172
* [#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).
155173

174+
156175
### 0.4.5 (2015-03-10)
157176

158177
#### Features
@@ -167,13 +186,15 @@
167186
* [#110](https://github.com/ruby-grape/grape-entity/pull/110): Safe exposure when using `Hash` models - [@croeck](https://github.com/croeck).
168187
* [#91](https://github.com/ruby-grape/grape-entity/pull/91): OpenStruct serializing - [@etehtsea](https://github.com/etehtsea).
169188

189+
170190
### 0.4.4 (2014-08-17)
171191

172192
#### Features
173193

174194
* [#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).
175195
* [#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).
176196

197+
177198
### 0.4.3 (2014-06-12)
178199

179200
#### Features
@@ -184,19 +205,22 @@
184205

185206
* [#77](https://github.com/ruby-grape/grape-entity/pull/77): Compatibility with Rspec 3 - [@justfalter](https://github.com/justfalter).
186207

208+
187209
### 0.4.2 (2014-04-03)
188210

189211
#### Features
190212

191213
* [#60](https://github.com/ruby-grape/grape-entity/issues/59): Performance issues introduced by nested exposures - [@AlexYankee](https://github.com/AlexYankee).
192214
* [#60](https://github.com/ruby-grape/grape-entity/issues/57): Nested exposure double-exposes a field - [@AlexYankee](https://github.com/AlexYankee).
193215

216+
194217
### 0.4.1 (2014-02-13)
195218

196219
#### Fixes
197220

198221
* [#54](https://github.com/ruby-grape/grape-entity/issues/54): Fix: undefined method `to_set` - [@aj0strow](https://github.com/aj0strow).
199222

223+
200224
### 0.4.0 (2014-01-27)
201225

202226
#### Features
@@ -216,6 +240,7 @@
216240
* [#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).
217241
* [#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).
218242

243+
219244
### 0.3.0 (2013-03-29)
220245

221246
#### Features
@@ -224,12 +249,14 @@
224249
* The `instance.entity` method now optionally accepts `options` - [@mbleigh](https://github.com/mbleigh).
225250
* You can pass symbols to `:if` and `:unless` to simply check for truthiness/falsiness of the specified options key - [@mbleigh](https://github.com/mbleigh).
226251

252+
227253
### 0.2.0 (2013-01-11)
228254

229255
#### Features
230256

231257
* Moved the namespace back to `Grape::Entity` to preserve compatibility with Grape - [@dblock](https://github.com/dblock).
232258

259+
233260
### 0.1.0 (2013-01-11)
234261

235262
* Initial public release - [@agileanimal](https://github.com/agileanimal).

UPGRADING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ Prefer to use this pattern for simple setting a value
1515
expose :method_without_args, as: :that_method_without_args
1616
```
1717

18+
### Upgrading to >= 0.8.2
19+
20+
In Ruby 3.0: the block handling will be changed
21+
[language-changes point 3, Proc](https://github.com/ruby/ruby/blob/v3_0_0_preview1/NEWS.md#language-changes).
22+
This:
23+
```ruby
24+
expose :that_method_without_args, &:method_without_args
25+
```
26+
will be deprecated.
27+
28+
Prefer to use this pattern for simple setting a value
29+
```ruby
30+
expose :method_without_args, as: :that_method_without_args
31+
```
32+
1833
### Upgrading to >= 0.6.0
1934

2035
#### Changes in Grape::Entity#inspect

lib/grape_entity/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module GrapeEntity
4-
VERSION = '0.8.1'
4+
VERSION = '0.8.2'
55
end

0 commit comments

Comments
 (0)