documentation 1.0.4 → 1.0.5
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 +4 -4
- data/lib/documentation/version.rb +1 -1
- data/lib/documentation/view_helpers.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5279afb6b683da892be5ef387d0b6211e465d384
|
|
4
|
+
data.tar.gz: a074c86e099d633362fdbf9c75089bbcf4df8864
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ea2bdb2860127fdadff9b54dbb721f1dc4c4fe55333e7ed27bef554b452e8a15cd89798bc9b29716fb4bc2f0b71fc24b4467bb37c3765d3bfbd3eca8ddcb385
|
|
7
|
+
data.tar.gz: 76ca31b67e6cc1916c879563ca24acc26f411c5ba4d1dc991bf20aa896a25daf5b78b46b842fd86f1e3a82a955a53edd6f2ed885cc5493e906f26b369b81de2a
|
|
@@ -26,7 +26,7 @@ module Documentation
|
|
|
26
26
|
s << "<nav class='#{options[:class]}'><ul>"
|
|
27
27
|
|
|
28
28
|
if options[:root_link]
|
|
29
|
-
s << "<li><a href='#{documentation_doc_root}'>#{options[:root_link]}</a></li>"
|
|
29
|
+
s << "<li><a href='#{documentation_doc_root.blank? ? '/' : documentation_doc_root}'>#{options[:root_link]}</a></li>"
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
if page.is_a?(::Documentation::Page)
|
|
@@ -95,7 +95,7 @@ module Documentation
|
|
|
95
95
|
def documentation_doc_root
|
|
96
96
|
@documentation_doc_root ||= begin
|
|
97
97
|
if controller.is_a?(Documentation::ApplicationController)
|
|
98
|
-
::Documentation::Engine.mounted_path.to_s
|
|
98
|
+
::Documentation::Engine.mounted_path.to_s.sub(/\/$/, '')
|
|
99
99
|
else
|
|
100
100
|
::Documentation.config.preview_path_prefix.to_s.sub(/\/$/, '')
|
|
101
101
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: documentation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Cooke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-08-
|
|
11
|
+
date: 2014-08-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|