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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45a015d259e8213f893cbc9ead86d8c40daaf219f5f8898fed47ce9996a569be
4
- data.tar.gz: f734d4c06c3fd966c0da6b87a1f248d1bded1e5ddbb0b49ee84c6729e7532df1
3
+ metadata.gz: c1894ec7ce4982aaecafca136f56bb70f222e6492dd169e3523a1e680b164c3b
4
+ data.tar.gz: ebb5e94cc9650abc145efb4b7dc91a7a595d6be8eb95d77cd441703ace6afaf8
5
5
  SHA512:
6
- metadata.gz: 89cb22c073968737c13f9eaefd854f46e4c4dc865a50760ef27097fcba7ab3ad527367cdc8c25a70512a6cfa4aedd36393c75cb63e6148220b57b055b49e5776
7
- data.tar.gz: 9347fa73bc25e59a80d08bc244976c6de5b54e38792e25155a590ff1bbde62a0e48eb7451af482d437321b56785084d7b490dcf88fdcb2940afad6e8c5b9f913
6
+ metadata.gz: d7bb26a2b581544dcfde6483e5243543fb517a80cdb24367a8d84538b5b5776105ddcd84fe4f576df3a64f766bf499903dfa090eb22d6cdadbf9ea636041273c
7
+ data.tar.gz: cd9d53504099abe24d90c33aeaab2033c497c2613f4a7c58adae0b01e6fd499ed62516c66b4293237721d08cd3777a65790002d10ac79140ab68778ec1c889ce
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.22.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 (>= 4.1.0, < 6.0)
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.4)
20
- actionpack (= 5.1.4)
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.4)
24
- actionpack (= 5.1.4)
25
- actionview (= 5.1.4)
26
- activejob (= 5.1.4)
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.4)
30
- actionview (= 5.1.4)
31
- activesupport (= 5.1.4)
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.4)
37
- activesupport (= 5.1.4)
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.4)
43
- activesupport (= 5.1.4)
42
+ activejob (5.1.5)
43
+ activesupport (= 5.1.5)
44
44
  globalid (>= 0.3.6)
45
- activemodel (5.1.4)
46
- activesupport (= 5.1.4)
47
- activerecord (5.1.4)
48
- activemodel (= 5.1.4)
49
- activesupport (= 5.1.4)
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.4)
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.0)
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.3)
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.1.1)
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.1.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.2.0)
103
+ nio4r (2.3.0)
104
104
  nokogiri (1.8.2)
105
105
  mini_portile2 (~> 2.3.0)
106
- public_suffix (3.0.1)
107
- rack (2.0.3)
108
- rack-test (0.8.2)
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.4)
111
- actioncable (= 5.1.4)
112
- actionmailer (= 5.1.4)
113
- actionpack (= 5.1.4)
114
- actionview (= 5.1.4)
115
- activejob (= 5.1.4)
116
- activemodel (= 5.1.4)
117
- activerecord (= 5.1.4)
118
- activesupport (= 5.1.4)
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.4)
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.4)
128
- actionpack (= 5.1.4)
129
- activesupport (= 5.1.4)
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.0)
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.2)
144
+ stringex (2.8.4)
145
145
  thor (0.20.0)
146
146
  thread_safe (0.3.6)
147
- tzinfo (1.2.4)
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.config.autogenerate_item_ids = false
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 field.method_name, values, :last, :first, {}, {} { |i| i.label( class: 'checkbox' ) { i.check_box + i.text } }
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 field.method_name, values, :last, :first, {}, {} { |i| i.label(class: 'radio') { i.radio_button + i.text } }
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: 'email.blank?'
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
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.22.0"
2
+ VERSION = "0.24.0"
3
3
  end
@@ -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', '>= 4.1.0', '< 6.0'
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
@@ -41,7 +41,6 @@ gem 'cancancan'
41
41
  gem 'cloner'
42
42
  gem 'puma'
43
43
 
44
- gem 'x-real-ip'
45
44
  gem 'sentry-raven'
46
45
 
47
46
  gem 'uglifier'
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.22.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-01-30 00:00:00.000000000 Z
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: 4.1.0
47
+ version: '5.1'
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '6.0'
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: 4.1.0
57
+ version: '5.1'
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: '6.0'
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.3
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