blogelator 1.0.1 → 1.0.2

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: 53bd2ee0719665f9da2b1182c2f152e221b76ac6
4
- data.tar.gz: 485f4189322147503ded5bf6fa678e2323823e86
3
+ metadata.gz: 989e866700acca33e3c0bf6cce106715e98ef1f6
4
+ data.tar.gz: 68eedb20e7fdd97a5cbce87cb9250007bf11c741
5
5
  SHA512:
6
- metadata.gz: 4d8ea91064f5fc8e4bbbe27e2ea1930e02db70e41f89a13be899f0ce335d6b67de400c817cd4993abb7669628b4f20ab5fd06276f02e40c3b8c04783f85c1cbc
7
- data.tar.gz: ed1aaae4a74607e3b00cab853d791959bc7171232c89181f1e72734536c4212eda2cf5168eba07e187281a30ae39f8a9d23c591bb08f2a7f9298a8e8b7f3f80c
6
+ metadata.gz: e1a83b6eb28aed7eddd9309a1cbfd5424b90426d53049e8422bef07b229df482a5d1aa7f35eccb272f1700f21dd8ebdfdbc8a4441becf355e3e85912f0d49c2c
7
+ data.tar.gz: 13a2057e2c9345fbc2f7cc7adf5e588b902d803d9e186b74cc4cb80061915b42c7b60c1e5327068ad3edfda796ea856d02c4ed71696bfb552378763746501211
@@ -7,7 +7,7 @@ module Blogelator
7
7
  # Paperclip attached files
8
8
  # @see https://github.com/thoughtbot/paperclip
9
9
  has_attached_file(
10
- :profile_photo,
10
+ :cover_photo,
11
11
  styles: {
12
12
  retina: "242x116>",
13
13
  thumbnail: "121x58>"
@@ -15,7 +15,7 @@ module Blogelator
15
15
  )
16
16
 
17
17
  has_attached_file(
18
- :cover_photo,
18
+ :profile_photo,
19
19
  styles: {
20
20
  retina: "242x116>",
21
21
  thumbnail: "121x58>"
@@ -25,6 +25,8 @@ module Blogelator
25
25
  # Validations
26
26
  validates :name, presence: true
27
27
  validates :slug, presence: true, uniqueness: true
28
+ validates_attachment_content_type :cover_photo, content_type: /\Aimage\/.*\Z/
29
+ validates_attachment_content_type :profile_photo, content_type: /\Aimage\/.*\Z/
28
30
 
29
31
  # Callbacks
30
32
  before_save :parse_markdown
@@ -1,3 +1,3 @@
1
1
  module Blogelator
2
- VERSION = "1.0.1".freeze
2
+ VERSION = "1.0.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blogelator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-09 00:00:00.000000000 Z
12
+ date: 2016-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: paperclip