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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f94b97387b74c936a9de7b562ea2c3442e54410ef30e533fe18c2af29a4d11c
4
- data.tar.gz: d3839ff29d4602764d0059ef3a50197d9dba9d83277266a946eb93e75bd0424e
3
+ metadata.gz: a34e3546a2a5a2c9a3cae4bdbaa5640262d4bf6f143df8dbbd8a7af7325e6646
4
+ data.tar.gz: 594b750348c2750b2386937a6e718c8bded978259a0db7cc9ebfff4353623b77
5
5
  SHA512:
6
- metadata.gz: 94c539753884d9b41b96a95507812cc18dbb065a8f203daf0c20c38e53340f4d6008f6b288e175673dcae07baf40224c9ae772baf1a0c581717d1789f50074f3
7
- data.tar.gz: 9352f477bfceac7a98ce7944c106c44067e99c24d354171664b4e6cb599d12c8c4a845ba158682ec87a9b2ec6856c6d240f86cb26174a45772e58cac65c96d7f
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
 
@@ -1,3 +1,3 @@
1
1
  module GrapeEntityInclude
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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 attributes if matching with
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 with attr_path
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: []