homeland-press 0.3.3 → 0.3.4
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/press/engine.rb +19 -18
- data/lib/homeland/press/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 257c58e145bd174122bcd0198e7519a03dabd3d4
|
|
4
|
+
data.tar.gz: 2a8f561dd77214e85cb0bfb2cf92b017113c7af4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07c49eccf896e0304746b9ea86e84858a7f5f0c53b3861697fff78f3822b2b253b24677de59efbe49ebd51f9b35dba6fa1e263341988a45445c5925c06290350
|
|
7
|
+
data.tar.gz: 319a070ea331e8c8588bfda93fa9858725b7b29c212d7c3c1e8c35a8d2685e39938823298cd0ff5cd85583a898ed8334acfafae36707a0bda8575d1bac79b763
|
|
@@ -4,29 +4,30 @@ module Homeland
|
|
|
4
4
|
isolate_namespace Homeland::Press
|
|
5
5
|
|
|
6
6
|
initializer 'homeland.press.init' do |app|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
if Setting.has_module?(:press)
|
|
8
|
+
app.config.after_initialize do
|
|
9
|
+
# Because need use I18n.t
|
|
10
|
+
# must after Rails application initialized will get correct locale
|
|
11
|
+
Homeland.register_plugin do |plugin|
|
|
12
|
+
plugin.name = 'press'
|
|
13
|
+
plugin.display_name = I18n.t('plugin.press')
|
|
14
|
+
plugin.description = 'A Press/News plugin for Homeland.'
|
|
15
|
+
plugin.navbar_link = true
|
|
16
|
+
plugin.admin_navbar_link = true
|
|
17
|
+
plugin.root_path = "/posts"
|
|
18
|
+
plugin.admin_path = "/admin/posts"
|
|
19
|
+
end
|
|
19
20
|
end
|
|
20
|
-
end
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
User.send :include, Homeland::Press::UserMixin
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
app.routes.prepend do
|
|
26
|
+
mount Homeland::Press::Engine => '/'
|
|
27
|
+
end
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
app.config.paths["db/migrate"].concat(config.paths["db/migrate"].expanded)
|
|
30
|
+
end
|
|
30
31
|
end
|
|
31
32
|
end
|
|
32
33
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: homeland-press
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jason Lee
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
83
83
|
version: '0'
|
|
84
84
|
requirements: []
|
|
85
85
|
rubyforge_project:
|
|
86
|
-
rubygems_version: 2.6.
|
|
86
|
+
rubygems_version: 2.6.11
|
|
87
87
|
signing_key:
|
|
88
88
|
specification_version: 4
|
|
89
89
|
summary: Press/Blog/News plugin for Homeland.
|