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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3ff4675ff5709aa6bbbcf24797d651718dd36b8
4
- data.tar.gz: 50bd68868d57212e1ddca2b854d9f9f6818759c9
3
+ metadata.gz: 1274b95c43a49d1b2090319bd2835032a85379fe
4
+ data.tar.gz: 602de90a32e517581da9a6fc10b6d146de3cd751
5
5
  SHA512:
6
- metadata.gz: 74dfc78c477c41eedcb18c550a3c94c3d00ea5d888e4f3ceb7ff317920fa71c529707fc4e314277e0a5eaa95c32bc1ba71fd30a2fc20287148eb9fb4182ebca6
7
- data.tar.gz: 778d6e6d0e9436d338c6d705cbae1794fe247cfc05ccae44a4389c37f75c23daedf2e3537c640ec4f87094dc93a8ee8b491fcc368702d21a3273e4b831f96d8a
6
+ metadata.gz: 4ba19577490cbf2f2fcab6bb7398d58db0335a1bb700877778a41be3bf2fd75eb4a4b68f6081587ba4e1a917d801a95da454b2c81e56c6baad3a62ccf255fbad
7
+ data.tar.gz: 0d378928c0c0c1d1dd634b6089c64a81ff7a77104df846c1fc8dca486587afb2febae85e53e5bbed95d0ba652a47a7e94bb796f5d2fc60f593979ea8e1d5e913
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brief (1.7.0)
4
+ brief (1.7.1)
5
5
  activemodel
6
6
  activesupport
7
7
  commander (>= 4.2.1)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Brief
2
- VERSION = '1.7.1'
2
+ VERSION = '1.7.2'
3
3
  end
@@ -7,6 +7,12 @@ view :custom_aggregator do
7
7
  {aggregator:"custom"}
8
8
  end
9
9
 
10
+ define "Release" do
11
+ meta do
12
+ name
13
+ end
14
+ end
15
+
10
16
  define "User Story" do
11
17
  meta do
12
18
  title
@@ -3,7 +3,7 @@ type: concept
3
3
 
4
4
  ---
5
5
 
6
- # Modified Content 38inom7nxjlo9z3neuhognu1y75csd79i1ec
6
+ # Modified Content 123aq8rrqbq7zfuavshov29pploc87sr2q6r
7
7
 
8
8
  1
9
9
 
@@ -5,3 +5,5 @@ subheading: A release milestone for the software
5
5
  status: Planned
6
6
  date: 2018-12-18
7
7
  ---
8
+
9
+ This is a release it is a simple file with no real structure.
@@ -0,0 +1,9 @@
1
+ require "spec_helper"
2
+
3
+ describe "Simple Files" do
4
+ let(:doc) { Brief.testcase.releases.first }
5
+
6
+ it "still renders simple html with no headings" do
7
+ binding.pry
8
+ end
9
+ end
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.1
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