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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d6da924affdfcd0e5be75373d3e8be870fe4300a63c7a462d8fb35fed5d9c1d
4
- data.tar.gz: 9ac90ee12218b43104728cdffdff67c265f53d0f6cc4ac92a7adf1eaa59e8397
3
+ metadata.gz: 23d22dc02d5520d977e864a119259663274fe8ecab3a30c96ac8248694809b3e
4
+ data.tar.gz: b99eaf3421cf4690351da9cc800c574883fab5aa40d4eb12e0ca847baece171c
5
5
  SHA512:
6
- metadata.gz: 19c6121272e4975a75acc7e7e60a5cd00f842341a560fb795faa125ec5ebcfad794470d44932d142620a60c8d5627a127c7e95c057e5f2904ac821ed40041dc5
7
- data.tar.gz: 4e6eeeb8179b8981675153ac389e90e532c33939c4df4d1f00d5a773c4c547533519bfaf4a32a7e87ea0f0425ab9431d96a3aae9afb0cc19b96cc6c8cb798589
6
+ metadata.gz: 9842b3ff12ab38605472d36682608bebc36ec622961d33a9f889b6c5ad71e2891193a2161d4fea65da5d4e4baa897d16391acc79cd176d0ab57a10d99434b2f1
7
+ data.tar.gz: 93d12dd0625b16c842267090cdb80dbada9676913c170732ae8368007204706723cd810da786bd4f6692bcea39be8da5d92bbe81f2f133081a80f3dcb9f0dd5d
@@ -977,9 +977,15 @@ module CLIMarkdown
977
977
  end
978
978
 
979
979
  def which_pager
980
- pagers = [ENV['GIT_PAGER'], ENV['PAGER'],
981
- `git config --get-all core.pager || true`.split.first,
982
- 'bat', 'less', 'more', 'cat', 'pager']
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 =~ /[ |]/
@@ -1,3 +1,3 @@
1
1
  module CLIMarkdown
2
- VERSION = '1.0.13'
2
+ VERSION = '1.0.14'
3
3
  end
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.13
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-13 00:00:00.000000000 Z
11
+ date: 2020-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake