paperclip-cloudfiles 2.3.1.1.2 → 2.3.1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/paperclip.rb CHANGED
@@ -46,7 +46,7 @@ end
46
46
  # documentation for Paperclip::ClassMethods for more useful information.
47
47
  module Paperclip
48
48
 
49
- VERSION = "2.3.1.1.2"
49
+ VERSION = "2.3.1.1.3"
50
50
 
51
51
  class << self
52
52
  # Provides configurability to Paperclip. There are a number of options available, such as:
@@ -293,7 +293,8 @@ module Paperclip
293
293
  @@cdn_url ||= cloudfiles_container.cdn_url
294
294
  @path_filename = ":cf_path_filename" unless @url.to_s.match(/^:cf.*filename$/)
295
295
  @url = @@cdn_url + "/#{URI.encode(@path_filename).gsub(/&/,'%26')}"
296
- @path = @options[:path] || ":attachment/:id/:style/:basename.:extension"
296
+ @path = (Paperclip::Attachment.default_options[:path] == @options[:path]) ? ":attachment/:id/:style/:basename.:extension" : @options[:path]
297
+ File.open('/tmp/path.log', 'a+') {|f| f.write("Path is #{@path} from options #{@options[:path]}\n") }
297
298
  end
298
299
  Paperclip.interpolates(:cf_path_filename) do |attachment, style|
299
300
  attachment.path(style)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-cloudfiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1.1.2
4
+ version: 2.3.1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Yurek
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-31 00:00:00 -06:00
13
+ date: 2010-02-01 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency