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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f20df5ac528c8af7480b9b108e1ecc0e6e173b6dac506d7d2236407f8ecc2f90
4
- data.tar.gz: ebd98f26c88b52072c9c4428a3b40c38aa006cce30f2a65570288fb8def60334
3
+ metadata.gz: 861ca7e05a88b52d1a475a351a120f428d91ac21caacfbc06e12e5c6a9f84bc2
4
+ data.tar.gz: 20d95370861307e0d5534fb698af187cb41882914962baeb99c478a1049881b3
5
5
  SHA512:
6
- metadata.gz: 9e069f401a3c7181d956ccd8fed1135f2512275bbfd0e1f6322851c41c2171b3f5944485dbba5fc3326dd616ced29fa25debfc8a214dcb5e54d2d61be18b874e
7
- data.tar.gz: 32069d79b9ab8e4979172f0ebdfcf4c1947aa600e374340aab8fc1139aa0aae1055f102bf4dae130ed70da93534b37a8d1c6da90465386af216f9adb0ff21474
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.description.split("\n").first, :summary)
10
+ @title ||= MdText.new(self._title.split("\n").first, :summary)
7
11
  end
8
12
 
9
13
  def summary
10
- @summary ||= MdText.new(self.description.split("\n")[1..-1].join("\n"), :summary)
14
+ @summary ||= MdText.new(self._title.split("\n")[1..-1].join("\n"), :summary)
11
15
  end
12
16
 
13
- def specification
14
- @specification ||= MdText.new(super, :details)
17
+ def details
18
+ details = self[:details] || self[:specification]
19
+ @specification ||= MdText.new(details, :details)
15
20
  end
16
- alias :details :specification
21
+ alias :specification :details
17
22
 
18
23
  def linked_cards
19
24
  @linked_cards ||= (self.linked || []).map{|s| Story.dress(s, @client) }
@@ -3,7 +3,7 @@ module Klaro
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 5
6
- TINY = 3
6
+ TINY = 4
7
7
  end
8
8
  VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"
9
9
  end # class Client
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.3
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-07 00:00:00.000000000 Z
11
+ date: 2021-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv