aws_s3_website_sync 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/aws_s3_website_sync/apply.rb +7 -1
- data/lib/aws_s3_website_sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b544fddb490a19fecdc2ac639886ea732f2fe6e313c9ce054f4b949518ad94bd
|
4
|
+
data.tar.gz: e57ed9767bed73b32b97e7b7d9dc131227535beec7df63f08ec8b6f0dd197a41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62d2dfea87cdd78a43c6f02a9e880f9064806269732a93f4a60dd2f82180c857b03ef42fd2d0f8a3715680bc929b2318e3ca0a262ad649aa1ad61dd04a0a4cf1
|
7
|
+
data.tar.gz: 288bda79db5fc7070b6a5620bb50421cc556c251ba64a3ba41cb7b1946ac52c47123095d16d146932d14e2f34c860d42b295aec5081d615849261adb2535701e
|
data/README.md
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
https://rubygems.org/gems/aws_s3_website_sync
|
@@ -88,7 +88,13 @@ module AwsS3WebsiteSync
|
|
88
88
|
def self.invalidate aws_access_key_id, aws_secret_access_key, aws_default_region, distribution_id, caller_reference, files
|
89
89
|
$logger.info "Apply.invalidate"
|
90
90
|
items = files.select{|t| %w{create update delete}.include?(t["action"]) }
|
91
|
-
items.map!{|t|
|
91
|
+
items.map!{|t|
|
92
|
+
# we can't invalidate /hello/index.html but instead /hello
|
93
|
+
# invalidation path is whatever the user sees in their web browser url.
|
94
|
+
"/" + t["path"].sub("index.html","")
|
95
|
+
}
|
96
|
+
puts "Invalidation Paths"
|
97
|
+
puts items.inspect
|
92
98
|
|
93
99
|
cloudfront = Aws::CloudFront::Client.new(
|
94
100
|
region: aws_default_region,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_s3_website_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TeacherSeat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-cloudfront
|