blogelator 1.0.1 → 1.0.2
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 +4 -4
- data/app/models/blogelator/author.rb +4 -2
- data/lib/blogelator/version.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: 989e866700acca33e3c0bf6cce106715e98ef1f6
|
|
4
|
+
data.tar.gz: 68eedb20e7fdd97a5cbce87cb9250007bf11c741
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
:
|
|
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
|
-
:
|
|
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
|
data/lib/blogelator/version.rb
CHANGED
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.
|
|
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-
|
|
12
|
+
date: 2016-02-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: paperclip
|