rocket_cms 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +40 -40
- data/app/views/shared/_og.html.haml +4 -0
- data/lib/generators/rocket_cms/templates/migration_pages.rb +2 -2
- data/lib/rails_admin/custom_show_in_app.rb +1 -1
- data/lib/rocket_cms.rb +4 -4
- data/lib/rocket_cms/version.rb +1 -1
- data/template.rb +1 -0
- 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: ba8b3ac783daabae929a82a733e1a874febf032d
|
4
|
+
data.tar.gz: 9d563f9ec16d7c72c99f078c48436b7ef9770f20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff7227e2e07387743852dce70399c64bd9b31c6f7f486aed16f6dc84bf055a072ed26ebd6e06162e3d40d238644bd8236e7e6955b8a47d16f410514c6c5fdbea
|
7
|
+
data.tar.gz: 64239fb8629a5b9863bee331c9b99c5e3c72bd982570a1bf81a4bde2ea02f1c24f423c1e4c1f93ef8a1c88a66818e22985c42c1d9f830baaa620ba7835c354b9
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rocket_cms (0.9.
|
4
|
+
rocket_cms (0.9.3)
|
5
5
|
addressable
|
6
6
|
coffee-rails
|
7
7
|
devise
|
@@ -27,36 +27,36 @@ PATH
|
|
27
27
|
GEM
|
28
28
|
remote: https://rubygems.org/
|
29
29
|
specs:
|
30
|
-
actionmailer (4.2.
|
31
|
-
actionpack (= 4.2.
|
32
|
-
actionview (= 4.2.
|
33
|
-
activejob (= 4.2.
|
30
|
+
actionmailer (4.2.5)
|
31
|
+
actionpack (= 4.2.5)
|
32
|
+
actionview (= 4.2.5)
|
33
|
+
activejob (= 4.2.5)
|
34
34
|
mail (~> 2.5, >= 2.5.4)
|
35
35
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
36
|
-
actionpack (4.2.
|
37
|
-
actionview (= 4.2.
|
38
|
-
activesupport (= 4.2.
|
36
|
+
actionpack (4.2.5)
|
37
|
+
actionview (= 4.2.5)
|
38
|
+
activesupport (= 4.2.5)
|
39
39
|
rack (~> 1.6)
|
40
40
|
rack-test (~> 0.6.2)
|
41
41
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
42
42
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
43
|
-
actionview (4.2.
|
44
|
-
activesupport (= 4.2.
|
43
|
+
actionview (4.2.5)
|
44
|
+
activesupport (= 4.2.5)
|
45
45
|
builder (~> 3.1)
|
46
46
|
erubis (~> 2.7.0)
|
47
47
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
48
48
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
49
|
-
activejob (4.2.
|
50
|
-
activesupport (= 4.2.
|
49
|
+
activejob (4.2.5)
|
50
|
+
activesupport (= 4.2.5)
|
51
51
|
globalid (>= 0.3.0)
|
52
|
-
activemodel (4.2.
|
53
|
-
activesupport (= 4.2.
|
52
|
+
activemodel (4.2.5)
|
53
|
+
activesupport (= 4.2.5)
|
54
54
|
builder (~> 3.1)
|
55
|
-
activerecord (4.2.
|
56
|
-
activemodel (= 4.2.
|
57
|
-
activesupport (= 4.2.
|
55
|
+
activerecord (4.2.5)
|
56
|
+
activemodel (= 4.2.5)
|
57
|
+
activesupport (= 4.2.5)
|
58
58
|
arel (~> 6.0)
|
59
|
-
activesupport (4.2.
|
59
|
+
activesupport (4.2.5)
|
60
60
|
i18n (~> 0.7)
|
61
61
|
json (~> 1.7, >= 1.7.7)
|
62
62
|
minitest (~> 5.1)
|
@@ -72,7 +72,7 @@ GEM
|
|
72
72
|
coffee-script (2.4.1)
|
73
73
|
coffee-script-source
|
74
74
|
execjs
|
75
|
-
coffee-script-source (1.
|
75
|
+
coffee-script-source (1.10.0)
|
76
76
|
devise (3.5.2)
|
77
77
|
bcrypt (~> 3.0)
|
78
78
|
orm_adapter (~> 0.1)
|
@@ -82,9 +82,9 @@ GEM
|
|
82
82
|
warden (~> 1.2.3)
|
83
83
|
erubis (2.7.0)
|
84
84
|
execjs (2.6.0)
|
85
|
-
font-awesome-rails (4.
|
85
|
+
font-awesome-rails (4.5.0.0)
|
86
86
|
railties (>= 3.2, < 5.0)
|
87
|
-
geocoder (1.2.
|
87
|
+
geocoder (1.2.12)
|
88
88
|
glebtv-ckeditor (4.4.7.4)
|
89
89
|
mime-types
|
90
90
|
mini_magick
|
@@ -112,13 +112,13 @@ GEM
|
|
112
112
|
nokogiri (>= 1.5.9)
|
113
113
|
mail (2.6.3)
|
114
114
|
mime-types (>= 1.16, < 3)
|
115
|
-
mime-types (2.
|
115
|
+
mime-types (2.99)
|
116
116
|
mini_magick (4.3.6)
|
117
|
-
|
118
|
-
minitest (5.8.
|
117
|
+
mini_portile2 (2.0.0)
|
118
|
+
minitest (5.8.3)
|
119
119
|
nested_form (0.3.2)
|
120
|
-
nokogiri (1.6.
|
121
|
-
|
120
|
+
nokogiri (1.6.7)
|
121
|
+
mini_portile2 (~> 2.0.0.rc2)
|
122
122
|
orm_adapter (0.5.0)
|
123
123
|
rack (1.6.4)
|
124
124
|
rack-pjax (0.8.0)
|
@@ -126,16 +126,16 @@ GEM
|
|
126
126
|
rack (~> 1.1)
|
127
127
|
rack-test (0.6.3)
|
128
128
|
rack (>= 1.0)
|
129
|
-
rails (4.2.
|
130
|
-
actionmailer (= 4.2.
|
131
|
-
actionpack (= 4.2.
|
132
|
-
actionview (= 4.2.
|
133
|
-
activejob (= 4.2.
|
134
|
-
activemodel (= 4.2.
|
135
|
-
activerecord (= 4.2.
|
136
|
-
activesupport (= 4.2.
|
129
|
+
rails (4.2.5)
|
130
|
+
actionmailer (= 4.2.5)
|
131
|
+
actionpack (= 4.2.5)
|
132
|
+
actionview (= 4.2.5)
|
133
|
+
activejob (= 4.2.5)
|
134
|
+
activemodel (= 4.2.5)
|
135
|
+
activerecord (= 4.2.5)
|
136
|
+
activesupport (= 4.2.5)
|
137
137
|
bundler (>= 1.3.0, < 2.0)
|
138
|
-
railties (= 4.2.
|
138
|
+
railties (= 4.2.5)
|
139
139
|
sprockets-rails
|
140
140
|
rails-deprecated_sanitizer (1.0.3)
|
141
141
|
activesupport (>= 4.2.0.alpha)
|
@@ -145,7 +145,7 @@ GEM
|
|
145
145
|
rails-deprecated_sanitizer (>= 1.0.1)
|
146
146
|
rails-html-sanitizer (1.0.2)
|
147
147
|
loofah (~> 2.0)
|
148
|
-
rails_admin (0.
|
148
|
+
rails_admin (0.8.1)
|
149
149
|
builder (~> 3.1)
|
150
150
|
coffee-rails (~> 4.0)
|
151
151
|
font-awesome-rails (>= 3.0, < 5)
|
@@ -164,9 +164,9 @@ GEM
|
|
164
164
|
rails_admin_settings (1.0.1)
|
165
165
|
rails_admin_toggleable (0.5.1)
|
166
166
|
rails_admin
|
167
|
-
railties (4.2.
|
168
|
-
actionpack (= 4.2.
|
169
|
-
activesupport (= 4.2.
|
167
|
+
railties (4.2.5)
|
168
|
+
actionpack (= 4.2.5)
|
169
|
+
activesupport (= 4.2.5)
|
170
170
|
rake (>= 0.8.7)
|
171
171
|
thor (>= 0.18.1, < 2.0)
|
172
172
|
rake (10.4.2)
|
@@ -191,7 +191,7 @@ GEM
|
|
191
191
|
smart_excerpt (0.1.5)
|
192
192
|
activesupport
|
193
193
|
htmlentities
|
194
|
-
sprockets (3.4.
|
194
|
+
sprockets (3.4.1)
|
195
195
|
rack (> 1, < 3)
|
196
196
|
sprockets-rails (2.3.3)
|
197
197
|
actionpack (>= 3.0)
|
@@ -2,3 +2,7 @@
|
|
2
2
|
%meta{property: 'og:title', content: title}
|
3
3
|
- if defined?(image) && !image.blank?
|
4
4
|
%meta{property: 'og:image', content: "http://#{request.host_with_port}#{image}"}
|
5
|
+
- if defined?(desc) && !desc.blank?
|
6
|
+
%meta{property: 'og:description', content: desc}
|
7
|
+
- if defined?(url) && !url.blank?
|
8
|
+
%meta{property: 'og:url', content: url}
|
@@ -38,8 +38,8 @@ class RocketCmsCreatePages < ActiveRecord::Migration
|
|
38
38
|
|
39
39
|
create_join_table :menus, :pages
|
40
40
|
|
41
|
-
add_foreign_key(:menus_pages, :menus,
|
42
|
-
add_foreign_key(:menus_pages, :pages,
|
41
|
+
add_foreign_key(:menus_pages, :menus, on_delete: :cascade)
|
42
|
+
add_foreign_key(:menus_pages, :pages, on_delete: :cascade)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
data/lib/rocket_cms.rb
CHANGED
@@ -50,18 +50,18 @@ module RocketCMS
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def custom_app_url(object)
|
53
|
-
|
53
|
+
Rails.application.routes.url_helpers.url_for(object)
|
54
54
|
end
|
55
55
|
|
56
56
|
def app_url(object)
|
57
57
|
if object.class.name == 'Page'
|
58
58
|
if object.fullpath.blank?
|
59
|
-
|
59
|
+
Rails.application.routes.url_helpers.page_url(object)
|
60
60
|
else
|
61
|
-
|
61
|
+
object.fullpath
|
62
62
|
end
|
63
63
|
elsif object.class.name == 'News'
|
64
|
-
|
64
|
+
Rails.application.routes.url_helpers.news_url(object)
|
65
65
|
else
|
66
66
|
RocketCMS.custom_app_url(object)
|
67
67
|
end
|
data/lib/rocket_cms/version.rb
CHANGED
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.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|