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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1078a156470857ec35278af91f9777701f9b4723cfc3e0c3dbf3649a606dd793
4
- data.tar.gz: 839f5f11fd4793e8c95447a99b44c69971a9fec2327603ae748dba65b8a14660
3
+ metadata.gz: 87bf3736c2f751f03e9bfbde49acfc2b99e1e90f22b0399d3f2edab1b447ffc7
4
+ data.tar.gz: 7f8f46143ea08eade80035a87609b180d3a61ed8086c9c8303b2c681141bb183
5
5
  SHA512:
6
- metadata.gz: 6c97ec9fbc3dd0f700b821ed46e69ff4cf0b3a1cbfebf62848f4fa60ad7c0821b316c52e438b2e50222fba204789288816c247f517a14163f38f97d8d728180d
7
- data.tar.gz: 596fecf98fa911865c989b9141868b63b048094e6c8569b23803d07f4a5781eec906f54c54f7736d19b41a25928a223a091c8c33277589a9e74f8da7732657ec
6
+ metadata.gz: 45e524eacd11fbb81a7959d9ad357ac2dd0c875d8f3947140554cd884913afdcb41c842078933c5d8e6792e8be2ce9cd6e0bcb81184c54a3366443d834649054
7
+ data.tar.gz: eff89b10dbe6def090e7c1b9a192723ac52acd2f0223566d7fe618d82c70dd9972ca2f576265009363c428404093fc10fe4e5dc2f65d765d065e709a8070e5c1
@@ -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 = "/notes"
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["db/migrate"].concat(config.paths["db/migrate"].expanded)
26
+ app.config.paths['db/migrate'].concat(config.paths['db/migrate'].expanded)
20
27
  end
21
28
  end
22
29
  end
@@ -2,6 +2,6 @@ module Homeland
2
2
  module Note
3
3
  NAME = 'note'
4
4
  DESCRIPTION = 'Note for Homeland.'
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  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.1
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-07-10 00:00:00.000000000 Z
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
@@ -1,2 +0,0 @@
1
- //= link_directory ../javascripts/homeland/note .js
2
- //= link_directory ../stylesheets/homeland/note .css