grape-entity 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/lib/grape_entity/entity.rb +2 -2
- data/lib/grape_entity/version.rb +1 -1
- metadata +19 -6
- data/lib/grape_entity/json.rb +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea6cd1ab20b3f5c6e99438ee72c716cc28dde080ce2dc89490427bf3b7431212
|
|
4
|
+
data.tar.gz: 0e5ec30218c864e84984114a39fd3acc5bb980db637ba75c1c7572491ce5695b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7263a1369fc11a5e3290a6106175615c5d7e845b9d79456e0103c0ff28fd3da43d787d8386e67eedb96bbd00fc5ab023e42fabbeabb6bbc0214db454cbbdce67
|
|
7
|
+
data.tar.gz: 9fd6c031d4dcbc89404174e25712feabb75e0b3d6c2a529784e15cbeee5f30c0c3561f46ce3e98c6b1abcd8a8ccb0d2b1ea699f117759f2ab359f1a96f075fbc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
###
|
|
1
|
+
### 1.0.4 (2026-04-17)
|
|
2
|
+
|
|
3
|
+
#### Fixes
|
|
4
|
+
|
|
5
|
+
* [#405](https://github.com/ruby-grape/grape-entity/pull/405): Fix `Time` serialization regression by reverting #385 and restoring `MultiJson.dump` - [@numbata](https://github.com/numbata).
|
|
6
|
+
* [#402](https://github.com/ruby-grape/grape-entity/pull/402): Remove `Json::ParseError` assignment - [@olivier-thatch](https://github.com/olivier-thatch).
|
|
2
7
|
|
|
3
8
|
### 1.0.3 (2026-04-15)
|
|
4
9
|
|
|
10
|
+
#### Features
|
|
11
|
+
|
|
5
12
|
* [#400](https://github.com/ruby-grape/grape-entity/pull/400): Switch to danger-pr-comment for PR checks - [@numbata](https://github.com/numbata).
|
|
6
13
|
* [#397](https://github.com/ruby-grape/grape-entity/pull/397): Reduce gem size by excluding test files - [@yuri-zubov](https://github.com/yuri-zubov).
|
|
7
14
|
* [#401](https://github.com/ruby-grape/grape-entity/pull/401): Modernize gemspec: add metadata, use Dir glob, require MFA - [@numbata](https://github.com/numbata).
|
|
@@ -10,6 +17,7 @@
|
|
|
10
17
|
|
|
11
18
|
* [#399](https://github.com/ruby-grape/grape-entity/pull/399): Fix `ArgumentError` for single-argument lambdas in `expose` blocks and `if:` conditions - [@numbata](https://github.com/numbata).
|
|
12
19
|
|
|
20
|
+
|
|
13
21
|
### 1.0.2 (2026-04-13)
|
|
14
22
|
|
|
15
23
|
#### Fixes
|
|
@@ -20,6 +28,7 @@
|
|
|
20
28
|
* [#385](https://github.com/ruby-grape/grape-entity/pull/385): Drop multijson dependency - [@ericproulx](https://github.com/ericproulx).
|
|
21
29
|
* [#384](https://github.com/ruby-grape/grape-entity/pull/384): Fix `inspect` to correctly handle `nil` values - [@fcce](https://github.com/fcce).
|
|
22
30
|
|
|
31
|
+
|
|
23
32
|
### 1.0.1 (2024-04-10)
|
|
24
33
|
|
|
25
34
|
#### Fixes
|
data/lib/grape_entity/entity.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require '
|
|
3
|
+
require 'multi_json'
|
|
4
4
|
|
|
5
5
|
module Grape
|
|
6
6
|
# An Entity is a lightweight structure that allows you to easily
|
|
@@ -594,7 +594,7 @@ module Grape
|
|
|
594
594
|
|
|
595
595
|
def to_json(options = {})
|
|
596
596
|
options = options.to_h if options&.respond_to?(:to_h)
|
|
597
|
-
|
|
597
|
+
MultiJson.dump(serializable_hash(options))
|
|
598
598
|
end
|
|
599
599
|
|
|
600
600
|
def to_xml(options = {})
|
data/lib/grape_entity/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape-entity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LeFnord
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-04-
|
|
12
|
+
date: 2026-04-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -25,6 +25,20 @@ dependencies:
|
|
|
25
25
|
- - ">="
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
27
|
version: 3.0.0
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: multi_json
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '1.0'
|
|
35
|
+
type: :runtime
|
|
36
|
+
prerelease: false
|
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: '1.0'
|
|
28
42
|
description: Extracted from Grape, A Ruby framework for rapid API development with
|
|
29
43
|
great conventions.
|
|
30
44
|
email:
|
|
@@ -61,7 +75,6 @@ files:
|
|
|
61
75
|
- lib/grape_entity/exposure/nesting_exposure/nested_exposures.rb
|
|
62
76
|
- lib/grape_entity/exposure/nesting_exposure/output_builder.rb
|
|
63
77
|
- lib/grape_entity/exposure/represent_exposure.rb
|
|
64
|
-
- lib/grape_entity/json.rb
|
|
65
78
|
- lib/grape_entity/options.rb
|
|
66
79
|
- lib/grape_entity/version.rb
|
|
67
80
|
homepage: https://github.com/ruby-grape/grape-entity
|
|
@@ -70,9 +83,9 @@ licenses:
|
|
|
70
83
|
metadata:
|
|
71
84
|
homepage_uri: https://github.com/ruby-grape/grape-entity
|
|
72
85
|
bug_tracker_uri: https://github.com/ruby-grape/grape-entity/issues
|
|
73
|
-
changelog_uri: https://github.com/ruby-grape/grape-entity/blob/v1.0.
|
|
74
|
-
documentation_uri: https://www.rubydoc.info/gems/grape-entity/1.0.
|
|
75
|
-
source_code_uri: https://github.com/ruby-grape/grape-entity/tree/v1.0.
|
|
86
|
+
changelog_uri: https://github.com/ruby-grape/grape-entity/blob/v1.0.4/CHANGELOG.md
|
|
87
|
+
documentation_uri: https://www.rubydoc.info/gems/grape-entity/1.0.4
|
|
88
|
+
source_code_uri: https://github.com/ruby-grape/grape-entity/tree/v1.0.4
|
|
76
89
|
rubygems_mfa_required: 'true'
|
|
77
90
|
post_install_message:
|
|
78
91
|
rdoc_options: []
|