fastlane-plugin-s3_actions 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: d025c9929d3324bdf97b9dc1c18a59762e1d4bdc
4
- data.tar.gz: 0ae77707f76fa742f0840a644ff4d9a9cfec78bb
3
+ metadata.gz: b2935f43bfa905c69a10b67251a61a563aee7b2e
4
+ data.tar.gz: 3fd64a6317661c607eef8291d2a85f3355d1bff4
5
5
  SHA512:
6
- metadata.gz: cac06a2fde113995da72fbb861c14ad695148a8470a134e69a786ca458ca7996147736b86fc5d56cfeef5b825a4167329df74bf729632a53b92a953ef3bbafc7
7
- data.tar.gz: 131eaee47096e3b234032fb96b3a167a71bfe7e394265667064a82c60572ddb5c3d122887acb542a62d73c29737121057b170bd188fa73f3cef835ed2254203c
6
+ metadata.gz: a07bf21b3c4ef7ae4c9033416e1acc6c5275d9defab8495f2d0200ca946019dc927b3e1cd765e176e7063a8a30d2e241bf3b04c7545f59dbe6bf6679bed6d1b6
7
+ data.tar.gz: dafc441d97fab3c45ef42848ad8ffe5fcd6349997a50cbef1aa280af58101f4945a49c7b88473d1edf84d127df1e805edeb445b1bdab0b1731f5e6d27cf2b72a
@@ -13,6 +13,11 @@ module Fastlane
13
13
  file_name = params[:file_name]
14
14
  output_path = params[:output_path]
15
15
 
16
+ output_directory = File.dirname(output_path)
17
+ unless File.exists?(output_directory)
18
+ Actions.sh("mkdir #{output_directory}", log: $verbose)
19
+ end
20
+
16
21
  bucket = service.buckets.find(bucket_name)
17
22
  if bucket.nil?
18
23
  UI.user_error! "Bucket '#{bucket_name}' not found, please verify bucket and credentials 🚫"
@@ -15,7 +15,7 @@ module Fastlane
15
15
  UI.user_error! "Bucket '#{bucket_name}' not found, please verify bucket and credentials 🚫"
16
16
  end
17
17
 
18
- file_name = params[:name] || params[:content_path].split('/').last
18
+ file_name = params[:name] || File.basename(params[:content_path])
19
19
 
20
20
  object = bucket.objects.build(file_name)
21
21
  object.content = open(params[:content_path])
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module S3Actions
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-s3_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Saragoca