fastlane-plugin-rome 0.2.0 → 0.2.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: 60761c7ddf401c8f43dadcdace71af540364b3d6
|
4
|
+
data.tar.gz: d591325859a05153180814cc480df5038a1d5035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c09195aec522c28eed550a17bb328621859be1d050a28a86baff0ff0ff19f7c60dc49fd46448113df9fb8e1dca3fe04d51d0dcd6450bbcfd8d618a082128f52
|
7
|
+
data.tar.gz: e2538cd5d20ac21a925a7416c3cbcfceee962bd4ee5b4466ef6282d018a696d43c9d5275a7d9009d8d4de8bdf8c007f59c23b9b090d1dda6038761859528b8cc
|
@@ -24,6 +24,7 @@ module Fastlane
|
|
24
24
|
|
25
25
|
cmd << "--platform #{params[:platform]}" if params[:platform]
|
26
26
|
cmd << "--cache-prefix #{params[:cacheprefix]}" if params[:cacheprefix]
|
27
|
+
cmd << "--print-format #{params[:printformat]}" if params[:printformat]
|
27
28
|
cmd << "-v " if params[:verbose]
|
28
29
|
|
29
30
|
Actions.sh(cmd.join(' '))
|
@@ -32,7 +33,7 @@ module Fastlane
|
|
32
33
|
def self.meet_minimum_version(minimum_version)
|
33
34
|
version = Actions.sh('rome --version') #i.e. 0.12.0.31 - Romam uno die non fuisse conditam.
|
34
35
|
version_number = version.split(' - ')[0]
|
35
|
-
|
36
|
+
|
36
37
|
minimum_version_parts = minimum_version.split('.')
|
37
38
|
version_parts = version_number.split('.')
|
38
39
|
for i in 0..version_parts.length do
|
@@ -55,8 +56,11 @@ module Fastlane
|
|
55
56
|
if !(command_name == "upload" || command_name == "download") && params[:frameworks].count > 0
|
56
57
|
UI.user_error!("Frameworks option is available only for 'upload'' or 'download' commands.")
|
57
58
|
end
|
58
|
-
if command_name != "list" && params[:missing]
|
59
|
-
UI.user_error!("Missing option is available only for 'list' command.")
|
59
|
+
if command_name != "list" && (params[:missing] || params [:present])
|
60
|
+
UI.user_error!("Missing/Present option is available only for 'list' command.")
|
61
|
+
end
|
62
|
+
if command_name == "list" && !(params[:printformat] == nil || params[:printformat] == "JSON" || params[:printformat] == "Text")
|
63
|
+
UI.user_error!("Unsupported print format. Supported print formats are 'JSON' and 'Text'.")
|
60
64
|
end
|
61
65
|
end
|
62
66
|
|
@@ -81,6 +85,10 @@ module Fastlane
|
|
81
85
|
%w(all iOS Mac tvOS watchOS)
|
82
86
|
end
|
83
87
|
|
88
|
+
def self.available_print_formats
|
89
|
+
%w(JSON Text)
|
90
|
+
end
|
91
|
+
|
84
92
|
def self.description
|
85
93
|
"An S3 cache tool for Carthage"
|
86
94
|
end
|
@@ -102,6 +110,7 @@ module Fastlane
|
|
102
110
|
verify_block: proc do |value|
|
103
111
|
UI.user_error!("Please pass a valid command. Use one of the following: #{available_commands.join(', ')}") unless available_commands.include? value
|
104
112
|
end),
|
113
|
+
|
105
114
|
FastlaneCore::ConfigItem.new(key: :verbose,
|
106
115
|
env_name: "FL_ROME_VERBOSE",
|
107
116
|
description: "Print xcodebuild output inline",
|
@@ -110,6 +119,7 @@ module Fastlane
|
|
110
119
|
verify_block: proc do |value|
|
111
120
|
UI.user_error!("Please pass a valid value for verbose. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
|
112
121
|
end),
|
122
|
+
|
113
123
|
FastlaneCore::ConfigItem.new(key: :platform,
|
114
124
|
env_name: "FL_ROME_PLATFORM",
|
115
125
|
description: "Define which platform to build for",
|
@@ -119,6 +129,7 @@ module Fastlane
|
|
119
129
|
UI.user_error!("Please pass a valid platform. Use one of the following: #{available_platforms.join(', ')}") unless available_platforms.map(&:downcase).include?(platform.downcase)
|
120
130
|
end
|
121
131
|
end),
|
132
|
+
|
122
133
|
FastlaneCore::ConfigItem.new(key: :missing,
|
123
134
|
env_name: "FL_ROME_MISSING",
|
124
135
|
description: "Option to list only missing frameworks",
|
@@ -128,6 +139,15 @@ module Fastlane
|
|
128
139
|
UI.user_error!("Please pass a valid value for missing. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
|
129
140
|
end),
|
130
141
|
|
142
|
+
FastlaneCore::ConfigItem.new(key: :present,
|
143
|
+
env_name: "FL_ROME_PRESENT",
|
144
|
+
description: "Option to list only present frameworks",
|
145
|
+
optional: true,
|
146
|
+
is_string: false,
|
147
|
+
verify_block: proc do |value|
|
148
|
+
UI.user_error!("Please pass a valid value for present. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
|
149
|
+
end),
|
150
|
+
|
131
151
|
FastlaneCore::ConfigItem.new(key: :frameworks,
|
132
152
|
description: "Framework name or names to upload/download, could be applied only along with the 'upload' or 'download' commands",
|
133
153
|
default_value: [],
|
@@ -140,7 +160,17 @@ module Fastlane
|
|
140
160
|
optional: true,
|
141
161
|
is_string: true,
|
142
162
|
verify_block: proc do |value|
|
143
|
-
|
163
|
+
UI.user_error!("Requires Rome version '0.12.0.31' or later") if !meet_minimum_version("0.12.0.31")
|
164
|
+
end),
|
165
|
+
|
166
|
+
FastlaneCore::ConfigItem.new(key: :printformat,
|
167
|
+
env_name: "FL_ROME_PRINT_FORMAT",
|
168
|
+
description: "Specify what format to use in the output of the list command. One of 'JSON' or 'Text'. Defaults to 'Text' if omitted",
|
169
|
+
optional: true,
|
170
|
+
is_string: true,
|
171
|
+
verify_block: proc do |value|
|
172
|
+
UI.user_error!("Please pass a valid print format. Use one of the following: JSON, Text") unless value == nil || value == "JSON" || value == "Text"
|
173
|
+
UI.user_error!("Requires Rome version '0.13.0.33' or later") if !meet_minimum_version("0.13.0.33")
|
144
174
|
end)
|
145
175
|
|
146
176
|
]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-rome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- François Benaiteau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -126,7 +126,7 @@ 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: An S3 cache tool for Carthage
|