documentation-editor 0.6.2 → 0.6.3

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: 5fc10e0201807d3addb2870205623f7b38bb5d51
4
- data.tar.gz: b483cd1778fc6466dd8b65e2ad00d0b2d4d0a1af
3
+ metadata.gz: 22619e44fae6aa92b50ea69c41db107e9ecb774d
4
+ data.tar.gz: 91e1a7f324eaa58349567e0545b60e25b66743c4
5
5
  SHA512:
6
- metadata.gz: fa6640eca9c4173e686bbc0b9254db08c0491db611afcd58c89a9731095481b68ab85ab24e574509300dd1864ad219797bf22a4040840dd997e8f972ad025535
7
- data.tar.gz: f33183c10886b22f52f76929d46485f7eab3e5687cfd8a844f2160bd7683fb4d9ba57e1443299facf336b8b0de9ca3226f6a28d6a98dff9e354b95a6f74f957e
6
+ metadata.gz: 21f09604fd63a1a8f1891dcd9d751d3dbcfbf037cb372f2916e2fbc96e6a637cdf0490b39ed35f249f7e9ecea7e5b9436b773a13dd1deb4561c8f6b6badd1836
7
+ data.tar.gz: 0e4a9d172339175cad1b31b43b7c7598d1b59d711a9d7b9391bcd9c00ee932b72f39dffe992ab4b3751862c3461228d1bdd75fa205a22aed77f140709d56d40f
@@ -22,11 +22,29 @@
22
22
  background: white
23
23
  padding: 20px
24
24
  padding-top: 90px
25
- .insert-sections
26
- padding: 0 0 40px 0
27
- .btn
28
- font-size: 0.6em
29
- padding: 0px 4px
25
+
26
+ .section
27
+ &:hover
28
+ .insert-sections
29
+ opacity: 1
30
+
31
+ .insert-sections
32
+ opacity: 0
33
+ -webkit-transition: opacity 0.2s
34
+ -moz-transition: opacity 0.2s
35
+ -ms-transition: opacity 0.2s
36
+ -o-transition: opacity 0.2s
37
+ transition: opacity 0.2s
38
+
39
+ padding: 0 0 40px 0
40
+
41
+ &:hover
42
+ opacity: 1
43
+
44
+ .btn
45
+ font-size: 0.6em
46
+ padding: 0px 4px
47
+
30
48
  .markdown
31
49
  color: black
32
50
  border-left: 4px solid #DDD !important
@@ -60,6 +60,8 @@ module DocumentationEditor
60
60
  def show
61
61
  @page = Page.find_by!(slug: params[:slug])
62
62
  @revision = @page.published_revision
63
+ raise ActiveRecord::RecordNotFound.new if @revision.nil?
64
+
63
65
  @options = params
64
66
  @base_path = if params[:section]
65
67
  s = request.path.split('/')
@@ -1,3 +1,3 @@
1
1
  module DocumentationEditor
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: documentation-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-22 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -200,9 +200,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  version: '0'
201
201
  requirements: []
202
202
  rubyforge_project:
203
- rubygems_version: 2.2.2
203
+ rubygems_version: 2.4.1
204
204
  signing_key:
205
205
  specification_version: 4
206
206
  summary: Mountable Rails application providing an extended Markdown documentation
207
207
  editor.
208
208
  test_files: []
209
+ has_rdoc: