dsturnbull-carrierwave 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dsturnbull-carrierwave}
8
- s.version = "0.4.7"
8
+ s.version = "0.4.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Turnbull"]
@@ -89,6 +89,7 @@ Gem::Specification.new do |s|
89
89
  "pkg/carrierwave-0.4.5.gem",
90
90
  "pkg/dsturnbull-carrierwave-0.4.5.gem",
91
91
  "pkg/dsturnbull-carrierwave-0.4.6.gem",
92
+ "pkg/dsturnbull-carrierwave-0.4.7.gem",
92
93
  "rails_generators/uploader/USAGE",
93
94
  "rails_generators/uploader/templates/uploader.rb",
94
95
  "rails_generators/uploader/uploader_generator.rb",
@@ -56,7 +56,7 @@ module CarrierWave
56
56
  # end
57
57
  #
58
58
  # Now the resulting url will be
59
- #
59
+ #
60
60
  # http://bucketname.domain.tld/path/to/file
61
61
  #
62
62
  # instead of
@@ -109,7 +109,7 @@ module CarrierWave
109
109
  # [String] file's url
110
110
  #
111
111
  def url
112
- if @uploader.s3_cnamed
112
+ if @uploader.s3_cnamed
113
113
  ["http://", @uploader.s3_bucket, "/", @path].compact.join
114
114
  else
115
115
  ["http://s3.amazonaws.com", @uploader.s3_bucket, @path].compact.join('/')
@@ -150,7 +150,7 @@ module CarrierWave
150
150
 
151
151
  def self.mangle_path_for_s3(path)
152
152
  if path
153
- ::File.join(::File.dirname(path), CGI.escape(::File.basename(path)))
153
+ path.sub(/\+/, '%2B')
154
154
  end
155
155
  end
156
156
 
data/lib/carrierwave.rb CHANGED
@@ -7,7 +7,7 @@ require 'carrierwave/core_ext/inheritable_attributes'
7
7
 
8
8
  module CarrierWave
9
9
 
10
- VERSION = "0.4.7"
10
+ VERSION = "0.4.8"
11
11
 
12
12
  class << self
13
13
  attr_accessor :root
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 7
9
- version: 0.4.7
8
+ - 8
9
+ version: 0.4.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Turnbull
@@ -99,6 +99,7 @@ files:
99
99
  - pkg/carrierwave-0.4.5.gem
100
100
  - pkg/dsturnbull-carrierwave-0.4.5.gem
101
101
  - pkg/dsturnbull-carrierwave-0.4.6.gem
102
+ - pkg/dsturnbull-carrierwave-0.4.7.gem
102
103
  - rails_generators/uploader/USAGE
103
104
  - rails_generators/uploader/templates/uploader.rb
104
105
  - rails_generators/uploader/uploader_generator.rb