double_doc 1.2.0 → 1.2.1

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.
@@ -63,10 +63,11 @@ module DoubleDoc
63
63
 
64
64
  @sitemap = []
65
65
 
66
- navigation_sources = @sources - @exclude_from_navigation
67
-
68
- navigation_sources.each do |src|
66
+ @sources.each do |src|
69
67
  path = File.basename(src).sub(/\.md$/, '.html')
68
+
69
+ next if @exclude_from_navigation.include?(path)
70
+
70
71
  lines = File.readlines(src)
71
72
 
72
73
  item = nil
@@ -1,4 +1,4 @@
1
1
  ## ## DoubleDoc 1.2
2
2
  module DoubleDoc
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
@@ -76,7 +76,7 @@ describe "the html generator" do
76
76
  it "should skip specified filed" do
77
77
  generator = DoubleDoc::HtmlGenerator.new(@input_files, {
78
78
  :html_destination => @destination,
79
- :exclude_from_navigation => [@input_file_two]
79
+ :exclude_from_navigation => ['file_two.html']
80
80
  })
81
81
  generator.generate
82
82
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: double_doc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mick Staugaard