fastlane-plugin-aws_s3 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa270593b8070859b409a3123921341f44e46a750aadd42df7c958c3946529b5
4
- data.tar.gz: 3e37babdac81f10057af2d113423351332fcfe34406b78dd7ffce249ac9bbfd3
3
+ metadata.gz: 733d4e8ad5102e8eb943a08a22ceceff539415ec8cdd888780537294165f2c67
4
+ data.tar.gz: 47a788ae5954bd3fc3a9188debf847ba9b975fdeff29adb77badf170038f3b23
5
5
  SHA512:
6
- metadata.gz: 944b7f4fda0f8963f5896f4edcb973bbd6d8ef2a3931268455404fcd3696897339f3daa6c810b8a3d3a4e2ef35ee909f6b5441547b7a06d26439946b62131a4d
7
- data.tar.gz: 537580be8d808a2458ca5df1209406b8b01ba1855e30ded8d10c42897e79f791fa18389cff8d15e3cadcf486c034160421fc61dda7b86f5c5d6ad0459eb2927b
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AwsS3
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  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.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-25 00:00:00.000000000 Z
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