caboose-cms 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose/media.rb +1 -0
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWMwNGE5MzMwM2M5YzliNTA3ZDcyNDQwMTljZGZlMTQxMTZkOWE2MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTk3NDg3MDlmMTVhZWFlY2E1MmJiY2MwZWI2YWViMzk1MWM1NDZkNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmM0ZjE0NmI3MjI2ZmUyMzJhM2FlYmQ0YmNkZmQ5ZGIzZDZmNmMyMDA3ZmUw
|
10
|
+
NmI1YzI3ODJhMDhhMWM4MjJkOGUxOTE0ODJmZGNkNWJlZGU3NWVmZWU2Yjk1
|
11
|
+
MTNmOGEwZTUxNDBjODY4ODUxYTU0NDcxYThiMDkzZDUzM2QyNzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2ZkMmIzMjNkMTk1MjI5MzAwMzk3N2UzM2I2ZDY2ZTk4ZTQ5M2ExZmE3OTJj
|
14
|
+
Mzg5MDIwY2RkNDNmM2YxNmYyYTlhMDQzMzczYWVmY2IzNmJlZmZmNDc3MzFk
|
15
|
+
NDRiYTNkNmViNGFmMWNlNzVmYTUxNTZkODQ5ZmQ4MjFiNDlkYzc=
|
data/app/models/caboose/media.rb
CHANGED
@@ -39,6 +39,7 @@ class Caboose::Media < ActiveRecord::Base
|
|
39
39
|
bucket = config['bucket']
|
40
40
|
|
41
41
|
key = "#{self.media_category_id}_#{self.original_name}"
|
42
|
+
key = URI.encode(key.gsub(' ', '+'))
|
42
43
|
uri = "http://#{bucket}-uploads.s3.amazonaws.com/#{key}"
|
43
44
|
|
44
45
|
image_extensions = ['.jpg', '.jpeg', '.gif', '.png', '.tif']
|
data/lib/caboose/version.rb
CHANGED