rocket_cms 0.18.4 → 0.18.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +43 -43
- data/README.md +3 -3
- data/app/views/blocks/_footer.slim +1 -1
- data/lib/generators/rocket_cms/templates/webpack.config.js +0 -2
- data/lib/rocket_cms/version.rb +1 -1
- data/template.rb +10 -5
- 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: ef7090fc22b2e721d1471f3367da8d0f884bfff0
|
4
|
+
data.tar.gz: ade5fa86bdbc5971e4389dec736bb410359fbb67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4e88e3c84ccb991e7d0a0e929dd9f82fcee863087b7f372135e6b744d1600e8cb0b148d643a684bb2273921321cfe84e413e7c17d80ade9841b9bd824864305
|
7
|
+
data.tar.gz: '09d2d2dbf3d6150a92c5d9189e0a84f54d550da70d337d413b8c8e4cff4ed7dc12a73d38a1b77c05cd061787fbdd51347e76c7a9a57494bdf47c646d9c3a7bbe'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rocket_cms (0.18.
|
4
|
+
rocket_cms (0.18.5)
|
5
5
|
addressable
|
6
6
|
coffee-rails
|
7
7
|
jquery-rails
|
@@ -16,46 +16,46 @@ PATH
|
|
16
16
|
GEM
|
17
17
|
remote: https://rubygems.org/
|
18
18
|
specs:
|
19
|
-
actioncable (5.0
|
20
|
-
actionpack (= 5.0
|
21
|
-
nio4r (
|
19
|
+
actioncable (5.1.0)
|
20
|
+
actionpack (= 5.1.0)
|
21
|
+
nio4r (~> 2.0)
|
22
22
|
websocket-driver (~> 0.6.1)
|
23
|
-
actionmailer (5.0
|
24
|
-
actionpack (= 5.0
|
25
|
-
actionview (= 5.0
|
26
|
-
activejob (= 5.0
|
23
|
+
actionmailer (5.1.0)
|
24
|
+
actionpack (= 5.1.0)
|
25
|
+
actionview (= 5.1.0)
|
26
|
+
activejob (= 5.1.0)
|
27
27
|
mail (~> 2.5, >= 2.5.4)
|
28
28
|
rails-dom-testing (~> 2.0)
|
29
|
-
actionpack (5.0
|
30
|
-
actionview (= 5.0
|
31
|
-
activesupport (= 5.0
|
29
|
+
actionpack (5.1.0)
|
30
|
+
actionview (= 5.1.0)
|
31
|
+
activesupport (= 5.1.0)
|
32
32
|
rack (~> 2.0)
|
33
33
|
rack-test (~> 0.6.3)
|
34
34
|
rails-dom-testing (~> 2.0)
|
35
35
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
36
|
-
actionview (5.0
|
37
|
-
activesupport (= 5.0
|
36
|
+
actionview (5.1.0)
|
37
|
+
activesupport (= 5.1.0)
|
38
38
|
builder (~> 3.1)
|
39
|
-
|
39
|
+
erubi (~> 1.4)
|
40
40
|
rails-dom-testing (~> 2.0)
|
41
41
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
42
|
-
activejob (5.0
|
43
|
-
activesupport (= 5.0
|
42
|
+
activejob (5.1.0)
|
43
|
+
activesupport (= 5.1.0)
|
44
44
|
globalid (>= 0.3.6)
|
45
|
-
activemodel (5.0
|
46
|
-
activesupport (= 5.0
|
47
|
-
activerecord (5.0
|
48
|
-
activemodel (= 5.0
|
49
|
-
activesupport (= 5.0
|
50
|
-
arel (~>
|
51
|
-
activesupport (5.0
|
45
|
+
activemodel (5.1.0)
|
46
|
+
activesupport (= 5.1.0)
|
47
|
+
activerecord (5.1.0)
|
48
|
+
activemodel (= 5.1.0)
|
49
|
+
activesupport (= 5.1.0)
|
50
|
+
arel (~> 8.0)
|
51
|
+
activesupport (5.1.0)
|
52
52
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
53
53
|
i18n (~> 0.7)
|
54
54
|
minitest (~> 5.1)
|
55
55
|
tzinfo (~> 1.1)
|
56
56
|
addressable (2.5.1)
|
57
57
|
public_suffix (~> 2.0, >= 2.0.2)
|
58
|
-
arel (
|
58
|
+
arel (8.0.0)
|
59
59
|
builder (3.2.3)
|
60
60
|
coffee-rails (4.2.1)
|
61
61
|
coffee-script (>= 2.2.0)
|
@@ -65,7 +65,7 @@ GEM
|
|
65
65
|
execjs
|
66
66
|
coffee-script-source (1.12.2)
|
67
67
|
concurrent-ruby (1.0.5)
|
68
|
-
|
68
|
+
erubi (1.6.0)
|
69
69
|
execjs (2.7.0)
|
70
70
|
globalid (0.4.0)
|
71
71
|
activesupport (>= 4.2.0)
|
@@ -89,41 +89,41 @@ GEM
|
|
89
89
|
kaminari-core (1.0.1)
|
90
90
|
loofah (2.0.3)
|
91
91
|
nokogiri (>= 1.5.9)
|
92
|
-
mail (2.6.
|
92
|
+
mail (2.6.5)
|
93
93
|
mime-types (>= 1.16, < 4)
|
94
94
|
method_source (0.8.2)
|
95
95
|
mime-types (3.1)
|
96
96
|
mime-types-data (~> 3.2015)
|
97
97
|
mime-types-data (3.2016.0521)
|
98
98
|
mini_portile2 (2.1.0)
|
99
|
-
minitest (5.10.
|
99
|
+
minitest (5.10.2)
|
100
100
|
nio4r (2.0.0)
|
101
|
-
nokogiri (1.7.
|
101
|
+
nokogiri (1.7.2)
|
102
102
|
mini_portile2 (~> 2.1.0)
|
103
103
|
public_suffix (2.0.5)
|
104
|
-
rack (2.0.
|
104
|
+
rack (2.0.2)
|
105
105
|
rack-test (0.6.3)
|
106
106
|
rack (>= 1.0)
|
107
|
-
rails (5.0
|
108
|
-
actioncable (= 5.0
|
109
|
-
actionmailer (= 5.0
|
110
|
-
actionpack (= 5.0
|
111
|
-
actionview (= 5.0
|
112
|
-
activejob (= 5.0
|
113
|
-
activemodel (= 5.0
|
114
|
-
activerecord (= 5.0
|
115
|
-
activesupport (= 5.0
|
107
|
+
rails (5.1.0)
|
108
|
+
actioncable (= 5.1.0)
|
109
|
+
actionmailer (= 5.1.0)
|
110
|
+
actionpack (= 5.1.0)
|
111
|
+
actionview (= 5.1.0)
|
112
|
+
activejob (= 5.1.0)
|
113
|
+
activemodel (= 5.1.0)
|
114
|
+
activerecord (= 5.1.0)
|
115
|
+
activesupport (= 5.1.0)
|
116
116
|
bundler (>= 1.3.0, < 2.0)
|
117
|
-
railties (= 5.0
|
117
|
+
railties (= 5.1.0)
|
118
118
|
sprockets-rails (>= 2.0.0)
|
119
119
|
rails-dom-testing (2.0.2)
|
120
120
|
activesupport (>= 4.2.0, < 6.0)
|
121
121
|
nokogiri (~> 1.6)
|
122
122
|
rails-html-sanitizer (1.0.3)
|
123
123
|
loofah (~> 2.0)
|
124
|
-
railties (5.0
|
125
|
-
actionpack (= 5.0
|
126
|
-
activesupport (= 5.0
|
124
|
+
railties (5.1.0)
|
125
|
+
actionpack (= 5.1.0)
|
126
|
+
activesupport (= 5.1.0)
|
127
127
|
method_source
|
128
128
|
rake (>= 0.8.7)
|
129
129
|
thor (>= 0.18.1, < 2.0)
|
@@ -143,7 +143,7 @@ GEM
|
|
143
143
|
thread_safe (0.3.6)
|
144
144
|
turbolinks (5.0.1)
|
145
145
|
turbolinks-source (~> 5)
|
146
|
-
turbolinks-source (5.0.
|
146
|
+
turbolinks-source (5.0.3)
|
147
147
|
tzinfo (1.2.3)
|
148
148
|
thread_safe (~> 0.1)
|
149
149
|
validates_email_format_of (1.6.3)
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ What's in the box when you generate a new app:
|
|
10
10
|
- JS packages via package.json
|
11
11
|
- Capistrano deploy (including puma and webpack)
|
12
12
|
- Puma in production and in development
|
13
|
-
-
|
13
|
+
- Basic windows support (development env only)
|
14
14
|
- Basic CMS models and controllers (Pages + SEO, News, Contact form with mailer, menu)
|
15
15
|
- Menu via SimpleNavigation
|
16
16
|
- Ckeditor with image upload support
|
@@ -62,11 +62,11 @@ If not, uninstall rails and install again
|
|
62
62
|
|
63
63
|
Then, for mongoid:
|
64
64
|
|
65
|
-
rails new my_app -T -O -m https://raw.githubusercontent.com/rs-pro/rocket_cms/master/template.rb --
|
65
|
+
rails new my_app -T -O -m https://raw.githubusercontent.com/rs-pro/rocket_cms/master/template.rb --skip-spring
|
66
66
|
|
67
67
|
for ActiveRecord:
|
68
68
|
|
69
|
-
rails new my_app -T --database=postgresql -m https://raw.githubusercontent.com/rs-pro/rocket_cms/master/template.rb --
|
69
|
+
rails new my_app -T --database=postgresql -m https://raw.githubusercontent.com/rs-pro/rocket_cms/master/template.rb --skip-spring
|
70
70
|
|
71
71
|
generator creates a new RVM gemset, so after cd'ing to app dir, you should run `bundle install` again if you use rvm.
|
72
72
|
|
@@ -1,2 +1,2 @@
|
|
1
1
|
footer
|
2
|
-
| (c)
|
2
|
+
| (c) #{Date.year}
|
data/lib/rocket_cms/version.rb
CHANGED
data/template.rb
CHANGED
@@ -2,7 +2,8 @@ rails_spec = (Gem.loaded_specs["railties"] || Gem.loaded_specs["rails"])
|
|
2
2
|
version = rails_spec.version.to_s
|
3
3
|
|
4
4
|
mongoid = options[:skip_active_record]
|
5
|
-
yarn = options[:
|
5
|
+
yarn = !options[:skip_yarn]
|
6
|
+
spring = !options[:skip_spring]
|
6
7
|
|
7
8
|
if Gem::Version.new(version) < Gem::Version.new('5.0.0')
|
8
9
|
puts "You are using an old version of Rails (#{version})"
|
@@ -17,7 +18,7 @@ remove_file 'Gemfile'
|
|
17
18
|
create_file 'Gemfile' do <<-TEXT
|
18
19
|
source 'https://rubygems.org'
|
19
20
|
|
20
|
-
gem 'rails', '5.1.0.
|
21
|
+
gem 'rails', '5.1.0.rc2'
|
21
22
|
#{if mongoid then "gem 'mongoid', '~> 6.1.0'" else "gem 'pg'" end}
|
22
23
|
|
23
24
|
gem 'sass'
|
@@ -27,6 +28,8 @@ gem 'rails_admin', github: 'crowdtask/rails_admin'
|
|
27
28
|
|
28
29
|
gem 'slim', github: 'slim-template/slim'
|
29
30
|
gem 'haml', github: 'haml/haml'
|
31
|
+
#{"gem 'friendly_id', github: 'glebtv/friendly_id'" if !mongoid}
|
32
|
+
|
30
33
|
gem 'sass-rails'
|
31
34
|
gem 'webpack-rails'
|
32
35
|
|
@@ -43,7 +46,7 @@ gem 'sentry-raven'
|
|
43
46
|
gem 'uglifier'
|
44
47
|
|
45
48
|
# windows
|
46
|
-
gem 'tzinfo-data'
|
49
|
+
gem 'tzinfo-data' if Gem.win_platform?
|
47
50
|
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
|
48
51
|
|
49
52
|
group :development do
|
@@ -51,6 +54,7 @@ group :development do
|
|
51
54
|
gem 'binding_of_caller'
|
52
55
|
gem 'pry-rails'
|
53
56
|
gem 'listen'
|
57
|
+
#{"gem 'spring'" if spring}
|
54
58
|
|
55
59
|
gem 'capistrano', require: false
|
56
60
|
gem 'capistrano-bundler', require: false
|
@@ -380,7 +384,7 @@ rails_env = ENV['RACK_ENV'] || ENV['RAILS_ENV'] || "development"
|
|
380
384
|
environment rails_env
|
381
385
|
|
382
386
|
if rails_env == 'development'
|
383
|
-
workers 1
|
387
|
+
Puma.windows? { workers 1 }
|
384
388
|
bind 'tcp://0.0.0.0:#{port}'
|
385
389
|
else
|
386
390
|
# https://github.com/seuros/capistrano-puma/blob/642d141ee502546bd5a43a76cd9f6766dc0fcc7a/lib/capistrano/templates/puma.rb.erb#L25
|
@@ -485,7 +489,8 @@ end
|
|
485
489
|
FileUtils.cp(Pathname.new(destination_root).join('config', 'secrets.yml').to_s, Pathname.new(destination_root).join('config', 'secrets.yml.example').to_s)
|
486
490
|
|
487
491
|
unless mongoid
|
488
|
-
generate "paper_trail:install", "--with-associations"
|
492
|
+
#generate "paper_trail:install", "--with-associations"
|
493
|
+
generate "paper_trail:install"
|
489
494
|
generate "friendly_id"
|
490
495
|
rake "db:migrate"
|
491
496
|
end
|
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.18.
|
4
|
+
version: 0.18.5
|
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-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|