ack_rocket_cms 0.7.2.2 → 0.7.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f39cfacc357ca647734190fedd1794b32d728dc
4
- data.tar.gz: e073a68790d363d36b7ef180b79f1ce998ba6e1c
3
+ metadata.gz: ed3237374d796ae783eaff50bb9ff41d2ab6586a
4
+ data.tar.gz: b3e115e147295f5262507d789e7159843aeb2833
5
5
  SHA512:
6
- metadata.gz: cd57575bbb83c2207cbbb0202284c9ee9dd28e3402160f21f46f85be82a373cda6102d4058036e9c67716231859985de6c96649b39556eeed95aa757b4a6ec7e
7
- data.tar.gz: a29f0e643d30da6c23f5a8667bf02ec0c327533c38a9003b8cbd4a64b0e6e845a6cc33aa01b9ef9118182c7a199e33b01edd4baa7f880356c83f0918fb7773c9
6
+ metadata.gz: 5312faddd8307cb31366534ba6cfb91d4642ae71b702db65f8cb4ee1a6fe34e721b489c4bc7d357ebeac901ba044df9e8f9d2b212d86a48dec94780dc5cb9b9d
7
+ data.tar.gz: 830167be96753beb0a4f7c5bfd6923a206f4bffcfe991376a88e7b76b169b5f0c9777abd50d1ddc59e13491dc6e831c2d65bad96b8c41ae044362a03608f1e21
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ack_rocket_cms (0.7.2.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.12)
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.0)
234
+ x-real-ip (0.2.1)
235
235
  activesupport
236
236
  rack
237
237
 
@@ -1,6 +1,17 @@
1
- - unless !obj.respond_to?(:keywords) || obj.keywords.blank?
1
+ - if obj.respond_to?(:keywords) and !obj.keywords.blank?
2
2
  %meta{name: "keywords", content: obj.keywords}/
3
- - unless !obj.respond_to?(:description) || obj.description.blank?
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
- - unless !obj.respond_to?(:robots) || obj.robots.blank?
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}/
@@ -3,6 +3,7 @@ module RocketCMS
3
3
  module Mongoid
4
4
  module News
5
5
  extend ActiveSupport::Concern
6
+ include FilenameToSlug
6
7
  unless RocketCMS.configuration.news_image_styles.nil?
7
8
  include ::Mongoid::Paperclip
8
9
  end
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.7.2.2"
2
+ VERSION = "0.7.2.3"
3
3
  end
@@ -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[:view].current_user.admin?
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[:view].current_user.admin?
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[:view].current_user.admin?
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[:view].current_user.admin? or bindings[:view].current_user == bindings[:object]
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[:view].current_user.admin? or bindings[:view].current_user == bindings[:object]
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.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-25 00:00:00.000000000 Z
12
+ date: 2015-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler