mdhost 0.1 → 0.1.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/mdhost.rb +4 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b987e2d55ede53f92d2f8a49261cb1cc2555e0a6bcc4f47408b0e14145729054
4
- data.tar.gz: 30fcf7b31833fe0a8b1c3ee33758597825c8fb1e227b1a58a54c35b054c52520
3
+ metadata.gz: 22a9a1e6e40bfc450770d17f2893839890787d5ac895c3b4b1e5647f8d1212b7
4
+ data.tar.gz: bc24e087846ae318ec4ab344e8018cf65a3da55460da3e976faf8e79005e2b52
5
5
  SHA512:
6
- metadata.gz: 70bf37bbc9d5f04f6679fd4bdd930c8dba800f4d6e0bba90f878bbdbe0fe914a6e2cb72ca3a824713f68010858bcad967d8b9bcce9b43f5432f687f2a0e57d6c
7
- data.tar.gz: e1fafa621015efc0658c0744bcaf4489c77b03e3f5d043090dc475dd1012683ca0c0e22c642412cf585bf8d236917b7cc3c6c30f79591d0a1dd59a0e07e30685
6
+ metadata.gz: fb3d3b221e7a34a7103957ff446035bcc53a2b2d21d0ffd2510dfb640ccc0832754f65eaecf54d63abf5045bf6454f3ee17bf2f947cb40f63e8dbfbb33ecbee9
7
+ data.tar.gz: 233f4d030ab19dd31cfa74d85a48570def4154162b66d7d56daf50067c94208b1f7c0272059088093392beca7977b752e6d3f2005bbdef1fd94a18b23af42229
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1
1
+ 0.1.1
data/lib/mdhost.rb CHANGED
@@ -43,8 +43,10 @@ module MDHost
43
43
  end
44
44
 
45
45
  # We don't *need* to pretty format the table so precisely, but why not?
46
- engine_length = table.keys.max_by(&:length).length
47
- result_length = table.values.max_by(&:length).length
46
+ # The smallest this can be is 6 because of the length of the "Engine"
47
+ # and "Result" headers.
48
+ engine_length = [table.keys.max_by(&:length).length, 6].max
49
+ result_length = [table.values.max_by(&:length).length, 6].max
48
50
 
49
51
  markdown_table = table.map do |e, r|
50
52
  "|#{e}#{' ' * (engine_length - e.length)}|#{r}#{' ' * (result_length - r.length)}|"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdhost
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vinny Diehl