documentation-editor 0.0.3 → 0.0.4

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: 16ddd9ccb92a86c7499a0044110c89d8c93e1855
4
- data.tar.gz: 22a307d38f79ced8d9be149995f3ee59d0b9c277
3
+ metadata.gz: bb8a6c6833eaed1c24ede4d86051661839774994
4
+ data.tar.gz: 58e3ebcf7eefa9dbcd0a8974ffb42fed2c99d047
5
5
  SHA512:
6
- metadata.gz: 0a41495c36fd3449f081aeea3bc177d5c4e10cb974434ce8c9c63d10e29ded42f77684ec42cfe90c1b02253cdf74359aad783128aecbd6e9d68a2698ddbbd490
7
- data.tar.gz: 564b4b23eee3967b87c5909d98753d4b75408e41ccf4537415c60ff3e921d29938d89a2a687866e777636e1b6c9fb3ff6c6c46480a82ef001bcca767e6fe83e7
6
+ metadata.gz: 97d9cbf271ae8028e499750c994f33c289d7216caec19cfdb6ebb1b86709352d2f7f6aa9e1f9824f369f9b7f3b443215152833557f7b53737b5dc07f2fb790c9
7
+ data.tar.gz: 799c91288dfbefdf2fe156a87c21c90ce72a6a476d142ec79e92cc66bea8e1c9f4b766a3d90f0cb438914b81e8840fa6a1204885e9967e6a6ca33eb225aa6041
@@ -28,12 +28,13 @@ module DocumentationEditor
28
28
  end
29
29
 
30
30
  def update
31
- @page.add_revision!(params[:data], !params[:preview], respond_to?(:current_user) ? current_user.id : nil)
31
+ @page.add_revision!(params[:data], params[:preview].to_s == 'false', respond_to?(:current_user) ? current_user.id : nil)
32
32
  render nothing: true
33
33
  end
34
34
 
35
35
  def create
36
36
  p = Page.new
37
+ p.author_id = respond_to?(:current_user) ? current_user.id : nil
37
38
  p.slug = params[:page][:slug]
38
39
  p.save!
39
40
  redirect_to edit_page_path(p)
@@ -1,3 +1,3 @@
1
1
  module DocumentationEditor
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia Team
@@ -14,98 +14,98 @@ dependencies:
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>'
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>'
24
+ - - ">"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: haml-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: kramdown
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: highlight
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sass-rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: paperclip
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '4.3'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '4.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: diffy
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: The goal of this project is to provide an easy & frictionless way to
@@ -120,6 +120,9 @@ executables: []
120
120
  extensions: []
121
121
  extra_rdoc_files: []
122
122
  files:
123
+ - LICENSE
124
+ - README.md
125
+ - Rakefile
123
126
  - app/assets/javascripts/documentation_editor/application.js
124
127
  - app/assets/javascripts/documentation_editor/pages.js
125
128
  - app/assets/stylesheets/documentation_editor/application.css
@@ -141,15 +144,12 @@ files:
141
144
  - db/migrate/20150725063642_create_documentation_editor_images.rb
142
145
  - db/migrate/20150728040718_create_documentation_editor_revisions.rb
143
146
  - lib/documentation-editor.rb
147
+ - lib/documentation_editor.rb
144
148
  - lib/documentation_editor/configuration.rb
145
149
  - lib/documentation_editor/engine.rb
146
150
  - lib/documentation_editor/parser.rb
147
151
  - lib/documentation_editor/version.rb
148
- - lib/documentation_editor.rb
149
152
  - lib/tasks/documentation_editor_tasks.rake
150
- - LICENSE
151
- - Rakefile
152
- - README.md
153
153
  homepage: https://github.com/algolia/documentation-editor
154
154
  licenses:
155
155
  - MIT
@@ -160,17 +160,17 @@ require_paths:
160
160
  - lib
161
161
  required_ruby_version: !ruby/object:Gem::Requirement
162
162
  requirements:
163
- - - '>='
163
+ - - ">="
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - '>='
168
+ - - ">="
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
172
  rubyforge_project:
173
- rubygems_version: 2.0.14
173
+ rubygems_version: 2.2.2
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: Mountable Rails application providing an extended Markdown documentation