fastlane-plugin-aws_s3 0.2.2 → 0.2.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5a738eaf68c791e8cfd28b354b5d5d504f0baee
|
4
|
+
data.tar.gz: 8a206f5567d09dfd35b4445e66b594847b6c7b00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 079b2458bf33870dd5e39f15271126f6d37b3da5163da419316bbd4c1be629edb1903f963391d51e1fbccdd23b406ce285535fb806edbcac8beeb1fffee68311
|
7
|
+
data.tar.gz: 9e5ea5cd53d1f27aec1fa758a144671015e0b046c60158d44e617e69dc27034bfef99c859b411ddbcbe18b476a18f1bc5843a241654d82cf278a29da2a730197
|
@@ -54,7 +54,7 @@
|
|
54
54
|
|
55
55
|
<div class="oneRow">
|
56
56
|
<span class="download" id="ios">
|
57
|
-
<a href="itms-services://?action=download-manifest&url
|
57
|
+
<a href="itms-services://?action=download-manifest&url=<%= url_encode(plist_url) %>" id="text" class="btn btn-lg btn-default" onclick="document.getElementById('finished').id = '';">
|
58
58
|
Install <%= title %> <%= bundle_version %>
|
59
59
|
</a>
|
60
60
|
</span>
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# rubocop:disable Metrics/AbcSize
|
2
2
|
require 'fastlane/erb_template_helper'
|
3
|
+
include ERB::Util
|
3
4
|
require 'ostruct'
|
4
5
|
|
5
6
|
module Fastlane
|
@@ -30,6 +31,7 @@ module Fastlane
|
|
30
31
|
params[:path] = config[:path]
|
31
32
|
params[:upload_metadata] = config[:upload_metadata]
|
32
33
|
params[:plist_template_path] = config[:plist_template_path]
|
34
|
+
params[:plist_file_name] = config[:plist_file_name]
|
33
35
|
params[:html_template_path] = config[:html_template_path]
|
34
36
|
params[:html_file_name] = config[:html_file_name]
|
35
37
|
params[:version_template_path] = config[:version_template_path]
|
@@ -73,6 +75,7 @@ module Fastlane
|
|
73
75
|
app_directory = params[:app_directory]
|
74
76
|
|
75
77
|
plist_template_path = params[:plist_template_path]
|
78
|
+
plist_file_name = params[:plist_file_name]
|
76
79
|
html_template_path = params[:html_template_path]
|
77
80
|
html_file_name = params[:html_file_name]
|
78
81
|
version_template_path = params[:version_template_path]
|
@@ -123,7 +126,7 @@ module Fastlane
|
|
123
126
|
full_version = "#{bundle_version}.#{build_num}"
|
124
127
|
|
125
128
|
# Creating plist and html names
|
126
|
-
plist_file_name
|
129
|
+
plist_file_name ||= "#{url_part}#{title.delete(' ')}.plist"
|
127
130
|
|
128
131
|
html_file_name ||= "index.html"
|
129
132
|
|
@@ -148,7 +151,7 @@ module Fastlane
|
|
148
151
|
bundle_version: bundle_version,
|
149
152
|
title: title
|
150
153
|
})
|
151
|
-
|
154
|
+
|
152
155
|
#####################################
|
153
156
|
#
|
154
157
|
# plist uploading
|
@@ -337,12 +340,12 @@ module Fastlane
|
|
337
340
|
[versionCode, versionName, name]
|
338
341
|
end
|
339
342
|
|
340
|
-
def self.upload_file(s3_client, bucket_name, app_directory, file_name, file_data, acl)
|
341
|
-
|
343
|
+
def self.upload_file(s3_client, bucket_name, app_directory, file_name, file_data, acl)
|
344
|
+
|
342
345
|
if app_directory
|
343
346
|
file_name = "#{app_directory}/#{file_name}"
|
344
347
|
end
|
345
|
-
|
348
|
+
|
346
349
|
bucket = Aws::S3::Bucket.new(bucket_name, client: s3_client)
|
347
350
|
obj = bucket.put_object({
|
348
351
|
acl: acl,
|
@@ -416,6 +419,10 @@ module Fastlane
|
|
416
419
|
env_name: "",
|
417
420
|
description: "plist template path",
|
418
421
|
optional: true),
|
422
|
+
FastlaneCore::ConfigItem.new(key: :plist_file_name,
|
423
|
+
env_name: "",
|
424
|
+
description: "uploaded plist filename",
|
425
|
+
optional: true),
|
419
426
|
FastlaneCore::ConfigItem.new(key: :html_template_path,
|
420
427
|
env_name: "",
|
421
428
|
description: "html erb template path",
|
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: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Holtz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|