homeland-note 0.2.1 → 0.2.2
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 +4 -4
- data/lib/homeland/note/engine.rb +9 -2
- data/lib/homeland/note/version.rb +1 -1
- metadata +2 -3
- data/app/assets/config/homeland_note_manifest.js +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87bf3736c2f751f03e9bfbde49acfc2b99e1e90f22b0399d3f2edab1b447ffc7
|
4
|
+
data.tar.gz: 7f8f46143ea08eade80035a87609b180d3a61ed8086c9c8303b2c681141bb183
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45e524eacd11fbb81a7959d9ad357ac2dd0c875d8f3947140554cd884913afdcb41c842078933c5d8e6792e8be2ce9cd6e0bcb81184c54a3366443d834649054
|
7
|
+
data.tar.gz: eff89b10dbe6def090e7c1b9a192723ac52acd2f0223566d7fe618d82c70dd9972ca2f576265009363c428404093fc10fe4e5dc2f65d765d065e709a8070e5c1
|
data/lib/homeland/note/engine.rb
CHANGED
@@ -1,22 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Homeland::Note
|
2
4
|
class Engine < ::Rails::Engine
|
3
5
|
isolate_namespace Homeland::Note
|
4
6
|
|
7
|
+
initializer 'homeland.note.assets.precompile', group: :all do |app|
|
8
|
+
app.config.assets.precompile += %w[homeland/note/application.css homeland/note/application.js]
|
9
|
+
end
|
10
|
+
|
5
11
|
initializer 'homeland.note.init' do |app|
|
6
12
|
next unless Setting.has_module?(:note)
|
13
|
+
|
7
14
|
Homeland.register_plugin do |plugin|
|
8
15
|
plugin.name = Homeland::Note::NAME
|
9
16
|
plugin.display_name = '记事本'
|
10
17
|
plugin.version = Homeland::Note::VERSION
|
11
18
|
plugin.description = Homeland::Note::DESCRIPTION
|
12
19
|
plugin.user_menu_link = true
|
13
|
-
plugin.root_path =
|
20
|
+
plugin.root_path = '/notes'
|
14
21
|
end
|
15
22
|
|
16
23
|
app.routes.prepend do
|
17
24
|
mount Homeland::Note::Engine => '/'
|
18
25
|
end
|
19
|
-
app.config.paths[
|
26
|
+
app.config.paths['db/migrate'].concat(config.paths['db/migrate'].expanded)
|
20
27
|
end
|
21
28
|
end
|
22
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: homeland-note
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -34,7 +34,6 @@ files:
|
|
34
34
|
- MIT-LICENSE
|
35
35
|
- README.md
|
36
36
|
- Rakefile
|
37
|
-
- app/assets/config/homeland_note_manifest.js
|
38
37
|
- app/assets/javascripts/homeland/note/application.coffee
|
39
38
|
- app/assets/stylesheets/homeland/note/application.scss
|
40
39
|
- app/controllers/homeland/note/application_controller.rb
|