rocket_cms 0.8.0.pre.3 → 0.8.0.pre.4

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: 6a36963df30b2c7a976b876f39fabda448e51e3c
4
- data.tar.gz: 95c666cd81958f293669ba9fd12c1af03c85f9d3
3
+ metadata.gz: 789716626a614f49bdb9df0088fbeb82a0b3fde9
4
+ data.tar.gz: b121c37bdc1d3f33cefa0a4793dc32172714c821
5
5
  SHA512:
6
- metadata.gz: a4d20ee38f3f2fa0b1136331920a7ba7b45c8d3bdbef3c14b2925de63d0502bd8325acd1c289ddfc9677f1c2b105610e1fda03fdfc09dbf40bb8bccb84a5805a
7
- data.tar.gz: 29956ee542baa3507d8a4c99890998b7ebd1ff4f64a2d2dd8c4eaecf7d6815f754b134d1eb5e43f9405ff08b0b6db2c7b8437b45f85ef8ea4e6f021342a2cc3e
6
+ metadata.gz: 6af9640c59803b570e6fcd696b289b65869f5b5a737c2823a9a2d2657e997fb75b5d55f91cacb660e2f2b9431038109792348e71b37f04683bb170e65b40cd90
7
+ data.tar.gz: 523b2f3370fbd8df243f72b19a839739cfb4faef4d1234913c9e8a047e74903f67c8c381b4fc676868c5e6b1f655d0e39626d95f3b32392b2606c53490189d8b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.8.0.pre.3)
4
+ rocket_cms (0.8.0.pre.4)
5
5
  addressable
6
6
  coffee-rails
7
7
  devise
@@ -6,7 +6,6 @@ module RocketCMS
6
6
  included do
7
7
  unless RocketCMS.config.news_image_styles.nil?
8
8
  has_attached_file :image, styles: RocketCMS.config.news_image_styles
9
- validates_attachment_content_type :image, content_type: %w(image/gif image/jpeg image/jpg image/png), if: :image?
10
9
  end
11
10
 
12
11
  has_paper_trail
@@ -11,7 +11,6 @@ module RocketCMS
11
11
  index({enabled: 1, time: 1})
12
12
  unless RocketCMS.config.news_image_styles.nil?
13
13
  has_mongoid_attached_file :image, styles: RocketCMS.config.news_image_styles
14
- validates_attachment_content_type :image, content_type: %w(image/gif image/jpeg image/jpg image/png), if: :image?
15
14
  end
16
15
  field :name, type: String, localize: RocketCMS.config.localize
17
16
  field :excerpt, type: String, localize: RocketCMS.config.localize
@@ -13,6 +13,10 @@ module RocketCMS
13
13
  end
14
14
 
15
15
  included do
16
+ unless RocketCMS.config.news_image_styles.nil?
17
+ validates_attachment_content_type :image, content_type: /\Aimage\/.*\Z/, if: :image?
18
+ end
19
+
16
20
  validates_presence_of :name, :content
17
21
  before_validation do
18
22
  self.time = Time.now if self.time.blank?
@@ -8,7 +8,7 @@ module RocketCMS
8
8
 
9
9
  included do
10
10
  RocketCMS.apply_patches self
11
- validates_attachment_content_type :og_image, content_type: %w(image/gif image/jpeg image/jpg image/png), if: :og_image?
11
+ validates_attachment_content_type :og_image, content_type: /\Aimage\/.*\Z/, if: :og_image?
12
12
  end
13
13
  end
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.8.0.pre.3"
2
+ VERSION = "0.8.0.pre.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.pre.3
4
+ version: 0.8.0.pre.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv