documentation-editor 0.0.5 → 0.0.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: 3007f19797e61c5962a2440b249f0a8798713627
4
- data.tar.gz: 07de5a5ebba5df49d5d60b263ff76d3eac4c578d
3
+ metadata.gz: 5df9d3922194dac8d1fdbaf0a0738327fe831d51
4
+ data.tar.gz: c758321378718f58217459519b5d3196ab33e8ab
5
5
  SHA512:
6
- metadata.gz: 1f4808b970c0879917b69496324639b57e2d19d09e3b904a475d3a508b6807ed6c509d9a08abfd5af8a26d690775209bd993182eff442bd2fc540ee017e24c1d
7
- data.tar.gz: e13af8a269c3f11202d1575e60a667218f77e36114803dea59efd51d052342e7d0b566163526d875f2b8827cb0ccda9e483b83a137ec79fd48756804e8cee5d0
6
+ metadata.gz: bc9698672c529f0746547505ae63288d210d3b7019327a1d8feff002a10556a5f48bda7c89dd07e71bc3cd71916d61a457cb4cfda2e0d82eeb2280a39328bca2
7
+ data.tar.gz: a9d32039be21acf75c8fea4ed3d8f52b86748994cda163e8fddd896684c07b5be0116ec70c90d829498c787cbe0d06aa5655054e464e6133e84538e6167c1e7f
@@ -1,5 +1,6 @@
1
+ - id = "#{@page.id}-#{@revision.id}-#{@options.reject { |k, v| %w{action controller id}.include?(k.to_s) }.to_param}"
1
2
  - content_for :page_menu do
2
- - cache("page-#{@page.id}-#{@revision.id}-toc") do
3
+ - cache("page-#{id}-toc") do
3
4
  = render partial: 'menu_items', object: @revision.to_toc(@options)
4
5
 
5
6
  .markdown-page
@@ -8,6 +9,6 @@
8
9
  = link_to edit_page_path(@page), class: 'btn btn-warning' do
9
10
  %i.fa.fa-edit
10
11
  Edit
11
- - cache("page-#{@page.id}-#{@revision.id}-content") do
12
+ - cache("page-#{id}-content") do
12
13
  = find_and_preserve do
13
14
  = @revision.to_html(@options).html_safe
@@ -1,3 +1,3 @@
1
1
  module DocumentationEditor
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: documentation-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia Team