homeland-press 0.3.3 → 0.3.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
  SHA1:
3
- metadata.gz: b440b74022da56d9bf5f99f0ae061a988eb8a7b9
4
- data.tar.gz: c519d89792f21eae15ccef4e0024d00f8ab4d858
3
+ metadata.gz: 257c58e145bd174122bcd0198e7519a03dabd3d4
4
+ data.tar.gz: 2a8f561dd77214e85cb0bfb2cf92b017113c7af4
5
5
  SHA512:
6
- metadata.gz: 47ab98648fcbc982e8a5dd49bed278f7376a73b62db7d01cf409c55d3c04337b27e29e98dad2d5350bd0a67d62ff4c22117f5ca2ff8932095de67bed1d4dbe91
7
- data.tar.gz: c332f0882253d6fc1d77a066e5ba669fd9378823afc9bdde43f6206f778201bc0b3a8b669db0065b9b85f542f5ee3b516308019d47021dd8100f3a7b89f9b340
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
- break unless 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"
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
- User.send :include, Homeland::Press::UserMixin
23
+ User.send :include, Homeland::Press::UserMixin
24
24
 
25
- app.routes.prepend do
26
- mount Homeland::Press::Engine => '/'
27
- end
25
+ app.routes.prepend do
26
+ mount Homeland::Press::Engine => '/'
27
+ end
28
28
 
29
- app.config.paths["db/migrate"].concat(config.paths["db/migrate"].expanded)
29
+ app.config.paths["db/migrate"].concat(config.paths["db/migrate"].expanded)
30
+ end
30
31
  end
31
32
  end
32
33
  end
@@ -1,6 +1,6 @@
1
1
  module Homeland
2
2
  module Press
3
3
  NAME = 'press'
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.4'
5
5
  end
6
6
  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.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-03-07 00:00:00.000000000 Z
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.8
86
+ rubygems_version: 2.6.11
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Press/Blog/News plugin for Homeland.