foresth-cloudfront_asset_host 1.0.6.2 → 1.0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6.2
1
+ 1.0.6.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{foresth-cloudfront_asset_host}
8
- s.version = "1.0.6.2"
8
+ s.version = "1.0.6.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Menno van der Sman"]
@@ -68,7 +68,7 @@ module CloudfrontAssetHost
68
68
  if cname.is_a?(Proc)
69
69
  host = cname.call(source, request)
70
70
  else
71
- host = (cname =~ /%d/) ? cname % (source.hash % 4) : cname
71
+ host = (cname =~ /%d/) ? cname % (source.hash % 4) : "#{cname}"
72
72
  end
73
73
  else
74
74
  host = "http://#{self.bucket_host}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foresth-cloudfront_asset_host
3
3
  version: !ruby/object:Gem::Version
4
- hash: 67
4
+ hash: 65
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 6
10
- - 2
11
- version: 1.0.6.2
10
+ - 3
11
+ version: 1.0.6.3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Menno van der Sman