markdown_ruby_documentation 0.4.0 → 0.4.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2aa745b489b0558f4dade17e2dfcbe97980f92b3
|
|
4
|
+
data.tar.gz: d26ec5caecc74d061bfd6e27a380ff3ec0026112
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 335e9339d1daab792155efcf8226517137c6a762e58dbac2a223e133e6ee4bc8fe2ee2f78cd70d518f321e317a1f63d075f6df10857f7e9e4cb8ef61b63a8407
|
|
7
|
+
data.tar.gz: abe6c59ed36323f98614668f79667e8433604530bd232d91ca82154e678a1e8b66ae3b6c5195f4c66ff08c29f1cc25faecc9f59115c435a3ee68ca0003570ac5
|
data/.travis.yml
CHANGED
|
@@ -369,7 +369,7 @@ module MarkdownRubyDocumentation
|
|
|
369
369
|
|
|
370
370
|
def hash_to_markdown_table(hash, key_name:, value_name:)
|
|
371
371
|
key_max_length = [hash.keys.group_by(&:size).max.first, key_name.size + 1].max
|
|
372
|
-
value_max_length = [hash.values.group_by(
|
|
372
|
+
value_max_length = [hash.values.group_by { |v| v.try!(:size) || 1 }.max.first, value_name.size + 1].max
|
|
373
373
|
header = markdown_table_header([[key_name, key_max_length+2], [value_name, value_max_length+2]])
|
|
374
374
|
rows = hash.map { |key, value| "| #{key.to_s.ljust(key_max_length)} | #{value.to_s.ljust(value_max_length)}|" }.join("\n")
|
|
375
375
|
[header, rows].join("\n")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: markdown_ruby_documentation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dustin Zeisler
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: method_source
|