fastlane-plugin-aws_s3 2.0.0 → 2.0.1
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 733d4e8ad5102e8eb943a08a22ceceff539415ec8cdd888780537294165f2c67
|
|
4
|
+
data.tar.gz: 47a788ae5954bd3fc3a9188debf847ba9b975fdeff29adb77badf170038f3b23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4f503580810e56959001b855fc677185a4acf240c5618f5d6ad9d871fb2277d0711b1ac93ff855817ef9073f7943d5cef4f98526d80763c31397c323b7f435f
|
|
7
|
+
data.tar.gz: c30c426048d89bbb43566057ee7d90c05684581ae1d8bfe6f6bd78fd9e625e403a746ccb5d680c4eed7ef7bc76ffec2b002297b8f6407eb5f3f1cfa6b619605b
|
|
@@ -520,13 +520,16 @@ module Fastlane
|
|
|
520
520
|
app_directory = params[:app_directory]
|
|
521
521
|
url_part = s3_path
|
|
522
522
|
|
|
523
|
+
download_endpoint = params[:download_endpoint]
|
|
524
|
+
download_endpoint_replacement_regex = params[:download_endpoint_replacement_regex]
|
|
525
|
+
|
|
523
526
|
Actions.lane_context[SharedValues::S3_FILES_OUTPUT_PATHS] = []
|
|
524
527
|
files.each do |file|
|
|
525
528
|
file_basename = File.basename(file)
|
|
526
529
|
file_data = File.open(file, 'rb')
|
|
527
530
|
file_name = url_part + '/' + file_basename
|
|
528
531
|
|
|
529
|
-
file_url = self.upload_file(s3_client, s3_bucket, app_directory, file_name, file_data, acl, server_side_encryption)
|
|
532
|
+
file_url = self.upload_file(s3_client, s3_bucket, app_directory, file_name, file_data, acl, server_side_encryption, download_endpoint, download_endpoint_replacement_regex)
|
|
530
533
|
|
|
531
534
|
# Setting action and environment variables
|
|
532
535
|
Actions.lane_context[SharedValues::S3_FILES_OUTPUT_PATHS] << file_url
|
|
@@ -541,6 +544,9 @@ module Fastlane
|
|
|
541
544
|
url_part = s3_path
|
|
542
545
|
app_directory = params[:app_directory]
|
|
543
546
|
|
|
547
|
+
download_endpoint = params[:download_endpoint]
|
|
548
|
+
download_endpoint_replacement_regex = params[:download_endpoint_replacement_regex]
|
|
549
|
+
|
|
544
550
|
unless File.directory?(folder)
|
|
545
551
|
UI.user_error!("Invalid folder parameter. `#{File.expand_path(folder)} is not a directory!")
|
|
546
552
|
end
|
|
@@ -551,7 +557,7 @@ module Fastlane
|
|
|
551
557
|
file_relative_path_to_folder = Pathname.new(File.expand_path(file)).relative_path_from(Pathname.new(File.expand_path(folder))).to_s
|
|
552
558
|
file_name = url_part + '/' + file_relative_path_to_folder
|
|
553
559
|
|
|
554
|
-
file_url = self.upload_file(s3_client, s3_bucket, app_directory, file_name, file_data, acl, server_side_encryption)
|
|
560
|
+
file_url = self.upload_file(s3_client, s3_bucket, app_directory, file_name, file_data, acl, server_side_encryption, download_endpoint, download_endpoint_replacement_regex)
|
|
555
561
|
Actions.lane_context[SharedValues::S3_FOLDER_OUTPUT_PATH] = CGI.unescape(file_url).gsub('/' + file_relative_path_to_folder, '')
|
|
556
562
|
end
|
|
557
563
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-aws_s3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Holtz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-03-
|
|
11
|
+
date: 2021-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-s3
|