rocket_cms 0.17.2 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/app/views/layouts/application.html.haml +0 -2
- data/app/views/layouts/application.html.slim +0 -2
- data/lib/generators/rocket_cms/templates/migration_contact_messages.rb +1 -1
- data/lib/generators/rocket_cms/templates/migration_news.rb +1 -1
- data/lib/generators/rocket_cms/templates/migration_pages.rb +2 -2
- data/lib/generators/rocket_cms/templates/migration_seos.rb +1 -1
- data/lib/rocket_cms/version.rb +1 -1
- data/template.rb +16 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1ab7d984edb267c64290200e1cfac357ac83755
|
4
|
+
data.tar.gz: 442812da272f60b2b8b43ef2684bf651ea1f82cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 016c3c3ae20e6a98c069dc0f263938d054507d06f0ce0c7513f9c48d43ae288000efd54edabf4faace0b5b404852287c2afdbf47089368157a68851331ccd786
|
7
|
+
data.tar.gz: 372b8609dadce95ef5b42b7bf7db4db2210ace9626e2f78c7f6e443de96f9d3035476e634b446bf9d20672096e0e0b7ee61b2eca0498e4f27671ae84f9853bbd
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rocket_cms (0.
|
4
|
+
rocket_cms (0.18.0)
|
5
5
|
addressable
|
6
6
|
coffee-rails
|
7
7
|
jquery-rails
|
@@ -53,7 +53,7 @@ GEM
|
|
53
53
|
i18n (~> 0.7)
|
54
54
|
minitest (~> 5.1)
|
55
55
|
tzinfo (~> 1.1)
|
56
|
-
addressable (2.5.
|
56
|
+
addressable (2.5.1)
|
57
57
|
public_suffix (~> 2.0, >= 2.0.2)
|
58
58
|
arel (7.1.4)
|
59
59
|
builder (3.2.3)
|
@@ -67,8 +67,8 @@ GEM
|
|
67
67
|
concurrent-ruby (1.0.5)
|
68
68
|
erubis (2.7.0)
|
69
69
|
execjs (2.7.0)
|
70
|
-
globalid (0.
|
71
|
-
activesupport (>= 4.
|
70
|
+
globalid (0.4.0)
|
71
|
+
activesupport (>= 4.2.0)
|
72
72
|
htmlentities (4.3.4)
|
73
73
|
i18n (0.8.1)
|
74
74
|
jquery-rails (4.3.1)
|
@@ -144,7 +144,7 @@ GEM
|
|
144
144
|
turbolinks (5.0.1)
|
145
145
|
turbolinks-source (~> 5)
|
146
146
|
turbolinks-source (5.0.0)
|
147
|
-
tzinfo (1.2.
|
147
|
+
tzinfo (1.2.3)
|
148
148
|
thread_safe (~> 0.1)
|
149
149
|
validates_email_format_of (1.6.3)
|
150
150
|
i18n
|
@@ -8,8 +8,6 @@
|
|
8
8
|
= favicon_link_tag '/favicon.ico'
|
9
9
|
= stylesheet_link_tag "application", media: "all"
|
10
10
|
= javascript_include_tag "application"
|
11
|
-
/[if lt IE 9]
|
12
|
-
= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"
|
13
11
|
%body
|
14
12
|
#root
|
15
13
|
= render 'shared/messages'
|
@@ -9,8 +9,6 @@ html lang="ru"
|
|
9
9
|
= favicon_link_tag '/favicon.ico'
|
10
10
|
= stylesheet_link_tag "application", media: "all"
|
11
11
|
= javascript_include_tag "application"
|
12
|
-
/[if lt IE 9]
|
13
|
-
= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"
|
14
12
|
body
|
15
13
|
#root
|
16
14
|
= render 'shared/messages'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class RocketCmsCreatePages < ActiveRecord::Migration
|
1
|
+
class RocketCmsCreatePages < ActiveRecord::Migration[5.0]
|
2
2
|
def change
|
3
3
|
create_table :menus do |t|
|
4
4
|
|
@@ -17,7 +17,7 @@ class RocketCmsCreatePages < ActiveRecord::Migration
|
|
17
17
|
t.integer :parent_id
|
18
18
|
t.integer :lft
|
19
19
|
t.integer :rgt
|
20
|
-
t.integer :depth
|
20
|
+
t.integer :depth
|
21
21
|
|
22
22
|
if RocketCMS.config.localize
|
23
23
|
t.column :name_translations, 'hstore', default: {}
|
data/lib/rocket_cms/version.rb
CHANGED
data/template.rb
CHANGED
@@ -3,18 +3,20 @@ version = rails_spec.version.to_s
|
|
3
3
|
|
4
4
|
mongoid = options[:skip_active_record]
|
5
5
|
|
6
|
-
if Gem::Version.new(version) < Gem::Version.new('
|
6
|
+
if Gem::Version.new(version) < Gem::Version.new('5.0.0')
|
7
7
|
puts "You are using an old version of Rails (#{version})"
|
8
8
|
puts "Please update"
|
9
9
|
puts "Stopping"
|
10
10
|
exit 1
|
11
11
|
end
|
12
12
|
|
13
|
+
git :init
|
14
|
+
|
13
15
|
remove_file 'Gemfile'
|
14
16
|
create_file 'Gemfile' do <<-TEXT
|
15
17
|
source 'https://rubygems.org'
|
16
18
|
|
17
|
-
gem 'rails', '5.0.
|
19
|
+
gem 'rails', '5.1.0.rc1'
|
18
20
|
#{if mongoid then "gem 'mongoid', '~> 6.1.0'" else "gem 'pg'" end}
|
19
21
|
|
20
22
|
gem 'sass'
|
@@ -22,8 +24,6 @@ gem 'sass'
|
|
22
24
|
#{if mongoid then "gem 'rocket_cms_mongoid'" else "gem 'rocket_cms_activerecord'" end}
|
23
25
|
|
24
26
|
gem 'sass-rails'
|
25
|
-
gem 'compass-rails'
|
26
|
-
|
27
27
|
gem 'slim-rails'
|
28
28
|
|
29
29
|
gem 'devise'
|
@@ -352,24 +352,21 @@ else
|
|
352
352
|
#{'pidfile "#{shared_dir}/tmp/puma/pid"'}
|
353
353
|
#{'state_path "#{shared_dir}/tmp/puma/state"'}
|
354
354
|
activate_control_app
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
#
|
364
|
-
|
365
|
-
require "active_record"
|
366
|
-
ActiveRecord::Base.connection.disconnect! rescue ActiveRecord::ConnectionNotEstablished
|
367
|
-
ActiveRecord::Base.establish_connection(YAML.load_file("#{current_dir}/config/database.yml")[rails_env])
|
355
|
+
on_restart do
|
356
|
+
puts 'Refreshing Gemfile'
|
357
|
+
#{'ENV["BUNDLE_GEMFILE"] = "#{current_dir}/Gemfile" unless rails_env == \'development\''}
|
358
|
+
end
|
359
|
+
#{"#mongoid reconnects by itself" if mongoid}
|
360
|
+
#{'on_worker_boot do
|
361
|
+
require "active_record"
|
362
|
+
ActiveRecord::Base.connection.disconnect! rescue ActiveRecord::ConnectionNotEstablished
|
363
|
+
ActiveRecord::Base.establish_connection(YAML.load_file("#{base_dir}/current/config/database.yml")[rails_env])
|
364
|
+
end' if !mongoid}
|
368
365
|
end
|
369
366
|
|
367
|
+
TEXT
|
370
368
|
end
|
371
369
|
|
372
|
-
|
373
370
|
remove_file 'app/views/layouts/application.html.erb'
|
374
371
|
|
375
372
|
|
@@ -383,6 +380,7 @@ require "active_model/railtie"
|
|
383
380
|
require "action_controller/railtie"
|
384
381
|
require "action_mailer/railtie"
|
385
382
|
require "action_view/railtie"
|
383
|
+
require "action_cable/engine"
|
386
384
|
require "sprockets/railtie"
|
387
385
|
# require "rails/test_unit/railtie"
|
388
386
|
|
@@ -423,7 +421,6 @@ end
|
|
423
421
|
|
424
422
|
remove_file 'app/assets/stylesheets/application.css'
|
425
423
|
create_file 'app/assets/stylesheets/application.css.sass' do <<-TEXT
|
426
|
-
@import 'compass'
|
427
424
|
@import 'rocket_cms'
|
428
425
|
|
429
426
|
#wrapper
|
@@ -436,8 +433,6 @@ create_file 'app/assets/stylesheets/application.css.sass' do <<-TEXT
|
|
436
433
|
float: right
|
437
434
|
width: 750px
|
438
435
|
|
439
|
-
@import "compass/layout/sticky-footer"
|
440
|
-
+sticky-footer(50px)
|
441
436
|
TEXT
|
442
437
|
end
|
443
438
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocket_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|