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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c21ff3d80a0eb1cdb7c51cd56545307bbbede8c031e76ea2256736f25dd3524f
4
- data.tar.gz: 7047f6924714b82ad36d0eb6784f0a51f54bd14d25bfd50d489b690ac8242d86
3
+ metadata.gz: 01cdadeae6488369b396961218f7861a3f5315425068a0036c2eef14c03a7270
4
+ data.tar.gz: 3bb9712d77c67afd00c8a556ebc3d99eb9821ba08ee3b1b9074ee124d0ae274f
5
5
  SHA512:
6
- metadata.gz: c845eded2d6b517d6f9f44aea0ad3750aed9daf8ed09693e5b379889680b8163ab399cda4e15cecb3160ac54fb8db6101380fdc47aaf0aa65b745ff3914d939d
7
- data.tar.gz: 66ebd9b8f48652e72466a88391c7f1ec87f85334c3bf6c50e91fe3699613953f64362f7cc01fc81a7e32bf34e9e8ac7999c350063154be8ab6ee2d2922542eb4
6
+ metadata.gz: a8a2c98221ce8dfcd4c6ed91793a6b2e6fd17934d33d19c94767aab8ac50a60ec2747d6398dc5b7491d38979f1abb3e59ae7573fd499362e556ffa7aff01458c
7
+ data.tar.gz: d76b0f4f00949783b80fb7a90a73e4d4659e4b4ac174ab68d4ae63878117b0ceebe033ec9fbf8be89f861cba31585cd5c9cb1223f897c86ce6882721a558b877
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.27.0)
4
+ rocket_cms (0.27.1)
5
5
  addressable
6
6
  coffee-rails
7
7
  jquery-rails
@@ -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
@@ -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 true
83
+ active RocketCMS.config.seo_active_by_default
84
84
  field :seo do
85
- active true
85
+ active RocketCMS.config.seo_active_by_default
86
86
  end
87
87
  end
88
88
  else
89
- group :seo, &RocketCMS.seo_config(true)
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)
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = '0.27.0'
2
+ VERSION = '0.27.1'
3
3
  end
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
- is_dev = !options[:is_dev]
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'" if is_dev}
36
- #{"#{if mongoid then "gem 'rocket_cms_mongoid'" else "gem 'rocket_cms_activerecord'" end}" unless is_dev}
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}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.27.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv