bookbindery 7.0.1 → 7.1.0

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: 53df160c832ef290b4080fd5397a5c30dedaf5e0
4
- data.tar.gz: c6f09d4956c9a16b06f44a0694e33dc8893ec716
3
+ metadata.gz: 31e3c4c4ce805a8a0c47039f451d81e205a068ef
4
+ data.tar.gz: edc1de563ff7fd4855ff960bc34cfb886fcb47b3
5
5
  SHA512:
6
- metadata.gz: 7954bf811e587d1bb23e8cb8b38914cafd2c7aaa63a5c290ec92f52d8bd3c1addd271c353129bffbc5894c8407c8579229a45cf696c7fdf5fdc1a3096c8b480e
7
- data.tar.gz: 68ede53b5af7d7e089dc4b12192740ff5b831e018e7353e199f55b04ef4d8a1372800bb295fc17770cf00b88a325a37ad98bf0f3924ccdef045ffe830f9030e6
6
+ metadata.gz: ebcdedfe7926b0a28a59793549d7013b3948ab8dbf3b7b16ef99d1761fcd0d7471fe51aaf42de6e14393c840997fcf0338cf0ef6507a32365f94318e375b17a9
7
+ data.tar.gz: 72b74779314a6fd58913328cbf3a1590d8f0d4925bb6d86116a89fecc3f6dc2cdc1c6e2246d19e792b9d27f1356ec22db76fe804b78c311312439725af850908
data/bookbinder.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'base64'
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'bookbindery'
5
- s.version = '7.0.1'
5
+ s.version = '7.1.0'
6
6
  s.summary = 'Markdown to Rackup application documentation generator'
7
7
  s.description = 'A command line utility to be run in Book repositories to stitch together their constituent Markdown repos into a static-HTML-serving application'
8
8
  s.authors = ['Mike Grafton', 'Lucas Marks', 'Gavin Morgan', 'Nikhil Gajwani', 'Dan Wendorf', 'Brenda Chan', 'Matthew Boedicker', 'Frank Kotsianas', 'Elena Sharma', 'Christa Hartsock']
@@ -17,7 +17,7 @@ module Bookbinder
17
17
  attr_reader :raw_routes
18
18
 
19
19
  def parse_apps(apps)
20
- apps.split(',').map(&:strip)
20
+ apps.split(',').map(&:strip) unless apps.nil?
21
21
  end
22
22
 
23
23
  def headers(raw)
@@ -54,6 +54,12 @@ module Bookbinder
54
54
  end
55
55
  end
56
56
 
57
+ def mermaid_diagram(&blk)
58
+ escaped_text = capture(&blk).gsub('-','\-')
59
+
60
+ @_out_buf.concat "<div class='mermaid'>#{escaped_text}</div>"
61
+ end
62
+
57
63
  def modified_date(format="%B %-d, %Y")
58
64
  git_accessor = Ingest::GitAccessor.new
59
65
  date = git_accessor.author_date(current_page.source_file) || Time.new(1984,1,1)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookbindery
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.1
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Grafton
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: install_bin
19
19
  cert_chain: []
20
- date: 2015-10-13 00:00:00.000000000 Z
20
+ date: 2015-10-19 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: fog-aws