ack_rocket_cms 0.7.2.2 → 0.7.2.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 +3 -3
- data/app/views/shared/_meta.html.haml +14 -3
- data/lib/rocket_cms/models/mongoid/news.rb +1 -0
- data/lib/rocket_cms/version.rb +1 -1
- data/template.rb +5 -5
- 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: ed3237374d796ae783eaff50bb9ff41d2ab6586a
|
4
|
+
data.tar.gz: b3e115e147295f5262507d789e7159843aeb2833
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5312faddd8307cb31366534ba6cfb91d4642ae71b702db65f8cb4ee1a6fe34e721b489c4bc7d357ebeac901ba044df9e8f9d2b212d86a48dec94780dc5cb9b9d
|
7
|
+
data.tar.gz: 830167be96753beb0a4f7c5bfd6923a206f4bffcfe991376a88e7b76b169b5f0c9777abd50d1ddc59e13491dc6e831c2d65bad96b8c41ae044362a03608f1e21
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ack_rocket_cms (0.7.2.
|
4
|
+
ack_rocket_cms (0.7.2.3)
|
5
5
|
addressable
|
6
6
|
coffee-rails
|
7
7
|
devise
|
@@ -193,7 +193,7 @@ GEM
|
|
193
193
|
responders (2.1.0)
|
194
194
|
railties (>= 4.2.0, < 5)
|
195
195
|
safe_yaml (1.0.4)
|
196
|
-
sass (3.4.
|
196
|
+
sass (3.4.13)
|
197
197
|
sass-rails (5.0.1)
|
198
198
|
railties (>= 4.0.0, < 5.0)
|
199
199
|
sass (~> 3.1)
|
@@ -231,7 +231,7 @@ GEM
|
|
231
231
|
i18n
|
232
232
|
warden (1.2.3)
|
233
233
|
rack (>= 1.0)
|
234
|
-
x-real-ip (0.2.
|
234
|
+
x-real-ip (0.2.1)
|
235
235
|
activesupport
|
236
236
|
rack
|
237
237
|
|
@@ -1,6 +1,17 @@
|
|
1
|
-
-
|
1
|
+
- if obj.respond_to?(:keywords) and !obj.keywords.blank?
|
2
2
|
%meta{name: "keywords", content: obj.keywords}/
|
3
|
-
-
|
3
|
+
- else
|
4
|
+
- if alt_obj and alt_obj.respond_to?(:keywords) and !alt_obj.keywords.blank?
|
5
|
+
%meta{name: "keywords", content: alt_obj.keywords}/
|
6
|
+
|
7
|
+
- if obj.respond_to?(:description) and !obj.description.blank?
|
4
8
|
%meta{name: "description", content: obj.description}/
|
5
|
-
-
|
9
|
+
- else
|
10
|
+
- if alt_obj and alt_obj.respond_to?(:description) and !alt_obj.description.blank?
|
11
|
+
%meta{name: "description", content: alt_obj.description}/
|
12
|
+
|
13
|
+
- if obj.respond_to?(:robots) and !obj.robots.blank?
|
6
14
|
%meta{name: "robots", content: obj.robots}/
|
15
|
+
- else
|
16
|
+
- if alt_obj and alt_obj.respond_to?(:robots) and !alt_obj.robots.blank?
|
17
|
+
%meta{name: "robots", content: alt_obj.robots}/
|
data/lib/rocket_cms/version.rb
CHANGED
data/template.rb
CHANGED
@@ -237,13 +237,13 @@ inject_into_file 'app/models/user.rb', before: /^end/ do <<-TEXT
|
|
237
237
|
edit do
|
238
238
|
field :email, :string do
|
239
239
|
visible do
|
240
|
-
bindings[:
|
240
|
+
bindings[:controller].current_user.admin?
|
241
241
|
end
|
242
242
|
end
|
243
243
|
field :name, :string
|
244
244
|
field :login, :string do
|
245
245
|
visible do
|
246
|
-
bindings[:
|
246
|
+
bindings[:controller].current_user.admin?
|
247
247
|
end
|
248
248
|
end
|
249
249
|
field :roles, :enum do
|
@@ -256,18 +256,18 @@ inject_into_file 'app/models/user.rb', before: /^end/ do <<-TEXT
|
|
256
256
|
end
|
257
257
|
|
258
258
|
visible do
|
259
|
-
bindings[:
|
259
|
+
bindings[:controller].current_user.admin?
|
260
260
|
end
|
261
261
|
end
|
262
262
|
|
263
263
|
field :password do
|
264
264
|
visible do
|
265
|
-
bindings[:
|
265
|
+
bindings[:controller].current_user.admin? or bindings[:controller].current_user == bindings[:object]
|
266
266
|
end
|
267
267
|
end
|
268
268
|
field :password_confirmation do
|
269
269
|
visible do
|
270
|
-
bindings[:
|
270
|
+
bindings[:controller].current_user.admin? or bindings[:controller].current_user == bindings[:object]
|
271
271
|
end
|
272
272
|
end
|
273
273
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ack_rocket_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.2.
|
4
|
+
version: 0.7.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02
|
12
|
+
date: 2015-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|