documentation 1.0.7 → 1.0.8

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: cab528824c7fab1863c090801877ae911fd6a7cc
4
- data.tar.gz: ad6380d770fed9ca096a7cf9852be75ceb76e028
3
+ metadata.gz: d7e39ff3bcc5366866daf61e794d0518228e30ce
4
+ data.tar.gz: abb69304cb427450f290c8a6bdf6c2b0847bd36d
5
5
  SHA512:
6
- metadata.gz: f68be8e46d201e8f4cccc64c97ae01f6da4ab1be0a54fa30b37edd7a9c6ecb8ee91bb6c185b3737768049b6b5978772b6d922f565253be11e1264b40c8ddc341
7
- data.tar.gz: 22cebaf4439f0e4910110245bcfded91198f3c2be9c00adfb1d5a1d02972cc58beb58500df10b7507a73f05815112dc5f319a677ef8fe6f24df844fcb3a1e177
6
+ metadata.gz: 50e61fcd321e0a0448b1474a1afae58a2baf323f9a82c84d823449d7e5f8da5e7371db22df417f553c3d6feb8156dac76b98af19eb0e3e42e859007e3343a328
7
+ data.tar.gz: 920ddcc979efc4fbcaa757e42f63d9389383a31b773744e845743e8c47b0ae5f245a63d7c9b191caeb70ec0d19c5bc73659a3bf836a911b5ce001cb902576af1
@@ -141,7 +141,7 @@ module Documentation
141
141
  # Create the compiled content
142
142
  #
143
143
  def compile_content
144
- mr = Documentation::MarkdownRenderer.new
144
+ mr = Documentation::MarkdownRenderer.new(:with_toc_data => true)
145
145
  mr.page = self
146
146
  rc = Redcarpet::Markdown.new(mr, :space_after_headers => true, :fenced_code_blocks => true, :no_intra_emphasis => true, :highlight => true)
147
147
  self.compiled_content = rc.render(self.content.to_s).html_safe
@@ -20,7 +20,7 @@ module Documentation
20
20
  end
21
21
 
22
22
  def self.mounted_path
23
- if route = Rails.application.routes.routes.select { |r| r.app == self }.first
23
+ if route = Rails.application.routes.routes.select { |r| r.app == self or r.app.try(:app) == self }.first
24
24
  route.path.spec.to_s
25
25
  end
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module Documentation
2
- VERSION = '1.0.7'
2
+ VERSION = '1.0.8'
3
3
  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.7
4
+ version: 1.0.8
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-11-02 00:00:00.000000000 Z
11
+ date: 2015-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -321,4 +321,3 @@ signing_key:
321
321
  specification_version: 4
322
322
  summary: A Rails engine to provider the ability to add documentation to a Rails application
323
323
  test_files: []
324
- has_rdoc: