caboose-cms 0.6.8 → 0.6.9
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 +3 -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
|
+
YzNlNGVmNDBkYzVhNzViNzY1MThlMmI0NmVmMjU3ZmQ3MjhiNmYyNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjZiODExNDc0ZjA0MjY5ZjE5NDZmM2NjNzRjZmY3OWFkYmMzZTU4MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTI3ZTZiOTY5MmZjNmI4NzAzOGE3MTYxNWYzZDY1ZTRmZjNhNjlkOGM1ZTRk
|
10
|
+
MGM5NWZmNzExYTY4ODk4MWQ0MmQ4ZWQ2MzEzYmNjN2E0ZWNhNDEwZjM5ZWY2
|
11
|
+
NTBiOTUxN2FkODNmNzE5MjZiMWZjNDlhYzIyMTFhZGRmMzMzNDE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Yjc4NmY0NjdhYzBkM2Y0OTdiZWFiNjIwYjg4ZDQxYzk5MzhjOGNhNGVmYmYx
|
14
|
+
ZjFjNDE5YTZkOGZkZjk3ODJkNjkxZGM5ZTM5NGQ5OGFhYjRlNDdiZTE0MDYx
|
15
|
+
OWY2NzI5ZGUxMjUyMjMxMDZhODYzYWIzZjI5NDg4NmM0Y2JlNmE=
|
data/app/models/caboose/media.rb
CHANGED
@@ -39,8 +39,11 @@ class Caboose::Media < ActiveRecord::Base
|
|
39
39
|
bucket = config['bucket']
|
40
40
|
|
41
41
|
key = "#{self.media_category_id}_#{self.original_name}"
|
42
|
+
Caboose.log("key before encoding: #{key}")
|
42
43
|
key = URI.encode(key.gsub(' ', '+'))
|
44
|
+
Caboose.log("key after encoding: #{key}")
|
43
45
|
uri = "http://#{bucket}-uploads.s3.amazonaws.com/#{key}"
|
46
|
+
Caboose.log("uri: #{uri}")
|
44
47
|
|
45
48
|
image_extensions = ['.jpg', '.jpeg', '.gif', '.png', '.tif']
|
46
49
|
ext = File.extname(key).downcase
|
data/lib/caboose/version.rb
CHANGED