rocket_cms 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -2
- data/app/models/contact_message.rb +3 -1
- data/app/models/menu.rb +4 -1
- data/app/models/news.rb +4 -1
- data/app/models/page.rb +4 -1
- data/app/models/seo.rb +4 -1
- data/lib/rocket_cms.rb +6 -1
- data/lib/rocket_cms/model.rb +3 -1
- data/lib/rocket_cms/models/contact_message.rb +1 -1
- data/lib/rocket_cms/version.rb +1 -1
- data/rocket_cms.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a004908635e7d54467b015f017e5e03242abd1ae
|
4
|
+
data.tar.gz: 8cb80dbc52fd4f3dff0a973f432e80bebd7601d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c8ab54c03d3c4406979187908a97f4b42b695378737c6c60d7079ff6d63eaa7f8106bed40561f7d99031b4532e3e31b2ca8f6c47366a7be3f56216ac82e3997
|
7
|
+
data.tar.gz: 9b85d985870c23b1c5a7a29c056e3bbdf5cfc932cb13c4a5f9f83bf3d00432677a28055708507f7b85db103a849dc20c881d3843618f774fa31d9221de45513e
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rocket_cms (0.12.
|
4
|
+
rocket_cms (0.12.1)
|
5
5
|
addressable
|
6
6
|
coffee-rails
|
7
7
|
jquery-rails
|
8
|
+
kaminari
|
8
9
|
rails (>= 4.1.0, < 5.1)
|
9
10
|
smart_excerpt
|
10
11
|
stringex
|
@@ -72,6 +73,9 @@ GEM
|
|
72
73
|
railties (>= 4.2.0)
|
73
74
|
thor (>= 0.14, < 2.0)
|
74
75
|
json (1.8.3)
|
76
|
+
kaminari (0.16.3)
|
77
|
+
actionpack (>= 3.0.0)
|
78
|
+
activesupport (>= 3.0.0)
|
75
79
|
loofah (2.0.3)
|
76
80
|
nokogiri (>= 1.5.9)
|
77
81
|
mail (2.6.4)
|
@@ -140,4 +144,4 @@ DEPENDENCIES
|
|
140
144
|
rocket_cms!
|
141
145
|
|
142
146
|
BUNDLED WITH
|
143
|
-
1.12.
|
147
|
+
1.12.5
|
data/app/models/menu.rb
CHANGED
data/app/models/news.rb
CHANGED
data/app/models/page.rb
CHANGED
data/app/models/seo.rb
CHANGED
@@ -6,11 +6,14 @@ end
|
|
6
6
|
class Seo
|
7
7
|
include RocketCMS::Models::Seo
|
8
8
|
RocketCMS.apply_patches self
|
9
|
-
rails_admin &RocketCMS.seo_config
|
10
9
|
belongs_to :seoable, polymorphic: true
|
11
10
|
|
12
11
|
def self.separate_table?
|
13
12
|
(RocketCMS.mongoid? && RocketCMS.config.separate_seo_table) || (RocketCMS.active_record? && Seo.table_exists?)
|
14
13
|
end
|
14
|
+
|
15
|
+
if respond_to?(:rails_admin)
|
16
|
+
rails_admin &RocketCMS.seo_config
|
17
|
+
end
|
15
18
|
end
|
16
19
|
|
data/lib/rocket_cms.rb
CHANGED
@@ -18,7 +18,9 @@ require 'rocket_cms/patch'
|
|
18
18
|
require 'rocket_cms/admin'
|
19
19
|
require 'rocket_cms/search'
|
20
20
|
require 'rocket_cms/model'
|
21
|
-
|
21
|
+
if defined?(RailsAdmin)
|
22
|
+
require 'rocket_cms/rails_admin_menu'
|
23
|
+
end
|
22
24
|
require 'rocket_cms/engine'
|
23
25
|
require 'rocket_cms/controller'
|
24
26
|
|
@@ -27,6 +29,9 @@ module RocketCMS
|
|
27
29
|
def mongoid?
|
28
30
|
RocketCMS.orm == :mongoid
|
29
31
|
end
|
32
|
+
def full?
|
33
|
+
!RocketCMS.light?
|
34
|
+
end
|
30
35
|
def active_record?
|
31
36
|
RocketCMS.orm == :active_record
|
32
37
|
end
|
data/lib/rocket_cms/model.rb
CHANGED
@@ -6,7 +6,7 @@ module RocketCMS
|
|
6
6
|
include RocketCMS.orm_specific('ContactMessage')
|
7
7
|
|
8
8
|
included do
|
9
|
-
apply_simple_captcha
|
9
|
+
apply_simple_captcha if respond_to?(:apply_simple_captcha)
|
10
10
|
validates_email_format_of :email, unless: 'email.blank?'
|
11
11
|
if RocketCMS.config.contacts_message_required
|
12
12
|
validates_presence_of :content
|
data/lib/rocket_cms/version.rb
CHANGED
data/rocket_cms.gemspec
CHANGED
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.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
@@ -142,6 +142,20 @@ dependencies:
|
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: kaminari
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :runtime
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
145
159
|
- !ruby/object:Gem::Dependency
|
146
160
|
name: thor
|
147
161
|
requirement: !ruby/object:Gem::Requirement
|