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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47e323071f915700d9dc581ecf5ae29fc847b77c
4
- data.tar.gz: 4c1bbf1bcd69c6c1ed23b58e340a7e512d5aaf7e
3
+ metadata.gz: 5279afb6b683da892be5ef387d0b6211e465d384
4
+ data.tar.gz: a074c86e099d633362fdbf9c75089bbcf4df8864
5
5
  SHA512:
6
- metadata.gz: 8219f11a6335a292aa7d9087792b2554ea8dbde88c2385e06338e9cafa6c18ef9e3d33b72c02c46611b3b076304dc1c382f5dbc5363ec0e5a50bdfe03f9e5a8d
7
- data.tar.gz: fd2d4aadc8200c980671a6f862285da61b0db20c3523b28fc2f4b00fdf34d6e7f97a52595e09ab4356c7cc06cb9d9c45f777e16994aa6744d1aaa66c217a8eed
6
+ metadata.gz: 3ea2bdb2860127fdadff9b54dbb721f1dc4c4fe55333e7ed27bef554b452e8a15cd89798bc9b29716fb4bc2f0b71fc24b4467bb37c3765d3bfbd3eca8ddcb385
7
+ data.tar.gz: 76ca31b67e6cc1916c879563ca24acc26f411c5ba4d1dc991bf20aa896a25daf5b78b46b842fd86f1e3a82a955a53edd6f2ed885cc5493e906f26b369b81de2a
@@ -1,3 +1,3 @@
1
1
  module Documentation
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
@@ -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
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-15 00:00:00.000000000 Z
11
+ date: 2014-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails