homeland-wiki 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/homeland/wiki/engine.rb +9 -3
- data/lib/homeland/wiki/version.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d02599c182fcadec2a5aea6663a5739d08586d978e6b794bb50e2ae1bc80f8e
|
4
|
+
data.tar.gz: 97e20ea9b2ffe90191e473a85ce3ad74fd3002671d0b08668a03cc17db57d9f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11b90ff3a67b9b44a985236b8d354c2afe46198aa18849d5bcdaf0098606ecc8faed21cd870825d6a1f26559a6eb8f71fb44dffdeae12fa6b1c4fedb65a61346
|
7
|
+
data.tar.gz: 07e29f5ec02a810e24bb24cd18275c1f3f804dba19caf677f6df4c6efb9a920ae488e43c3bc56f27740969efc315de4f00717b7b711dad225ea0e06dd268cfe6
|
data/lib/homeland/wiki/engine.rb
CHANGED
@@ -1,8 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Homeland
|
2
4
|
module Wiki
|
3
5
|
class Engine < ::Rails::Engine
|
4
6
|
isolate_namespace Homeland::Wiki
|
5
7
|
|
8
|
+
initializer 'homeland.wiki.assets.precompile', group: :all do |app|
|
9
|
+
app.config.assets.precompile += %w[homeland/wiki/application.css homeland/wiki/application.js]
|
10
|
+
end
|
11
|
+
|
6
12
|
initializer 'homeland.wiki.init' do |app|
|
7
13
|
if Setting.has_module?(:wiki)
|
8
14
|
Homeland.register_plugin do |plugin|
|
@@ -12,8 +18,8 @@ module Homeland
|
|
12
18
|
plugin.version = Homeland::Wiki::VERSION
|
13
19
|
plugin.navbar_link = true
|
14
20
|
plugin.user_menu_link = false
|
15
|
-
plugin.root_path =
|
16
|
-
plugin.admin_path =
|
21
|
+
plugin.root_path = '/wiki'
|
22
|
+
plugin.admin_path = '/admin/wiki'
|
17
23
|
plugin.admin_navbar_link = true
|
18
24
|
plugin.spec_path = config.root.join('spec')
|
19
25
|
end
|
@@ -22,7 +28,7 @@ module Homeland
|
|
22
28
|
mount Homeland::Wiki::Engine, at: '/'
|
23
29
|
end
|
24
30
|
|
25
|
-
app.config.paths[
|
31
|
+
app.config.paths['db/migrate'].concat(config.paths['db/migrate'].expanded)
|
26
32
|
end
|
27
33
|
end
|
28
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: homeland-wiki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Griffin Qiu
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-12-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|