mdhost 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/mdhost.rb +6 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbad6d4cf0eee94afaf0fb0d3b4b4de4daaefce726b93d6286f7d53b078c4d23
4
- data.tar.gz: 2b2c6e7f473c8dc01e786ef247d44ab49b73e9bfc0d17d6ad420c5e5735ad8b9
3
+ metadata.gz: 3a8134394649ff658a0481ef6c3e320f778e560154f4d07e873c3f56d28b1f77
4
+ data.tar.gz: 40438e7e07e3de5b341c05ee553f14d554329a51c8f688b2326ea63dabb4935d
5
5
  SHA512:
6
- metadata.gz: d8db2ff43540427438950d1b1b3a1977b1774f86e44a9bad1cd1336d742dd44dd7c02de0d560a267e06e436ff9e5b02aaa4764467c9b71634d740f4b71cc15ec
7
- data.tar.gz: 2a98c530ee577254a2e9c59f67e64e898fbbd258e3478a4519c19584ba2d77eb98e828c3037769063bee90a8a07b204bfdb0b85eb5771628ae0d21fca3e28c27
6
+ metadata.gz: 60b49b4c61d662da9335cfd1413b7aedd99e90f624ae0424d99444f0e1a1acea3bf336d660c54fd3237cc9ba20c2b37ddfe98783df63c83a5baf2ac63e3a47da
7
+ data.tar.gz: 3c8ecc633e616d5c1863e2a3dceaac95a53c5a270fb51b3c13d8e9af65c29c6b9c9e138eb04da04e1b2834c577df9f55417a66f8fee68232632c2c3cbc2ec48a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3
1
+ 0.4
data/lib/mdhost.rb CHANGED
@@ -27,6 +27,8 @@ module MDHost
27
27
  opt :format, "Format string to compose multiple inputs into", type: :string
28
28
  opt :table_format, 'Format string to use for the table "Input" column', type: :string
29
29
 
30
+ opt :browser_names, "Use browser names in output table"
31
+
30
32
  educate_on_error
31
33
  end
32
34
 
@@ -117,10 +119,10 @@ module MDHost
117
119
  end
118
120
 
119
121
  def run_format
120
- output = +<<~TABLE
121
- |Input|JavaScriptCore|SpiderMonkey|V8
122
- |-----|--------------|------------|--
123
- TABLE
122
+ output = +"|Input|"
123
+ output += @options.browser_names ? "Safari|Firefox|Chrome"
124
+ : "JavaScriptCore|SpiderMonkey|V8"
125
+ output += "\n|---|---|---|---\n"
124
126
 
125
127
  ARGV.each do |input|
126
128
  formatted_input = format(@format_string, input)
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.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vinny Diehl
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
- rubygems_version: 3.4.20
93
+ rubygems_version: 3.4.22
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Generate Markdown eshost tables