mdless 1.0.5 → 1.0.6

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: ba3a539eeaf6b41eecbea5e64740e1be0300e20ab0d3045bfb214a3888b830e3
4
- data.tar.gz: 64b656423e3be62f758f41d275efb8ee14a4592460e24888987ee19912f106b2
3
+ metadata.gz: 838d2a736014669c73bd615bffdb9336fed0cfb761a2999cd1a00edb429b7178
4
+ data.tar.gz: 581e295c6e40b55ad424a4211e5475428ed492247f2ddb63015ba1060011a8a6
5
5
  SHA512:
6
- metadata.gz: 5990467acef82ddd12dce2106f4b7c6eda57fe1f88fe27d3b2a1d59c3ed80ac33a82a0df14b7a51d36dd6736abae598debc1b755dcac836b43ef7fe0c108aa0a
7
- data.tar.gz: 6d9984c780ec1a38254006aaf3695492932fa2e9d87dbb793f6e67d1dfbaeb6889b453d6d0098acfa42971e04bf5ba753e6fc8c00177a4d57ea45253f19dc8a2
6
+ metadata.gz: 3c5c4260f4912d22d0c5c053d30d81222b5865a481f7985439041696a4174c87f018e272bf094910325e1ce533f22ed8b0f250ea2894aadcfbe4799d55e80909
7
+ data.tar.gz: 234cee6e1ab695ff44c5202d0afb6a770166946bb6019e1f26caf770caefc9ffe4c979276e77f89a152ae9cef0a335668e60db9c9f127e6313ccdeb6ed144aaf
@@ -976,6 +976,8 @@ module CLIMarkdown
976
976
  ' -r'
977
977
  when 'less'
978
978
  ' -r'
979
+ when 'bat'
980
+ ' -p'
979
981
  else
980
982
  ''
981
983
  end
@@ -58,7 +58,7 @@ module CLIMarkdown
58
58
  },
59
59
  'code_span' => {
60
60
  'marker' => 'b white',
61
- 'color' => 'b black on_intense_blue'
61
+ 'color' => 'b white on_intense_black'
62
62
  },
63
63
  'code_block' => {
64
64
  'marker' => 'intense_black',
@@ -121,11 +121,11 @@ module CLIMarkdown
121
121
 
122
122
  unless File.exists?(theme_file)
123
123
  unless File.exists?(default_theme_file)
124
+ theme = THEME_DEFAULTS
124
125
  @log.info("Writing fresh theme file to #{theme_file}")
125
126
  File.open(theme_file,'w') {|f|
126
127
  f.puts theme.to_yaml
127
128
  }
128
- theme = THEME_DEFAULTS
129
129
  else
130
130
  @log.info("Specified theme not found, using default")
131
131
  theme_file = default_theme_file
@@ -1,3 +1,3 @@
1
1
  module CLIMarkdown
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
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.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-15 00:00:00.000000000 Z
11
+ date: 2019-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubygems_version: 3.0.2
106
+ rubygems_version: 3.0.6
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: A pager like less, but for Markdown files