brief 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/brief/document/section/builder.rb +1 -1
- data/lib/brief/version.rb +1 -1
- data/spec/fixtures/example/brief.rb +6 -0
- data/spec/fixtures/example/docs/concept.html.md +1 -1
- data/spec/fixtures/example/docs/release.html.md +2 -0
- data/spec/lib/brief/models/release_spec.rb +9 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1274b95c43a49d1b2090319bd2835032a85379fe
|
4
|
+
data.tar.gz: 602de90a32e517581da9a6fc10b6d146de3cd751
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ba19577490cbf2f2fcab6bb7398d58db0335a1bb700877778a41be3bf2fd75eb4a4b68f6081587ba4e1a917d801a95da454b2c81e56c6baad3a62ccf255fbad
|
7
|
+
data.tar.gz: 0d378928c0c0c1d1dd634b6089c64a81ff7a77104df846c1fc8dca486587afb2febae85e53e5bbed95d0ba652a47a7e94bb796f5d2fc60f593979ea8e1d5e913
|
data/Gemfile.lock
CHANGED
@@ -65,7 +65,7 @@ class Brief::Document::Section
|
|
65
65
|
|
66
66
|
nodes.each do |node|
|
67
67
|
parent = node.css('section, article').first
|
68
|
-
parents_first_el = parent.children.first
|
68
|
+
parents_first_el = parent && parent.children.first
|
69
69
|
|
70
70
|
if parents_first_el && %w(h1 h2 h3 h4 h5 h6).include?(parent.children.first.name)
|
71
71
|
parent['data-heading'] = parents_first_el.text
|
data/lib/brief/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brief
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Soeder
|
@@ -317,6 +317,7 @@ files:
|
|
317
317
|
- spec/lib/brief/hashing_spec.rb
|
318
318
|
- spec/lib/brief/model_spec.rb
|
319
319
|
- spec/lib/brief/models/page_spec.rb
|
320
|
+
- spec/lib/brief/models/release_spec.rb
|
320
321
|
- spec/lib/brief/persistence_spec.rb
|
321
322
|
- spec/lib/brief/rendering_spec.rb
|
322
323
|
- spec/lib/brief/repository_spec.rb
|
@@ -384,6 +385,7 @@ test_files:
|
|
384
385
|
- spec/lib/brief/hashing_spec.rb
|
385
386
|
- spec/lib/brief/model_spec.rb
|
386
387
|
- spec/lib/brief/models/page_spec.rb
|
388
|
+
- spec/lib/brief/models/release_spec.rb
|
387
389
|
- spec/lib/brief/persistence_spec.rb
|
388
390
|
- spec/lib/brief/rendering_spec.rb
|
389
391
|
- spec/lib/brief/repository_spec.rb
|