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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmE3N2IzNGI3ZWY0OGUxZGM2MjZjNDIyMjI3OWQ5NWI5ZmI2NGQ0Mw==
4
+ YzNlNGVmNDBkYzVhNzViNzY1MThlMmI0NmVmMjU3ZmQ3MjhiNmYyNQ==
5
5
  data.tar.gz: !binary |-
6
- YzkyODQ4Y2RjNGE4YWY3ZmZmZGQ3MzBmNTk3N2YyOTY5NzZhNDg0Mg==
6
+ YjZiODExNDc0ZjA0MjY5ZjE5NDZmM2NjNzRjZmY3OWFkYmMzZTU4MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTNiMGNlMDlkMjFlYTJmMGNiMmI5Y2MzNmI5MGJkNDk4NjM2ZGU3NWRkNWFl
10
- YjA4N2JhZGRjMzA0ZjBkYjEyNDFhOWNmZjI1YmFiMjVhOGNkYmE1NDNkNDJh
11
- YjAyZTNmNjkzYTMxMDc0ZDMyYzkwNmI1NjIwMjBhNGU3NDM0ZDk=
9
+ OTI3ZTZiOTY5MmZjNmI4NzAzOGE3MTYxNWYzZDY1ZTRmZjNhNjlkOGM1ZTRk
10
+ MGM5NWZmNzExYTY4ODk4MWQ0MmQ4ZWQ2MzEzYmNjN2E0ZWNhNDEwZjM5ZWY2
11
+ NTBiOTUxN2FkODNmNzE5MjZiMWZjNDlhYzIyMTFhZGRmMzMzNDE=
12
12
  data.tar.gz: !binary |-
13
- NTQ5OWI5MjM0NjFjMjA1M2I4Njk2NDRmYWZmNjNjMDZmYzc5MDk4NjIyNjUz
14
- MzA1OTJkMjRlMDRkZDlmYzU2NzA4YTVkMzg3NjdmZDFkYzNkMTk3ZmI4ZGI0
15
- ZWM3YTdkNWIyOTM3YTVmNzZmMThkMGI1NDhmMDc1NDI3NWQ1YTk=
13
+ Yjc4NmY0NjdhYzBkM2Y0OTdiZWFiNjIwYjg4ZDQxYzk5MzhjOGNhNGVmYmYx
14
+ ZjFjNDE5YTZkOGZkZjk3ODJkNjkxZGM5ZTM5NGQ5OGFhYjRlNDdiZTE0MDYx
15
+ OWY2NzI5ZGUxMjUyMjMxMDZhODYzYWIzZjI5NDg4NmM0Y2JlNmE=
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.6.8'
2
+ VERSION = '0.6.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry