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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c561a9c54c086e5e2c2841a5bda68989ac749a54
4
- data.tar.gz: 9dadffa15b78de9ad6b319e1da5cca44b204a8cf
3
+ metadata.gz: ba8b3ac783daabae929a82a733e1a874febf032d
4
+ data.tar.gz: 9d563f9ec16d7c72c99f078c48436b7ef9770f20
5
5
  SHA512:
6
- metadata.gz: 390a696a45e6c1020d6ac16f3554218b7d112f954f1ec801c16d10058b6fdaa57e31e48ef7db0977eb28da9cb00f22b568e8e29d148128b6094b1c82b803d748
7
- data.tar.gz: a24fb04e148f58f00af442464cc50cf47aa5ac5d5983bc3fe3c5555930de9dcaece10a86df8d8f4e8986157a48df3dbb097deefe56b52a8978c0b6750df36f14
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.2)
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.4)
31
- actionpack (= 4.2.4)
32
- actionview (= 4.2.4)
33
- activejob (= 4.2.4)
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.4)
37
- actionview (= 4.2.4)
38
- activesupport (= 4.2.4)
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.4)
44
- activesupport (= 4.2.4)
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.4)
50
- activesupport (= 4.2.4)
49
+ activejob (4.2.5)
50
+ activesupport (= 4.2.5)
51
51
  globalid (>= 0.3.0)
52
- activemodel (4.2.4)
53
- activesupport (= 4.2.4)
52
+ activemodel (4.2.5)
53
+ activesupport (= 4.2.5)
54
54
  builder (~> 3.1)
55
- activerecord (4.2.4)
56
- activemodel (= 4.2.4)
57
- activesupport (= 4.2.4)
55
+ activerecord (4.2.5)
56
+ activemodel (= 4.2.5)
57
+ activesupport (= 4.2.5)
58
58
  arel (~> 6.0)
59
- activesupport (4.2.4)
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.9.1.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.4.0.0)
85
+ font-awesome-rails (4.5.0.0)
86
86
  railties (>= 3.2, < 5.0)
87
- geocoder (1.2.11)
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.6.2)
115
+ mime-types (2.99)
116
116
  mini_magick (4.3.6)
117
- mini_portile (0.6.2)
118
- minitest (5.8.1)
117
+ mini_portile2 (2.0.0)
118
+ minitest (5.8.3)
119
119
  nested_form (0.3.2)
120
- nokogiri (1.6.6.2)
121
- mini_portile (~> 0.6.0)
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.4)
130
- actionmailer (= 4.2.4)
131
- actionpack (= 4.2.4)
132
- actionview (= 4.2.4)
133
- activejob (= 4.2.4)
134
- activemodel (= 4.2.4)
135
- activerecord (= 4.2.4)
136
- activesupport (= 4.2.4)
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.4)
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.7.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.4)
168
- actionpack (= 4.2.4)
169
- activesupport (= 4.2.4)
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.0)
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, dependent: :delete)
42
- add_foreign_key(:menus_pages, :pages, dependent: :delete)
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
 
@@ -14,7 +14,7 @@ module RailsAdmin
14
14
 
15
15
  register_instance_option :controller do
16
16
  Proc.new do
17
- RocketCMS.app_url(@object)
17
+ redirect_to RocketCMS.app_url(@object)
18
18
  end
19
19
  end
20
20
 
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
- redirect_to Rails.application.routes.url_helpers.url_for(object)
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
- redirect_to Rails.application.routes.url_helpers.page_url(object)
59
+ Rails.application.routes.url_helpers.page_url(object)
60
60
  else
61
- redirect_to object.fullpath
61
+ object.fullpath
62
62
  end
63
63
  elsif object.class.name == 'News'
64
- redirect_to Rails.application.routes.url_helpers.news_url(object)
64
+ Rails.application.routes.url_helpers.news_url(object)
65
65
  else
66
66
  RocketCMS.custom_app_url(object)
67
67
  end
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
data/template.rb CHANGED
@@ -142,6 +142,7 @@ development:
142
142
  encoding: unicode
143
143
  database: #{app_name.downcase}_development
144
144
  pool: 5
145
+ host: 'localhost'
145
146
  username: #{app_name.downcase}
146
147
  password: #{app_name.downcase}
147
148
  template: template0
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.2
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-10-21 00:00:00.000000000 Z
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler