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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d38331204f14d46c6c103c5a605127e11024c3ddc9d8732eff641ff10e85dd3
4
- data.tar.gz: 83188963ea7de3e7aa161f4b74eaee880c6ff673f2740715c3739493624e5124
3
+ metadata.gz: 8d02599c182fcadec2a5aea6663a5739d08586d978e6b794bb50e2ae1bc80f8e
4
+ data.tar.gz: 97e20ea9b2ffe90191e473a85ce3ad74fd3002671d0b08668a03cc17db57d9f2
5
5
  SHA512:
6
- metadata.gz: c093ba5c30f74aed7f655d8d773142328a4cfee33b408f63964d47f0dedfe7270f8dbe1ffa1c5f8361ef9bc4b4f4945d94866e0a3b08e15ec37129c99e10ad7d
7
- data.tar.gz: 5b2bd1dfa3dfd2eb1ac13434a78fbde624824d3a1debd7c1466d4a89b7d61173fe6ba770f2cfdb050e8f6f618abc12d95d957183c2b5cb691b93a6da948b2148
6
+ metadata.gz: 11b90ff3a67b9b44a985236b8d354c2afe46198aa18849d5bcdaf0098606ecc8faed21cd870825d6a1f26559a6eb8f71fb44dffdeae12fa6b1c4fedb65a61346
7
+ data.tar.gz: 07e29f5ec02a810e24bb24cd18275c1f3f804dba19caf677f6df4c6efb9a920ae488e43c3bc56f27740969efc315de4f00717b7b711dad225ea0e06dd268cfe6
@@ -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 = "/wiki"
16
- plugin.admin_path = "/admin/wiki"
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["db/migrate"].concat(config.paths["db/migrate"].expanded)
31
+ app.config.paths['db/migrate'].concat(config.paths['db/migrate'].expanded)
26
32
  end
27
33
  end
28
34
  end
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Homeland
2
4
  module Wiki
3
5
  NAME = 'wiki'
4
6
  DESCRIPTION = 'Display Wiki channel in navbar for wike pages.'
5
- VERSION = '0.4.3'
7
+ VERSION = '0.4.4'
6
8
  end
7
9
  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.3
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-07-10 00:00:00.000000000 Z
12
+ date: 2019-12-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails