aspec_rb 0.0.2 → 0.0.3

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: 6e55619fa87afd6a1af767a270d15e40dfc0b22e
4
- data.tar.gz: 19b1bd4b7e751ffb239d0f4d09ee40ae9e71184f
3
+ metadata.gz: dd5122b4e23516d2504f007b7e7ad029bc4fc785
4
+ data.tar.gz: 368afe6156fcdfdaab92e95d2757d0b8c7081fcc
5
5
  SHA512:
6
- metadata.gz: 5a38a742e36b119fd5ebd7b220b8452255a1a9e68fa823528642e130fa118403ce2a391298775b5361be031711c203847a101fc610b3a462242e7b11db6ce8a6
7
- data.tar.gz: 020a0068d15f009be0fd19959099fd3bef887f8680831bb2f59bd4fa136c5e564afbe74bdade0d729af997820c0f02b490e0f563fc4692a23e1c7c31524318c0
6
+ metadata.gz: 025d41b37266d772b8e5206083716dbcf841ccdbbc1545ba90e54ce069baf9d4571bd6f17c85e649d31b98b009b04b336b68b8b447ffc17037df9aee6ab6be71
7
+ data.tar.gz: 316d38e5410507342d0fa1994138f211064a9819257ab781c91de8f62810c4f4bc11dd1a7e4c13907efbf10cbb08843a41a2d0b75e875fc5fcb24f543cd0ca40
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aspec_rb (0.0.2)
4
+ aspec_rb (0.0.3)
5
5
  asciidoctor (>= 1.5.0)
6
6
 
7
7
  GEM
@@ -2,5 +2,5 @@
2
2
  module AspecRb
3
3
  # After updating the version, publishing can be done by running
4
4
  # rake release in the project root
5
- VERSION = '0.0.2'.freeze
5
+ VERSION = '0.0.3'.freeze
6
6
  end
@@ -82,9 +82,12 @@ reqs.each do |req, f, title, chapter, doctitle|
82
82
  end
83
83
 
84
84
  f = f.sub(/^chapters\//, '')
85
- ref = "<a class=\"link\" href=\"#{link}\"><emphasis role=\"strong\">#{title}</emphasis> </a>"
85
+ icon = "<i class=\"fa fa-external-link-square\" aria-hidden=\"true\"></i>"
86
+ ref = "<a class=\"link\" href=\"#{link}\"><emphasis role=\"strong\">#{icon} #{title}</emphasis> </a>"
86
87
  breadcrumb = "<a href=\"#{f}\">#{chapter} / #{doctitle}</a>"
87
- row = "<tr> <th scope=\"row\">#{i}</th> <td style=\"white-space:pre;\">#{rid}</td><td>#{version}</td> <td>#{ref}</td> <td>#{f}</td> </tr>"
88
+ anchor = "<a class=\"link\" href=\"#Req-#{rid}\">#{rid}</a>"
89
+ row = %(<tr id="Req-#{rid}"> <th scope="row">#{i}</th> <td style="white-space:pre;">#{anchor}</td>
90
+ <td>#{version}</td> <td>#{ref}</td> <td>#{f}</td> </tr>)
88
91
 
89
92
  rows.push(row)
90
93
  end
@@ -92,7 +95,8 @@ end
92
95
  Asciidoctor::Extensions.register do
93
96
  block_macro :requirements do
94
97
  process do |parent, _target, _attrs|
95
- content = %(<h2 id="requirements"><a class="anchor" href="#requirements"></a><a class="link" href="#requirements">Requirements</a></h2>
98
+ content = %(<h2 id="requirements"><a class="anchor" href="#requirements"></a>
99
+ <a class="link" href="#requirements">Requirements</a></h2>
96
100
  <div class="panel panel-default"> <div class="panel-heading"><h4>Requirements</h4></div>
97
101
  <table class="table"> <thead> <tr>
98
102
  <th>#</th> <th>ID</th><th>Version</th> <th>Title</th> <th>Source Document</th>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspec_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bsmith-n4