rocket_cms 0.27.0 → 0.27.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/generators/rocket_cms/templates/deploy.erb +4 -0
- data/lib/rocket_cms/admin.rb +8 -8
- data/lib/rocket_cms/configuration.rb +3 -0
- data/lib/rocket_cms/version.rb +1 -1
- data/template.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01cdadeae6488369b396961218f7861a3f5315425068a0036c2eef14c03a7270
|
4
|
+
data.tar.gz: 3bb9712d77c67afd00c8a556ebc3d99eb9821ba08ee3b1b9074ee124d0ae274f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8a2c98221ce8dfcd4c6ed91793a6b2e6fd17934d33d19c94767aab8ac50a60ec2747d6398dc5b7491d38979f1abb3e59ae7573fd499362e556ffa7aff01458c
|
7
|
+
data.tar.gz: d76b0f4f00949783b80fb7a90a73e4d4659e4b4ac174ab68d4ae63878117b0ceebe033ec9fbf8be89f861cba31585cd5c9cb1223f897c86ce6882721a558b877
|
data/Gemfile.lock
CHANGED
@@ -10,6 +10,10 @@ set :deploy_to, "<%= deploy_to %>"
|
|
10
10
|
#set :rvm_ruby_version, "2.5.0@#{fetch :application}"
|
11
11
|
set :use_sudo, false
|
12
12
|
|
13
|
+
set :puma_state, -> { File.join(shared_path, 'tmp', 'puma', 'state') }
|
14
|
+
set :puma_pid, -> { File.join(shared_path, 'tmp', 'puma', 'pid') }
|
15
|
+
set :puma_conf, -> { File.join(current_path, 'config', 'puma.rb') }
|
16
|
+
|
13
17
|
Rake::Task["puma:check"].clear
|
14
18
|
Rake::Task["puma:config"].clear
|
15
19
|
namespace :puma do
|
data/lib/rocket_cms/admin.rb
CHANGED
@@ -15,7 +15,7 @@ module RocketCMS
|
|
15
15
|
field :lon
|
16
16
|
}
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
def seo_config(is_active = true)
|
20
20
|
Proc.new {
|
21
21
|
if respond_to?(:active)
|
@@ -40,7 +40,7 @@ module RocketCMS
|
|
40
40
|
field :og_image, :paperclip
|
41
41
|
end
|
42
42
|
end
|
43
|
-
|
43
|
+
|
44
44
|
def page_config
|
45
45
|
Proc.new {
|
46
46
|
RocketCMS.apply_patches self
|
@@ -80,13 +80,13 @@ module RocketCMS
|
|
80
80
|
end
|
81
81
|
if Seo.separate_table?
|
82
82
|
group :seo do
|
83
|
-
active
|
83
|
+
active RocketCMS.config.seo_active_by_default
|
84
84
|
field :seo do
|
85
|
-
active
|
85
|
+
active RocketCMS.config.seo_active_by_default
|
86
86
|
end
|
87
87
|
end
|
88
88
|
else
|
89
|
-
group :seo, &RocketCMS.seo_config(
|
89
|
+
group :seo, &RocketCMS.seo_config(RocketCMS.config.seo_active_by_default)
|
90
90
|
end
|
91
91
|
end
|
92
92
|
RocketCMS.only_patches self, [:show, :export]
|
@@ -95,7 +95,7 @@ module RocketCMS
|
|
95
95
|
})
|
96
96
|
}
|
97
97
|
end
|
98
|
-
|
98
|
+
|
99
99
|
def menu_config
|
100
100
|
Proc.new {
|
101
101
|
navigation_label 'CMS'
|
@@ -105,7 +105,7 @@ module RocketCMS
|
|
105
105
|
RocketCMS.only_patches self, [:show, :list, :edit, :export]
|
106
106
|
}
|
107
107
|
end
|
108
|
-
|
108
|
+
|
109
109
|
def contact_message_config
|
110
110
|
Proc.new {
|
111
111
|
navigation_label I18n.t('rs.settings')
|
@@ -121,7 +121,7 @@ module RocketCMS
|
|
121
121
|
RocketCMS.only_patches self, [:show, :list, :edit, :export]
|
122
122
|
}
|
123
123
|
end
|
124
|
-
|
124
|
+
|
125
125
|
def news_config
|
126
126
|
Proc.new {
|
127
127
|
navigation_label I18n.t('rs.cms')
|
@@ -27,6 +27,8 @@ module RocketCMS
|
|
27
27
|
attr_accessor :contacts_fields
|
28
28
|
attr_accessor :contacts_message_required
|
29
29
|
|
30
|
+
attr_accessor :seo_active_by_default
|
31
|
+
|
30
32
|
attr_accessor :separate_seo_table
|
31
33
|
|
32
34
|
attr_accessor :localize
|
@@ -54,6 +56,7 @@ module RocketCMS
|
|
54
56
|
@localize = false
|
55
57
|
|
56
58
|
@separate_seo_table = false
|
59
|
+
@seo_active_by_default = true
|
57
60
|
end
|
58
61
|
|
59
62
|
def search_enabled=(val)
|
data/lib/rocket_cms/version.rb
CHANGED
data/template.rb
CHANGED
@@ -3,7 +3,7 @@ version = rails_spec.version.to_s
|
|
3
3
|
|
4
4
|
mongoid = options[:skip_active_record]
|
5
5
|
yarn = !options[:skip_yarn]
|
6
|
-
|
6
|
+
no_dev = !options[:is_dev]
|
7
7
|
spring = !options[:skip_spring]
|
8
8
|
|
9
9
|
if Gem::Version.new(version) < Gem::Version.new('5.0.0')
|
@@ -32,8 +32,8 @@ gem 'sass'
|
|
32
32
|
|
33
33
|
#{
|
34
34
|
"#{if mongoid then "gem 'rocket_cms_mongoid', path: '/data/rocket_cms'" else "gem 'rocket_cms_activerecord', path: '/data/rocket_cms'" end}
|
35
|
-
gem 'rocket_cms', path: '/data/rocket_cms'"
|
36
|
-
#{"#{if mongoid then "gem 'rocket_cms_mongoid'" else "gem 'rocket_cms_activerecord'" end}"
|
35
|
+
gem 'rocket_cms', path: '/data/rocket_cms'" unless no_dev}
|
36
|
+
#{"#{if mongoid then "gem 'rocket_cms_mongoid'" else "gem 'rocket_cms_activerecord'" end}" if no_dev}
|
37
37
|
|
38
38
|
gem 'rails_admin', github: 'sferik/rails_admin'
|
39
39
|
#{"gem 'friendly_id', github: 'norman/friendly_id'" unless mongoid}
|