klaro-client 0.5.3 → 0.5.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/lib/klaro/client/resource/story.rb +10 -5
- data/lib/klaro/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 861ca7e05a88b52d1a475a351a120f428d91ac21caacfbc06e12e5c6a9f84bc2
|
4
|
+
data.tar.gz: 20d95370861307e0d5534fb698af187cb41882914962baeb99c478a1049881b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28aee1dbfff5699f51493402a05c1bc7e973ea13912d8919b5719682e7cd904bffed37a72480b1179bb65df55f6ce47c7315440aa098971fb937b6f65c22d7be
|
7
|
+
data.tar.gz: 7a9fb6bb70ddac52bfcdb1c424f7287c6fbf86adb6f6635cdba1ad1ce20f787bd2dfe493d54d5daa8f0c46a81a53494dc06e70297d11a07fd9c780edbb332bcd
|
@@ -2,18 +2,23 @@ module Klaro
|
|
2
2
|
class Client
|
3
3
|
class Story < Resource
|
4
4
|
|
5
|
+
def _title
|
6
|
+
self[:title] || self[:description]
|
7
|
+
end
|
8
|
+
|
5
9
|
def title
|
6
|
-
@title ||= MdText.new(self.
|
10
|
+
@title ||= MdText.new(self._title.split("\n").first, :summary)
|
7
11
|
end
|
8
12
|
|
9
13
|
def summary
|
10
|
-
@summary ||= MdText.new(self.
|
14
|
+
@summary ||= MdText.new(self._title.split("\n")[1..-1].join("\n"), :summary)
|
11
15
|
end
|
12
16
|
|
13
|
-
def
|
14
|
-
|
17
|
+
def details
|
18
|
+
details = self[:details] || self[:specification]
|
19
|
+
@specification ||= MdText.new(details, :details)
|
15
20
|
end
|
16
|
-
alias :
|
21
|
+
alias :specification :details
|
17
22
|
|
18
23
|
def linked_cards
|
19
24
|
@linked_cards ||= (self.linked || []).map{|s| Story.dress(s, @client) }
|
data/lib/klaro/client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: klaro-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- enspirit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|