mdless 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mdless/converter.rb +9 -3
- data/lib/mdless/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23d22dc02d5520d977e864a119259663274fe8ecab3a30c96ac8248694809b3e
|
4
|
+
data.tar.gz: b99eaf3421cf4690351da9cc800c574883fab5aa40d4eb12e0ca847baece171c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9842b3ff12ab38605472d36682608bebc36ec622961d33a9f889b6c5ad71e2891193a2161d4fea65da5d4e4baa897d16391acc79cd176d0ab57a10d99434b2f1
|
7
|
+
data.tar.gz: 93d12dd0625b16c842267090cdb80dbada9676913c170732ae8368007204706723cd810da786bd4f6692bcea39be8da5d92bbe81f2f133081a80f3dcb9f0dd5d
|
data/lib/mdless/converter.rb
CHANGED
@@ -977,9 +977,15 @@ module CLIMarkdown
|
|
977
977
|
end
|
978
978
|
|
979
979
|
def which_pager
|
980
|
-
pagers = [ENV['GIT_PAGER'], ENV['PAGER']
|
981
|
-
|
982
|
-
|
980
|
+
pagers = [ENV['GIT_PAGER'], ENV['PAGER']]
|
981
|
+
|
982
|
+
if exec_available('git')
|
983
|
+
git_pager = `git config --get-all core.pager || true`.split.first
|
984
|
+
git_pager && pagers.push(git_pager)
|
985
|
+
end
|
986
|
+
|
987
|
+
pagers.concat(['bat', 'less', 'more', 'cat', 'pager'])
|
988
|
+
|
983
989
|
pagers.select! do |f|
|
984
990
|
if f
|
985
991
|
if f.strip =~ /[ |]/
|
data/lib/mdless/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mdless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Terpstra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|