woody-decorators 7.0.0 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/woody/decorators.rb +1 -1
- data/lib/woody/decorators/brief.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f3ab4b03d9d7764b0d03a9d7f4a0564c2344e89
|
4
|
+
data.tar.gz: 1487eaf268b18e698205d9587b2ed826731357d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ebf5fd5c5ea05d206f2396e94681952994bbd900beded125e297a3828516a171025c02f3861b283fadb0db0d07167e41dff62fcaada920e0a87763a313d2555
|
7
|
+
data.tar.gz: 80b6c01bb20169a28ef754838ba45cb0155b3e7e14ce92a428d257bb74c56dd79dbc42166b5f972d0488912dd0fe7cb57d5102b8e8189e6ed983719a4b13fe62
|
data/lib/woody/decorators.rb
CHANGED
@@ -83,6 +83,18 @@ module Woody
|
|
83
83
|
@model.type == 'public'
|
84
84
|
end
|
85
85
|
|
86
|
+
def insights_post(yml_config, object_id)
|
87
|
+
post = @model.insights('posts').find do |p|
|
88
|
+
p['object_id'] == object_id
|
89
|
+
end
|
90
|
+
|
91
|
+
return nil unless post
|
92
|
+
|
93
|
+
{
|
94
|
+
post: Insights::Hydrator.hydrate(yml_config, post)
|
95
|
+
}
|
96
|
+
end
|
97
|
+
|
86
98
|
def insights_posts_list(yml_config)
|
87
99
|
{
|
88
100
|
posts: Insights::Hydrator.hydrate_array(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: woody-decorators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|