rocket_cms 0.22.0 → 0.24.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 +45 -45
- data/app/controllers/concerns/rs_errors.rb +1 -1
- data/app/controllers/concerns/rs_menu.rb +5 -2
- data/app/views/rails_admin/main/_enum_check_boxes.html.haml +1 -1
- data/app/views/rails_admin/main/_enum_radio_buttons.html.haml +1 -1
- data/lib/rocket_cms/models/contact_message.rb +1 -1
- data/lib/rocket_cms/version.rb +1 -1
- data/rocket_cms.gemspec +1 -3
- data/template.rb +0 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1894ec7ce4982aaecafca136f56bb70f222e6492dd169e3523a1e680b164c3b
|
4
|
+
data.tar.gz: ebb5e94cc9650abc145efb4b7dc91a7a595d6be8eb95d77cd441703ace6afaf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7bb26a2b581544dcfde6483e5243543fb517a80cdb24367a8d84538b5b5776105ddcd84fe4f576df3a64f766bf499903dfa090eb22d6cdadbf9ea636041273c
|
7
|
+
data.tar.gz: cd9d53504099abe24d90c33aeaab2033c497c2613f4a7c58adae0b01e6fd499ed62516c66b4293237721d08cd3777a65790002d10ac79140ab68778ec1c889ce
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rocket_cms (0.
|
4
|
+
rocket_cms (0.24.0)
|
5
5
|
addressable
|
6
6
|
coffee-rails
|
7
7
|
jquery-rails
|
8
8
|
kaminari
|
9
9
|
manual_slug
|
10
|
-
rails (>=
|
10
|
+
rails (>= 5.1, < 5.3)
|
11
11
|
smart_excerpt
|
12
12
|
stringex
|
13
13
|
thor
|
@@ -16,39 +16,39 @@ PATH
|
|
16
16
|
GEM
|
17
17
|
remote: https://rubygems.org/
|
18
18
|
specs:
|
19
|
-
actioncable (5.1.
|
20
|
-
actionpack (= 5.1.
|
19
|
+
actioncable (5.1.5)
|
20
|
+
actionpack (= 5.1.5)
|
21
21
|
nio4r (~> 2.0)
|
22
22
|
websocket-driver (~> 0.6.1)
|
23
|
-
actionmailer (5.1.
|
24
|
-
actionpack (= 5.1.
|
25
|
-
actionview (= 5.1.
|
26
|
-
activejob (= 5.1.
|
23
|
+
actionmailer (5.1.5)
|
24
|
+
actionpack (= 5.1.5)
|
25
|
+
actionview (= 5.1.5)
|
26
|
+
activejob (= 5.1.5)
|
27
27
|
mail (~> 2.5, >= 2.5.4)
|
28
28
|
rails-dom-testing (~> 2.0)
|
29
|
-
actionpack (5.1.
|
30
|
-
actionview (= 5.1.
|
31
|
-
activesupport (= 5.1.
|
29
|
+
actionpack (5.1.5)
|
30
|
+
actionview (= 5.1.5)
|
31
|
+
activesupport (= 5.1.5)
|
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.1.
|
37
|
-
activesupport (= 5.1.
|
36
|
+
actionview (5.1.5)
|
37
|
+
activesupport (= 5.1.5)
|
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.1.
|
43
|
-
activesupport (= 5.1.
|
42
|
+
activejob (5.1.5)
|
43
|
+
activesupport (= 5.1.5)
|
44
44
|
globalid (>= 0.3.6)
|
45
|
-
activemodel (5.1.
|
46
|
-
activesupport (= 5.1.
|
47
|
-
activerecord (5.1.
|
48
|
-
activemodel (= 5.1.
|
49
|
-
activesupport (= 5.1.
|
45
|
+
activemodel (5.1.5)
|
46
|
+
activesupport (= 5.1.5)
|
47
|
+
activerecord (5.1.5)
|
48
|
+
activemodel (= 5.1.5)
|
49
|
+
activesupport (= 5.1.5)
|
50
50
|
arel (~> 8.0)
|
51
|
-
activesupport (5.1.
|
51
|
+
activesupport (5.1.5)
|
52
52
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
53
53
|
i18n (~> 0.7)
|
54
54
|
minitest (~> 5.1)
|
@@ -66,12 +66,12 @@ GEM
|
|
66
66
|
coffee-script-source (1.12.2)
|
67
67
|
concurrent-ruby (1.0.5)
|
68
68
|
crass (1.0.3)
|
69
|
-
erubi (1.7.
|
69
|
+
erubi (1.7.1)
|
70
70
|
execjs (2.7.0)
|
71
71
|
globalid (0.4.1)
|
72
72
|
activesupport (>= 4.2.0)
|
73
73
|
htmlentities (4.3.4)
|
74
|
-
i18n (0.9.
|
74
|
+
i18n (0.9.5)
|
75
75
|
concurrent-ruby (~> 1.0)
|
76
76
|
jquery-rails (4.3.1)
|
77
77
|
rails-dom-testing (>= 1, < 3)
|
@@ -89,48 +89,48 @@ GEM
|
|
89
89
|
activerecord
|
90
90
|
kaminari-core (= 1.1.1)
|
91
91
|
kaminari-core (1.1.1)
|
92
|
-
loofah (2.
|
92
|
+
loofah (2.2.2)
|
93
93
|
crass (~> 1.0.2)
|
94
94
|
nokogiri (>= 1.5.9)
|
95
95
|
mail (2.7.0)
|
96
96
|
mini_mime (>= 0.1.1)
|
97
|
-
manual_slug (0.
|
97
|
+
manual_slug (0.4.0)
|
98
98
|
activesupport
|
99
99
|
method_source (0.9.0)
|
100
100
|
mini_mime (1.0.0)
|
101
101
|
mini_portile2 (2.3.0)
|
102
102
|
minitest (5.11.3)
|
103
|
-
nio4r (2.
|
103
|
+
nio4r (2.3.0)
|
104
104
|
nokogiri (1.8.2)
|
105
105
|
mini_portile2 (~> 2.3.0)
|
106
|
-
public_suffix (3.0.
|
107
|
-
rack (2.0.
|
108
|
-
rack-test (0.8.
|
106
|
+
public_suffix (3.0.2)
|
107
|
+
rack (2.0.4)
|
108
|
+
rack-test (0.8.3)
|
109
109
|
rack (>= 1.0, < 3)
|
110
|
-
rails (5.1.
|
111
|
-
actioncable (= 5.1.
|
112
|
-
actionmailer (= 5.1.
|
113
|
-
actionpack (= 5.1.
|
114
|
-
actionview (= 5.1.
|
115
|
-
activejob (= 5.1.
|
116
|
-
activemodel (= 5.1.
|
117
|
-
activerecord (= 5.1.
|
118
|
-
activesupport (= 5.1.
|
110
|
+
rails (5.1.5)
|
111
|
+
actioncable (= 5.1.5)
|
112
|
+
actionmailer (= 5.1.5)
|
113
|
+
actionpack (= 5.1.5)
|
114
|
+
actionview (= 5.1.5)
|
115
|
+
activejob (= 5.1.5)
|
116
|
+
activemodel (= 5.1.5)
|
117
|
+
activerecord (= 5.1.5)
|
118
|
+
activesupport (= 5.1.5)
|
119
119
|
bundler (>= 1.3.0)
|
120
|
-
railties (= 5.1.
|
120
|
+
railties (= 5.1.5)
|
121
121
|
sprockets-rails (>= 2.0.0)
|
122
122
|
rails-dom-testing (2.0.3)
|
123
123
|
activesupport (>= 4.2.0)
|
124
124
|
nokogiri (>= 1.6)
|
125
125
|
rails-html-sanitizer (1.0.3)
|
126
126
|
loofah (~> 2.0)
|
127
|
-
railties (5.1.
|
128
|
-
actionpack (= 5.1.
|
129
|
-
activesupport (= 5.1.
|
127
|
+
railties (5.1.5)
|
128
|
+
actionpack (= 5.1.5)
|
129
|
+
activesupport (= 5.1.5)
|
130
130
|
method_source
|
131
131
|
rake (>= 0.8.7)
|
132
132
|
thor (>= 0.18.1, < 2.0)
|
133
|
-
rake (12.3.
|
133
|
+
rake (12.3.1)
|
134
134
|
smart_excerpt (0.1.5)
|
135
135
|
activesupport
|
136
136
|
htmlentities
|
@@ -141,10 +141,10 @@ GEM
|
|
141
141
|
actionpack (>= 4.0)
|
142
142
|
activesupport (>= 4.0)
|
143
143
|
sprockets (>= 3.0.0)
|
144
|
-
stringex (2.8.
|
144
|
+
stringex (2.8.4)
|
145
145
|
thor (0.20.0)
|
146
146
|
thread_safe (0.3.6)
|
147
|
-
tzinfo (1.2.
|
147
|
+
tzinfo (1.2.5)
|
148
148
|
thread_safe (~> 0.1)
|
149
149
|
validates_email_format_of (1.6.3)
|
150
150
|
i18n
|
@@ -4,7 +4,7 @@ module RsErrors
|
|
4
4
|
if Rails.env.production? || Rails.env.staging?
|
5
5
|
rescue_from Exception, with: :render_500
|
6
6
|
rescue_from ActionController::RoutingError, with: :render_404
|
7
|
-
rescue_from ActionController::UnknownController, with: :render_404
|
7
|
+
#rescue_from ActionController::UnknownController, with: :render_404
|
8
8
|
rescue_from ActionController::MissingFile, with: :render_404
|
9
9
|
if RocketCMS.mongoid?
|
10
10
|
rescue_from Mongoid::Errors::DocumentNotFound, with: :render_404
|
@@ -17,7 +17,7 @@ module RsMenu
|
|
17
17
|
cr = item.clean_regexp
|
18
18
|
navigation_item(primary, item, block)
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
def navigation_item(primary, item, block=nil)
|
22
22
|
url = nav_get_url(item)
|
23
23
|
if block.nil?
|
@@ -29,7 +29,10 @@ module RsMenu
|
|
29
29
|
|
30
30
|
def navigation(type)
|
31
31
|
Proc.new do |primary|
|
32
|
-
SimpleNavigation
|
32
|
+
if defined?(SimpleNavigation)
|
33
|
+
SimpleNavigation.config.autogenerate_item_ids = false
|
34
|
+
end
|
35
|
+
|
33
36
|
begin
|
34
37
|
nav_extra_data_before(type, primary)
|
35
38
|
items = nav_get_menu_items(type).select { |i| !i.name.blank? && i.enabled }
|
@@ -1,2 +1,2 @@
|
|
1
1
|
- values = form.object.class.send(field.method_name).values.map { |v| [t("enumerize.#{form.object.class.name.underscore}.#{field.method_name}.#{v}", default: t("enumerize.defaults.#{field.method_name}.#{v}")), v] }
|
2
|
-
= form.collection_check_boxes
|
2
|
+
= form.collection_check_boxes(field.method_name, values, :last, :first, {}, {}) { |i| i.label( class: 'checkbox' ) { i.check_box + i.text } }
|
@@ -1,2 +1,2 @@
|
|
1
1
|
- values = form.object.class.send(field.method_name).values.map { |v| [t("enumerize.#{form.object.class.name.underscore}.#{field.method_name}.#{v}", default: t("enumerize.defaults.#{field.method_name}.#{v}")), v] }
|
2
|
-
= form.collection_radio_buttons
|
2
|
+
= form.collection_radio_buttons(field.method_name, values, :last, :first, {}, {}) { |i| i.label(class: 'radio') { i.radio_button + i.text } }
|
@@ -7,7 +7,7 @@ module RocketCMS
|
|
7
7
|
|
8
8
|
included do
|
9
9
|
apply_simple_captcha if respond_to?(:apply_simple_captcha)
|
10
|
-
validates_email_format_of :email, unless:
|
10
|
+
validates_email_format_of :email, unless: -> { email.blank? }
|
11
11
|
if RocketCMS.config.contacts_message_required
|
12
12
|
validates_presence_of :content
|
13
13
|
end
|
data/lib/rocket_cms/version.rb
CHANGED
data/rocket_cms.gemspec
CHANGED
@@ -20,8 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_development_dependency 'bundler'
|
21
21
|
spec.add_development_dependency 'rake'
|
22
22
|
|
23
|
-
spec.add_dependency 'rails', '>=
|
24
|
-
|
23
|
+
spec.add_dependency 'rails', '>= 5.1', '< 5.3'
|
25
24
|
spec.add_dependency 'jquery-rails'
|
26
25
|
spec.add_dependency 'coffee-rails'
|
27
26
|
#spec.add_dependency 'turbolinks'
|
@@ -32,5 +31,4 @@ Gem::Specification.new do |spec|
|
|
32
31
|
spec.add_dependency 'thor'
|
33
32
|
spec.add_dependency 'smart_excerpt'
|
34
33
|
spec.add_dependency 'manual_slug'
|
35
|
-
|
36
34
|
end
|
data/template.rb
CHANGED
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.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,20 +44,20 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '5.1'
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
50
|
+
version: '5.3'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
57
|
+
version: '5.1'
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '5.3'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: jquery-rails
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -352,7 +352,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
352
352
|
version: '0'
|
353
353
|
requirements: []
|
354
354
|
rubyforge_project:
|
355
|
-
rubygems_version: 2.7.
|
355
|
+
rubygems_version: 2.7.6
|
356
356
|
signing_key:
|
357
357
|
specification_version: 4
|
358
358
|
summary: Please DO NOT use this gem directly, use rocket_cms_mongoid or rocket_cms_activerecord
|