brief 1.8.5 → 1.8.6

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: 4ad789d0f35fc2864273df7ee4dfe3f05b8cdfaf
4
- data.tar.gz: 60b434c6ddea2a564862e4cd4888b18645bbe1aa
3
+ metadata.gz: 142e8f462cc9f7d9a8a504788cff6a7b7562f2d8
4
+ data.tar.gz: 54f32f83c554275697f798a377498f6eb75ae9a7
5
5
  SHA512:
6
- metadata.gz: 1de7b03ff13fec0ba55696438e93766e58302b36c4b44f2728eb02f8d9a97b7f4dc2d39c82ca2bb87f3ea485e18445f692a870dca31b77705b2f5b09cd5bc1d8
7
- data.tar.gz: 03e4f1e437db09249703ea0cd6ff4588a423eefe6a799bc5844ce6d5903a1322d6f9dc66651f3e58d478c073d3e837c7792683ef0070136353b96d563996d899
6
+ metadata.gz: fdad0e4836b46a6e474cff0732f90a467013315f18f75377dbb4880fdc28896ead148c1ab6942fbff4678c330496c877d1378b933ce9dd93951b0d40039c3250
7
+ data.tar.gz: 34506086a0dad0d5d91484da8af8922e726322e5c7f3a023f79d7833ac85310c70cc7df12df7cd00b5e7d8a51549e1ac52c00e18cc6996528044ba4655481b35
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brief (1.8.5)
4
+ brief (1.8.6)
5
5
  activemodel
6
6
  activesupport (>= 4.0)
7
7
  commander (>= 4.2.1)
@@ -6,6 +6,13 @@ class Brief::Apps::Blueprint::Outline
6
6
  end
7
7
 
8
8
  content do
9
+ h1 "h1"
10
+ h2 "h2"
11
+ h3 "h3"
12
+ h4 "h4"
13
+ h5 "h5"
14
+ h6 "h6"
15
+ headings "h1,h2,h3,h4,h5,h6"
9
16
  settings "code.yaml:first-of-type", :serialize => :yaml, :hide => true
10
17
  end
11
18
  end
@@ -82,7 +82,9 @@ module Brief
82
82
  models: models,
83
83
  settings: settings,
84
84
  cache_key: briefcase.cache_key
85
- }
85
+ }.tap do |hash|
86
+ hash[:table_of_contents] = briefcase.table_of_contents.as_json() rescue {}
87
+ end
86
88
  end
87
89
 
88
90
  def as_full_export
data/lib/brief/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Brief
2
- VERSION = '1.8.5'
2
+ VERSION = '1.8.6'
3
3
  end
@@ -15,6 +15,15 @@ describe "The Briefcase" do
15
15
  expect(briefcase.slug).to eq("example")
16
16
  end
17
17
 
18
+ it "has settings" do
19
+ expect(briefcase.settings).not_to be_empty
20
+ end
21
+
22
+ it "has a table of contents" do
23
+ expect(briefcase.table_of_contents).to be_present
24
+ expect(briefcase.table_of_contents.headings).not_to be_empty
25
+ end
26
+
18
27
  it "points to a file repository" do
19
28
  expect(briefcase.repository).to be_a(Brief::Repository)
20
29
  end
@@ -46,7 +55,7 @@ describe "The Briefcase" do
46
55
  context "Document Mappings" do
47
56
  it "has all of the documents" do
48
57
  expect(briefcase.epics.length).to eq(1)
49
- expect(briefcase.documents.length).to eq(8)
58
+ expect(briefcase.documents.length).to eq(9)
50
59
  end
51
60
  end
52
61
  end
@@ -47,7 +47,7 @@ describe "The Brief Document Repository" do
47
47
 
48
48
  it "supports different operators" do
49
49
  query = repository.where(:type.neq => "epic")
50
- expect(query.length).to eq(7)
50
+ expect(query.length).to eq(8)
51
51
  end
52
52
 
53
53
  it "limits the results to the specified size" do
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.8.5
4
+ version: 1.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Soeder