foresth-cloudfront_asset_host 1.0.6.1 → 1.0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6.1
1
+ 1.0.6.2
@@ -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.1"
8
+ s.version = "1.0.6.2"
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"]
@@ -110,7 +110,9 @@ module CloudfrontAssetHost
110
110
  def existing_keys
111
111
  @existing_keys ||= begin
112
112
  keys = []
113
- keys.concat bucket.keys('prefix' => CloudfrontAssetHost.key_prefix).map { |key| key.name }
113
+ prefix = CloudfrontAssetHost.key_prefix
114
+ prefix = "#{CloudfrontAssetHost.plain_prefix}/#{prefix}" if CloudfrontAssetHost.plain_prefix.present?
115
+ keys.concat bucket.keys('prefix' => prefix).map { |key| key.name }
114
116
  keys.concat bucket.keys('prefix' => CloudfrontAssetHost.gzip_prefix).map { |key| key.name }
115
117
  keys
116
118
  end
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: 69
4
+ hash: 67
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 6
10
- - 1
11
- version: 1.0.6.1
10
+ - 2
11
+ version: 1.0.6.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Menno van der Sman