bomdb 0.7.0 → 0.7.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.
- checksums.yaml +4 -4
- data/lib/bomdb/cli/application.rb +8 -2
- data/lib/bomdb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8063723a091b8c2fbadc5a94ea90c2180c4ab071
|
4
|
+
data.tar.gz: 8ae2be0acb52b34ef3695fee7c1ce4e2d6cbe701
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c07e4c2ed540709504a521d4734835fa099932b48de13323186a276953f79d159c6c3b7b0848dec0a50edd76e42bbc04c2f978b60dded1af29c94ec1d4c7636e
|
7
|
+
data.tar.gz: d5618ce75a1a22004ac204b693df216c392c0b94d7d927a5b81619edde507234a8573fdfb1b82fe234c15ad1eebe65bd6feb67746b6190a7b01a9161a79b1660
|
@@ -138,6 +138,8 @@ module BomDB
|
|
138
138
|
:description => "separator between verses. Defaults to newline ('\\n')."
|
139
139
|
option :color, :type => :boolean, :default => true,
|
140
140
|
:description => "show chapter and verse in color"
|
141
|
+
option :markdown,:type => :boolean, :default => false,
|
142
|
+
:description => "show chapter and verse in markdown format"
|
141
143
|
option :"for-alignment", :type => :boolean, :default => false,
|
142
144
|
:description => "show output in 'alignment' mode. Useful for debugging 'align' subcommand issues."
|
143
145
|
option :clean, :type => :boolean, :default => false,
|
@@ -149,7 +151,7 @@ module BomDB
|
|
149
151
|
def show(range = nil)
|
150
152
|
body_format = nil
|
151
153
|
wordsep = options[:sep]
|
152
|
-
linesep = options[:linesep]
|
154
|
+
linesep = options[:linesep].gsub("\\n", "\n")
|
153
155
|
|
154
156
|
if options[:"for-alignment"]
|
155
157
|
linesep = " "
|
@@ -162,7 +164,11 @@ module BomDB
|
|
162
164
|
end
|
163
165
|
else
|
164
166
|
if options[:verses]
|
165
|
-
if options[:
|
167
|
+
if options[:markdown]
|
168
|
+
verse_format = lambda do |b,c,v|
|
169
|
+
'**' + b + wordsep + c.to_s + ':' + v.to_s + '**'
|
170
|
+
end
|
171
|
+
elsif options[:color]
|
166
172
|
verse_format = lambda do |b,c,v|
|
167
173
|
b.colorize(:yellow) + wordsep +
|
168
174
|
c.to_s.colorize(:green) + ':' +
|
data/lib/bomdb/version.rb
CHANGED