-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #249: leaking of options and internals in default serialization.
- Loading branch information
Showing
6 changed files
with
52 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,45 @@ | ||
# This configuration was generated by `rubocop --auto-gen-config` | ||
# on 2015-08-10 13:14:22 +0300 using RuboCop version 0.31.0. | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2016-11-20 10:04:42 -0500 using RuboCop version 0.45.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 6 | ||
Metrics/AbcSize: | ||
Max: 33 | ||
Max: 32 | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: CountComments. | ||
Metrics/ClassLength: | ||
Max: 202 | ||
Max: 206 | ||
|
||
# Offense count: 3 | ||
Metrics/CyclomaticComplexity: | ||
Max: 11 | ||
|
||
# Offense count: 210 | ||
# Configuration parameters: AllowURI, URISchemes. | ||
# Offense count: 237 | ||
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives. | ||
# URISchemes: http, https | ||
Metrics/LineLength: | ||
Max: 146 | ||
|
||
# Offense count: 8 | ||
# Offense count: 6 | ||
# Configuration parameters: CountComments. | ||
Metrics/MethodLength: | ||
Max: 28 | ||
|
||
# Offense count: 5 | ||
# Offense count: 2 | ||
Metrics/PerceivedComplexity: | ||
Max: 13 | ||
|
||
# Offense count: 58 | ||
# Offense count: 33 | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: Exclude. | ||
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts. | ||
Style/FileName: | ||
Enabled: false | ||
Exclude: | ||
- 'lib/grape-entity.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
Upgrading Grape Entity | ||
=============== | ||
|
||
### Upgrading to >= 0.6.0 | ||
|
||
#### Changes in Grape::Entity#inspect | ||
|
||
The `Grape::Entity#inspect` method will no longer serialize the entity presenter with its options and delegator, but the exposed entity itself, using `#serializable_hash`. | ||
|
||
See [#250](https://github.com/ruby-grape/grape-entity/pull/250) for more information. | ||
|
||
### Upgrading to >= 0.5.1 | ||
|
||
* `Grape::Entity::Exposure::NestingExposure::NestedExposures.delete_if` always | ||
returns exposures, regardless of delete result (used to be | ||
`nil` in negative case), see [#203](https://github.com/ruby-grape/grape-entity/pull/203). | ||
#### Changes in NestedExposures.delete_if | ||
|
||
`Grape::Entity::Exposure::NestingExposure::NestedExposures.delete_if` always returns exposures, regardless of delete result (used to be `nil` in negative case). | ||
|
||
See [#203](https://github.com/ruby-grape/grape-entity/pull/203) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module GrapeEntity | ||
VERSION = '0.5.2'.freeze | ||
VERSION = '0.6.0'.freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters