aws-cloudfront 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ module AWS
|
|
24
24
|
private
|
25
25
|
|
26
26
|
def resource_uri(path)
|
27
|
-
URI.parse("https://cloudfront.amazonaws.com/2012-
|
27
|
+
URI.parse("https://cloudfront.amazonaws.com/2012-07-01/distribution/#{@id}/#{path}")
|
28
28
|
end
|
29
29
|
|
30
30
|
def config
|
@@ -103,7 +103,10 @@ module AWS
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def build_invalidation_batch(objects)
|
106
|
-
|
106
|
+
{'Paths' => {
|
107
|
+
'Items' => {'Path' => Array(objects)},
|
108
|
+
'Quantity' => [objects.length],
|
109
|
+
}, 'CallerReference' => [build_date_string]}
|
107
110
|
end
|
108
111
|
end
|
109
112
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-cloudfront
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-12-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: xml-simple
|