tell-them 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 501bf594587be3026e68ab38e70108a24c14ad4b
4
- data.tar.gz: 30d16685b0c275ca0d43d1a3c3c1aa02ab1e4779
3
+ metadata.gz: dd833b80ab13e9c68be09f645c5aea9c05e345f4
4
+ data.tar.gz: f242dff34fad6a9fa853de1df8374175c79b2772
5
5
  SHA512:
6
- metadata.gz: 3a187373571816ef74f1bddddb394b10f5c60a20c3e5969eb29807cdb07d2b0a4c4e7e3c37b0cbfd548d1dd702088b2b9e32662228076a963f3e7eca819b1abb
7
- data.tar.gz: a1cd3c0916bd57609ac13f9ce8e7980563207eaac58a7a2c6258713eff4144963288be01a0036850321e8d68a6a038e802717f142825b6a00834854286877cf0
6
+ metadata.gz: f6b8f7a23970f99355d534d559045b952d1381d79b0763ea737ee15d96f4495d8291e46d29282a7adceecb2c247a9ee59d7e45a69a2d2aaa93aa2b50279790bb
7
+ data.tar.gz: a8a1663ae26e503841746a1d707bdb8509d680b440959dc53bcc8a807bae8ea14bdd9b08eba38ce44f889c55fb6482d54097bdcf4967bc9ae604ce878c4b9fb5
@@ -39,13 +39,14 @@ module TellThem
39
39
  box += ' </div>'
40
40
  box += ' <dl class="list">'
41
41
  data.each do |k,v|
42
- box += " <dt class=\"list-header\">#{k}</dt>"
42
+ box += " <li><span class=\"list-header\">#{k}: </span>"
43
43
  begin
44
44
  URI::parse(v)
45
- box += " <dd class=\"list-value\"><a href=\"#{v}\">#{shorten(v)}</a></dd>"
45
+ box += " <span class=\"list-value\"><a href=\"#{v}\">#{shorten(v)}</a></span>"
46
46
  rescue URI::InvalidURIError
47
- box += " <dd class=\"list-header\">#{v}</dd>"
47
+ box += " <span class=\"list-header\">#{v}</span>"
48
48
  end
49
+ box += " </li>"
49
50
  end
50
51
  box += ' </dl>'
51
52
  box += ' </div>'
@@ -54,9 +55,8 @@ module TellThem
54
55
  end
55
56
 
56
57
  def self.shorten(value)
57
- if value.length > MAX_URL_DISPLAY_LENGTH
58
- value[0..MAX_URL_DISPLAY_LENGTH] + "..."
59
- end
58
+ return value if value.length <= MAX_URL_DISPLAY_LENGTH
59
+ value[0..MAX_URL_DISPLAY_LENGTH] + '...'
60
60
  end
61
61
 
62
62
  class TellThemStore
@@ -1,5 +1,5 @@
1
1
  module TellThem
2
2
  module Rails
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tell-them
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - K M Lawrence