rocket_cms 0.7.0 → 0.7.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 +43 -43
- data/app/controllers/concerns/rs_errors.rb +6 -2
- data/app/views/contacts/new.html.haml +1 -2
- data/config/locales/en.rs.yml +1 -1
- data/config/locales/ru.rs.yml +1 -1
- data/lib/rocket_cms/version.rb +1 -1
- data/template.rb +1 -1
- 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: 15e24497b873e1c0fdaa11337bcf79ab60e44adc
|
4
|
+
data.tar.gz: ba371d9579621d7127501e34c652d09b0e1e5efd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17f988247d191712da293b791e127539488758fcbbc4f30688cbdd95638ef276649222a5fc7d6ff1a2e30274c57b3c5dcdf9b7b4cebdb01b7bd98fef964dd8f9
|
7
|
+
data.tar.gz: c5da155755ce1a3d5ff4addc5df3bb3cd142df201c1e2809089a0106cf3fd5abfbd259cbd2e44c3876584895f6f7a2d17d3a7d915ede16ad470b56cd6ecdf5c3
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rocket_cms (0.7.
|
4
|
+
rocket_cms (0.7.1)
|
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.2)
|
31
|
+
actionpack (= 4.2.2)
|
32
|
+
actionview (= 4.2.2)
|
33
|
+
activejob (= 4.2.2)
|
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.2)
|
37
|
+
actionview (= 4.2.2)
|
38
|
+
activesupport (= 4.2.2)
|
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.1)
|
43
|
-
actionview (4.2.
|
44
|
-
activesupport (= 4.2.
|
43
|
+
actionview (4.2.2)
|
44
|
+
activesupport (= 4.2.2)
|
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.1)
|
49
|
-
activejob (4.2.
|
50
|
-
activesupport (= 4.2.
|
49
|
+
activejob (4.2.2)
|
50
|
+
activesupport (= 4.2.2)
|
51
51
|
globalid (>= 0.3.0)
|
52
|
-
activemodel (4.2.
|
53
|
-
activesupport (= 4.2.
|
52
|
+
activemodel (4.2.2)
|
53
|
+
activesupport (= 4.2.2)
|
54
54
|
builder (~> 3.1)
|
55
|
-
activerecord (4.2.
|
56
|
-
activemodel (= 4.2.
|
57
|
-
activesupport (= 4.2.
|
55
|
+
activerecord (4.2.2)
|
56
|
+
activemodel (= 4.2.2)
|
57
|
+
activesupport (= 4.2.2)
|
58
58
|
arel (~> 6.0)
|
59
|
-
activesupport (4.2.
|
59
|
+
activesupport (4.2.2)
|
60
60
|
i18n (~> 0.7)
|
61
61
|
json (~> 1.7, >= 1.7.7)
|
62
62
|
minitest (~> 5.1)
|
@@ -73,7 +73,7 @@ GEM
|
|
73
73
|
coffee-script-source
|
74
74
|
execjs
|
75
75
|
coffee-script-source (1.9.1.1)
|
76
|
-
devise (3.
|
76
|
+
devise (3.5.1)
|
77
77
|
bcrypt (~> 3.0)
|
78
78
|
orm_adapter (~> 0.1)
|
79
79
|
railties (>= 3.2.6, < 5)
|
@@ -84,7 +84,7 @@ GEM
|
|
84
84
|
execjs (2.5.2)
|
85
85
|
font-awesome-rails (4.3.0.0)
|
86
86
|
railties (>= 3.2, < 5.0)
|
87
|
-
geocoder (1.2.
|
87
|
+
geocoder (1.2.9)
|
88
88
|
glebtv-ckeditor (4.4.7.3)
|
89
89
|
mime-types
|
90
90
|
mini_magick
|
@@ -97,13 +97,13 @@ GEM
|
|
97
97
|
tilt
|
98
98
|
htmlentities (4.3.3)
|
99
99
|
i18n (0.7.0)
|
100
|
-
jquery-rails (4.0.
|
100
|
+
jquery-rails (4.0.4)
|
101
101
|
rails-dom-testing (~> 1.0)
|
102
102
|
railties (>= 4.2.0)
|
103
103
|
thor (>= 0.14, < 2.0)
|
104
|
-
jquery-ui-rails (5.0.
|
104
|
+
jquery-ui-rails (5.0.5)
|
105
105
|
railties (>= 3.2.16)
|
106
|
-
json (1.8.
|
106
|
+
json (1.8.3)
|
107
107
|
kaminari (0.16.3)
|
108
108
|
actionpack (>= 3.0.0)
|
109
109
|
activesupport (>= 3.0.0)
|
@@ -111,30 +111,30 @@ GEM
|
|
111
111
|
nokogiri (>= 1.5.9)
|
112
112
|
mail (2.6.3)
|
113
113
|
mime-types (>= 1.16, < 3)
|
114
|
-
mime-types (2.
|
115
|
-
mini_magick (4.2.
|
114
|
+
mime-types (2.6.1)
|
115
|
+
mini_magick (4.2.7)
|
116
116
|
mini_portile (0.6.2)
|
117
|
-
minitest (5.
|
117
|
+
minitest (5.7.0)
|
118
118
|
nested_form (0.3.2)
|
119
119
|
nokogiri (1.6.6.2)
|
120
120
|
mini_portile (~> 0.6.0)
|
121
121
|
orm_adapter (0.5.0)
|
122
|
-
rack (1.6.
|
122
|
+
rack (1.6.4)
|
123
123
|
rack-pjax (0.8.0)
|
124
124
|
nokogiri (~> 1.5)
|
125
125
|
rack (~> 1.1)
|
126
126
|
rack-test (0.6.3)
|
127
127
|
rack (>= 1.0)
|
128
|
-
rails (4.2.
|
129
|
-
actionmailer (= 4.2.
|
130
|
-
actionpack (= 4.2.
|
131
|
-
actionview (= 4.2.
|
132
|
-
activejob (= 4.2.
|
133
|
-
activemodel (= 4.2.
|
134
|
-
activerecord (= 4.2.
|
135
|
-
activesupport (= 4.2.
|
128
|
+
rails (4.2.2)
|
129
|
+
actionmailer (= 4.2.2)
|
130
|
+
actionpack (= 4.2.2)
|
131
|
+
actionview (= 4.2.2)
|
132
|
+
activejob (= 4.2.2)
|
133
|
+
activemodel (= 4.2.2)
|
134
|
+
activerecord (= 4.2.2)
|
135
|
+
activesupport (= 4.2.2)
|
136
136
|
bundler (>= 1.3.0, < 2.0)
|
137
|
-
railties (= 4.2.
|
137
|
+
railties (= 4.2.2)
|
138
138
|
sprockets-rails
|
139
139
|
rails-deprecated_sanitizer (1.0.3)
|
140
140
|
activesupport (>= 4.2.0.alpha)
|
@@ -144,7 +144,7 @@ GEM
|
|
144
144
|
rails-deprecated_sanitizer (>= 1.0.1)
|
145
145
|
rails-html-sanitizer (1.0.2)
|
146
146
|
loofah (~> 2.0)
|
147
|
-
rails_admin (0.6.
|
147
|
+
rails_admin (0.6.8)
|
148
148
|
builder (~> 3.1)
|
149
149
|
coffee-rails (~> 4.0)
|
150
150
|
font-awesome-rails (>= 3.0, < 5)
|
@@ -163,9 +163,9 @@ GEM
|
|
163
163
|
rails_admin_settings (1.0.0)
|
164
164
|
rails_admin_toggleable (0.5.0)
|
165
165
|
rails_admin (~> 0.6.6)
|
166
|
-
railties (4.2.
|
167
|
-
actionpack (= 4.2.
|
168
|
-
activesupport (= 4.2.
|
166
|
+
railties (4.2.2)
|
167
|
+
actionpack (= 4.2.2)
|
168
|
+
activesupport (= 4.2.2)
|
169
169
|
rake (>= 0.8.7)
|
170
170
|
thor (>= 0.18.1, < 2.0)
|
171
171
|
rake (10.4.2)
|
@@ -173,7 +173,7 @@ GEM
|
|
173
173
|
responders (2.1.0)
|
174
174
|
railties (>= 4.2.0, < 5)
|
175
175
|
safe_yaml (1.0.4)
|
176
|
-
sass (3.4.
|
176
|
+
sass (3.4.14)
|
177
177
|
sass-rails (5.0.3)
|
178
178
|
railties (>= 4.0.0, < 5.0)
|
179
179
|
sass (~> 3.1)
|
@@ -190,9 +190,9 @@ GEM
|
|
190
190
|
smart_excerpt (0.1.5)
|
191
191
|
activesupport
|
192
192
|
htmlentities
|
193
|
-
sprockets (3.0
|
193
|
+
sprockets (3.2.0)
|
194
194
|
rack (~> 1.0)
|
195
|
-
sprockets-rails (2.
|
195
|
+
sprockets-rails (2.3.1)
|
196
196
|
actionpack (>= 3.0)
|
197
197
|
activesupport (>= 3.0)
|
198
198
|
sprockets (>= 2.8, < 4.0)
|
@@ -51,10 +51,14 @@ module RsErrors
|
|
51
51
|
capture_exception(exception) if defined?(Raven)
|
52
52
|
begin
|
53
53
|
if rails_admin?
|
54
|
-
render text: t('rs.errors.internal_error'), status: 500
|
54
|
+
render text: t('rs.errors.internal_error', klass: exception.class.name, message: exception.message), status: 500
|
55
55
|
return
|
56
56
|
end
|
57
|
-
rescue
|
57
|
+
rescue Exception => e
|
58
|
+
puts "error while rendering rails admin exception"
|
59
|
+
puts e.class.name
|
60
|
+
puts e.message
|
61
|
+
puts e.backtrace.join("\n")
|
58
62
|
end
|
59
63
|
render_error(500)
|
60
64
|
end
|
data/config/locales/en.rs.yml
CHANGED
@@ -19,6 +19,6 @@ en:
|
|
19
19
|
errors:
|
20
20
|
title: "Error %{code}"
|
21
21
|
form_expired: "Token expired"
|
22
|
-
internal_error: "Internal error"
|
22
|
+
internal_error: "Internal error: %{klass} %{message}"
|
23
23
|
access_denied: "Access denied"
|
24
24
|
not_found: 'The requested page was not found on this server'
|
data/config/locales/ru.rs.yml
CHANGED
@@ -19,6 +19,6 @@ ru:
|
|
19
19
|
errors:
|
20
20
|
title: "Ошибка %{code}"
|
21
21
|
form_expired: "Истекло время на заполение формы"
|
22
|
-
internal_error: "Внутренняя
|
22
|
+
internal_error: "Внутренняя ошибка: %{klass} %{message}"
|
23
23
|
access_denied: "Доступ запрещен"
|
24
24
|
not_found: 'Запрашиваемая страница была удалена, или введён некорректный адрес'
|
data/lib/rocket_cms/version.rb
CHANGED
data/template.rb
CHANGED
@@ -19,7 +19,7 @@ gem 'rails', '4.2.1'
|
|
19
19
|
|
20
20
|
gem 'sass', '~> 3.4.4'
|
21
21
|
|
22
|
-
#{if mongoid then "gem 'rocket_cms_mongoid'" else "gem 'rocket_cms_activerecord'" end}, '~> 0.
|
22
|
+
#{if mongoid then "gem 'rocket_cms_mongoid'" else "gem 'rocket_cms_activerecord'" end}, '~> 0.7.0'
|
23
23
|
|
24
24
|
gem 'sass-rails'
|
25
25
|
gem 'compass-rails', '~> 2.0.0'
|
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.7.
|
4
|
+
version: 0.7.1
|
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-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|