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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1a4d5ae9da1a8649dc3ae897f37f0209730d128
4
- data.tar.gz: e786dc5099a6e3a9fb8159a6c27e96095e11db78
3
+ metadata.gz: 8063723a091b8c2fbadc5a94ea90c2180c4ab071
4
+ data.tar.gz: 8ae2be0acb52b34ef3695fee7c1ce4e2d6cbe701
5
5
  SHA512:
6
- metadata.gz: 1477bb98a8b954db1498b0f417f2e7faddf4dc27ddb7204c2945c530cd85b93b1c7ad4f07e5561718260b596d5191431d05eedfdbf0e5ff705c8cb6c9b113f02
7
- data.tar.gz: c64bf3590944bf3eaf7d1371ac7bb2ba4da53bd3b9d1afe3eaf8696c5f1c41315ae2ea0bea01f5464faafa7fba818ab6bbafc4939eb3fff68050b48dd3887eed
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[:color]
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
@@ -1,3 +1,3 @@
1
1
  module BomDB
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bomdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duane Johnson