grape-entity-include 0.1.1 → 0.1.2
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/README.md +2 -1
- data/grape-entity-include.gemspec +2 -2
- data/lib/grape_entity_include/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a34e3546a2a5a2c9a3cae4bdbaa5640262d4bf6f143df8dbbd8a7af7325e6646
|
|
4
|
+
data.tar.gz: 594b750348c2750b2386937a6e718c8bded978259a0db7cc9ebfff4353623b77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a7c4c47865a8d59afc9997a3546fefb68b80b48df81d98bae5b1f29124fc1e1a250a73d980b8a7070c3460965417cb03eaf9c910a45ee0780268ac4397e8839
|
|
7
|
+
data.tar.gz: 525eb8785ca3e662ccb819f1a0eab465b5623188d99ddf8224395eace1ad425f4393626fcba1588d99bc12fe5df4336d0fa73721aff028b55845d2ca502ac6ec
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GrapeEntityInclude
|
|
2
2
|
|
|
3
|
-
An include option for grape-entity, expose attributes if matching with attr_path option by using `include_attr_path?` method
|
|
3
|
+
An include option for grape-entity, expose object model's attributes if matching with attr_path option by using `include_attr_path?` method
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -24,6 +24,7 @@ Assume that you already had grape entities that sit on top of object models.
|
|
|
24
24
|
|
|
25
25
|
### Example
|
|
26
26
|
```ruby
|
|
27
|
+
require 'grape_entity_include'
|
|
27
28
|
UserEntity.represent(user_model, include: [:friends, { posts: [:comments, :photos] }])
|
|
28
29
|
|
|
29
30
|
class UserEntity < Grape::Entity
|
|
@@ -5,8 +5,8 @@ Gem::Specification.new do |spec|
|
|
|
5
5
|
spec.authors = ["Dzung Nguyen"]
|
|
6
6
|
spec.email = ["ntd63t@gmail.com"]
|
|
7
7
|
|
|
8
|
-
spec.summary = %q{An include option for grape-entity, expose attributes if matching with attr_path option}
|
|
9
|
-
spec.description = %q{An include option for grape-entity, expose attributes if matching with attr_path option}
|
|
8
|
+
spec.summary = %q{An include option for grape-entity, expose object model's attributes if matching with attr_path option}
|
|
9
|
+
spec.description = %q{An include option for grape-entity, expose object model's attributes if matching with attr_path option}
|
|
10
10
|
spec.homepage = "https://github.com/ntd63t/grape-entity-include.git"
|
|
11
11
|
spec.license = "MIT"
|
|
12
12
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape-entity-include
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dzung Nguyen
|
|
@@ -38,8 +38,8 @@ dependencies:
|
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
|
-
description: An include option for grape-entity, expose
|
|
42
|
-
attr_path option
|
|
41
|
+
description: An include option for grape-entity, expose object model's attributes
|
|
42
|
+
if matching with attr_path option
|
|
43
43
|
email:
|
|
44
44
|
- ntd63t@gmail.com
|
|
45
45
|
executables: []
|
|
@@ -84,6 +84,6 @@ requirements: []
|
|
|
84
84
|
rubygems_version: 3.1.2
|
|
85
85
|
signing_key:
|
|
86
86
|
specification_version: 4
|
|
87
|
-
summary: An include option for grape-entity, expose attributes if matching
|
|
88
|
-
option
|
|
87
|
+
summary: An include option for grape-entity, expose object model's attributes if matching
|
|
88
|
+
with attr_path option
|
|
89
89
|
test_files: []
|