fastlane-craft 1.3.11 → 1.3.12

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: f4e2b53b30d3520820370a758e5bf8a0df45f47bfb7b50e1eae1e3ee9e08f474
4
- data.tar.gz: aa76d60dcfc0c865e18ce65a466bf1e20038307bf66f160a3cf670900e9a1f8d
3
+ metadata.gz: a13d62bf4fee480fe78f82f5a0d88f0b685484664c0cf85dbc082f24195e0ac7
4
+ data.tar.gz: 551771c35fe06844732d67093a230be58a8fb4c34cc5d63e35a7cb32810ffb4a
5
5
  SHA512:
6
- metadata.gz: a2ae3ecabe88204acdf6c5c85089b38f9eaa363e11db7c9edfae7bc795afa3730c070b2f293bc69e83ac408169222b5d9b04b48f8c4d5f766198db29e2a62a13
7
- data.tar.gz: bdc045ebd130ee010712ddfeba2cff31238874938a10e93728cd582a695ecd4ad87f298e44d9ab1be1ccb2a61b0b40040a811b20d0958abed272b266db3468f2
6
+ metadata.gz: 88deeb14e73b8059d8cb70625b07bf9e9d291a1561990a2ea7e75b518c0d5336dee1de83368056d7b11c1e8da910ca1ed3bbb2565010d5ab29bb328172c90769
7
+ data.tar.gz: 6d214419072c624de3cf33977d8eed6aed38646d051df447e56efc0440c633c6828423d3f95ba67714fe228577a1d45dbb7111df74ae0d2e478b6c59d667dc9b
@@ -24,6 +24,7 @@ module Fastlane
24
24
  )
25
25
 
26
26
  UI.message "Check whether destination bucket #{bucket} exists..💤"
27
+
27
28
  begin
28
29
  response = client.create_bucket({
29
30
  bucket: bucket,
@@ -35,6 +36,7 @@ module Fastlane
35
36
  end
36
37
 
37
38
  UI.message "Going to upload file to s3..💤"
39
+
38
40
  File.open(local_path, 'r') do |body|
39
41
  response = client.put_object(
40
42
  acl: acl,
@@ -43,10 +45,16 @@ module Fastlane
43
45
  body: body
44
46
  )
45
47
 
46
- s3_url = params[:endpoint] + "/" + bucket + "/" + file_path
47
- ENV[SharedValues::UPLOADED_S3_URL] = s3_url
48
+ object = Aws::S3::Object.new(
49
+ key: file_path,
50
+ bucket_name: bucket,
51
+ client: client
52
+ )
53
+
54
+ url = object.public_url
48
55
 
49
- UI.message "✨ file uploaded to #{s3_url} ✨"
56
+ UI.message "✨ file uploaded to #{url} ✨"
57
+ ENV[SharedValues::UPLOADED_S3_URL] = url
50
58
  end
51
59
  end
52
60
 
@@ -1,3 +1,3 @@
1
1
  module FastlaneCraft
2
- VERSION = '1.3.11'.freeze
2
+ VERSION = '1.3.12'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-craft
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.11
4
+ version: 1.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - sroik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-30 00:00:00.000000000 Z
12
+ date: 2018-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fastlane