fastlane-plugin-upload_folder_to_s3 0.3.0 → 0.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90799f5edd3fa0faa69a9cc2b5a8bf221c7946c7
|
4
|
+
data.tar.gz: 07d6642a72d84c6bd13333235685c87ca3b46eb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 800c3c8e912fdb58a3b93cc722f289a7a7f6153e56258ce8b06a6047c5e87c024c0bbb4317707df15a9c94124bd9171e66b23c3d9976d82ee36b2c217ca52eb0
|
7
|
+
data.tar.gz: 7e08ec95d53e6ef293d7d8511fd1799d43e583304c0db0a2758fb6f0d0150fff2a94b1ae42dcfb088637e2c913dc7b0d5106fe358ccd041caae9b494c1929bd3
|
@@ -66,8 +66,14 @@ module Fastlane
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def self.valid_s3(awscreds, s3_bucket)
|
69
|
-
|
70
|
-
|
69
|
+
loaded_original_gem = load_from_original_gem_name
|
70
|
+
|
71
|
+
if !loaded_original_gem || !v1_sdk_module_present?
|
72
|
+
load_from_v1_gem_name
|
73
|
+
UI.verbose("Loaded AWS SDK v1.x from the `aws-sdk-v1` gem")
|
74
|
+
else
|
75
|
+
UI.verbose("Loaded AWS SDK v1.x from the `aws-sdk` gem")
|
76
|
+
end
|
71
77
|
|
72
78
|
s3 = AWS::S3.new(awscreds)
|
73
79
|
|
@@ -78,6 +84,37 @@ module Fastlane
|
|
78
84
|
s3
|
79
85
|
end
|
80
86
|
|
87
|
+
def self.load_from_original_gem_name
|
88
|
+
begin
|
89
|
+
Gem::Specification.find_by_name('aws-sdk')
|
90
|
+
require 'aws-sdk'
|
91
|
+
rescue Gem::LoadError => e
|
92
|
+
UI.verbose("The 'aws-sdk' gem is not present")
|
93
|
+
return false
|
94
|
+
end
|
95
|
+
|
96
|
+
UI.verbose("The 'aws-sdk' gem is present")
|
97
|
+
true
|
98
|
+
end
|
99
|
+
|
100
|
+
def self.load_from_v1_gem_name
|
101
|
+
Actions.verify_gem!('aws-sdk-v1')
|
102
|
+
require 'aws-sdk-v1'
|
103
|
+
end
|
104
|
+
|
105
|
+
def self.v1_sdk_module_present?
|
106
|
+
begin
|
107
|
+
# Here we'll make sure that the `AWS` module is defined. If it is, the gem is the v1.x API.
|
108
|
+
Object.const_get("AWS")
|
109
|
+
rescue NameError
|
110
|
+
UI.verbose("Couldn't find the needed `AWS` module in the 'aws-sdk' gem")
|
111
|
+
return false
|
112
|
+
end
|
113
|
+
|
114
|
+
UI.verbose("Found the needed `AWS` module in the 'aws-sdk' gem")
|
115
|
+
true
|
116
|
+
end
|
117
|
+
|
81
118
|
def self.valid_bucket(awscreds, s3_bucket)
|
82
119
|
s3 = valid_s3 awscreds, s3_bucket
|
83
120
|
s3.buckets[s3_bucket]
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-upload_folder_to_s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- teriiehina
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: aws-sdk
|
14
|
+
name: aws-sdk
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "<"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "<"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,9 +126,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.5.1
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Upload a folder to S3
|
133
133
|
test_files: []
|
134
|
-
has_rdoc:
|