fastlane-plugin-rome 0.3.5 → 0.4.0

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: 8359b925a29f887cc062df11e63fbe79498e992a42e262005f3a1b9d19fec100
4
- data.tar.gz: 42d1dc1e6499d934606d53fe3d8307b079d7b23e9b12f8e9c59faeab229ba2ef
3
+ metadata.gz: 12f44fee554b5e1b5e109d53be100c7a8dba584ef1624ce38bae93b4afbb2041
4
+ data.tar.gz: 65d144b8384544e6398bd95afcb23ea20ca10853f0df9a1b9eaf22fb63d7b9d1
5
5
  SHA512:
6
- metadata.gz: 99dc9ea1381d4b8ddcdcccf42c410fc540472c645fac06e5512f599dfecc361b0a048146a57e603ad7aad3999747859c4bf8076d2ab73e0325fd2b2a59be2a19
7
- data.tar.gz: 83bcfa0d8bd507b166e31fe3bf3f69f36eea566aad4978da282bc81ed98ef27a182bec5eb65121b2178e0d4f4bfd497c03f2d4df6cd7b768a848261ea45ebd88
6
+ metadata.gz: f638c1d523bc4122863f7bbcf539b9745441a24f7eb936c1cf97861564b8043418bf969e387dc0d686165732f54c33ab9984fe085ab2a560e3d65674757b11b7
7
+ data.tar.gz: 7ef9112b487ac75520c9967dc33e0f2d80e2931c4017766c94310b2d7695561883551985c41a3bfdef20566605ad34cb12b36f7b56c8ed6d7a1e79169e8b5e63
data/LICENSE CHANGED
@@ -1,6 +1,8 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 François Benaiteau <francois.benaiteau@sharecare.com>
3
+ Copyright (c) 2017, 2018, 2019, 2020, 2021
4
+ François Benaiteau <francois.benaiteau@sharecare.com>
5
+ Tommaso Piazza <196761+tmspzz@users.noreply.github.com>
4
6
 
5
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
8
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -16,14 +16,26 @@ A S3 cache tool for Carthage
16
16
 
17
17
  Please see more on the tool's repo: [Rome](https://github.com/blender/rome)
18
18
 
19
- ## Example
19
+ ## Examples
20
20
 
21
21
  ```bash
22
22
  rome(
23
23
  frameworks: ["MyFramework1", "MyFramework2"], # Specify which frameworks to upload or download
24
24
  command: "upload", # One of: download, upload, list
25
25
  verbose: false, # Print rome output inline
26
- platform: "all", # Define which platform to build for (one of ‘all’, ‘Mac’, ‘iOS’, ‘watchOS’, ‘tvOS‘, or comma-separated values of the formers except for ‘all’)
26
+ platform: "all", # Define which platform to build for (one of ‘all’, ‘Mac’, ‘iOS’, ‘watchOS’, ‘tvOS‘, or comma-separated values of the formers except for ‘all’). Can't be combined with the 'usexcframeworks' option
27
+ cacheprefix: "Swift_4_2_1", # A prefix appended to the top level directories inside the caches. Useful to separate artifacts between Swift versions
28
+ romefile: "~/Code/", # The path to the Romefile to use. Defaults to the \"Romefile\" in the current directory
29
+ noignore: "true", # Ignore the `ignoreMap` section in the Romefile when performing the operation
30
+ concurrently: "true", # Maximise concurrency while performing the operation. Might make verbose output hard to follow
31
+ usexcframeworks: "true" # Search for .xcframeworks when performing the upload or download operation. Can't be combined with the 'platform' option
32
+ )
33
+ ```
34
+
35
+ ```bash
36
+ rome(
37
+ command: "list",
38
+ printformat: "JSON", # Sets list output formats: JSON or if omitted, default to Text
27
39
  )
28
40
  ```
29
41
 
@@ -19,6 +19,7 @@ module Fastlane
19
19
  cmd.concat params[:frameworks]
20
20
  elsif command_name == "list"
21
21
  cmd << "--missing" if params[:missing] == true
22
+ cmd << "--present" if params[:present] == true
22
23
  end
23
24
 
24
25
  cmd << "--platform #{params[:platform]}" if params[:platform]
@@ -27,11 +28,11 @@ module Fastlane
27
28
  cmd << "--romefile #{params[:romefile]}" if params[:romefile]
28
29
  cmd << "--no-ignore" if params[:noignore] == true
29
30
  cmd << "--no-skip-current" if params[:noskipcurrent] == true
31
+ cmd << "--concurrently" if params[:concurrently] == true
32
+ cmd << "--use-xcframeworks" if params[:usexcframeworks] == true
30
33
  cmd << "-v " if params[:verbose]
31
34
 
32
- action = Actions.sh(cmd.join(' '))
33
- UI.message(action)
34
- return action
35
+ return Actions.sh(cmd.join(' '))
35
36
  end
36
37
 
37
38
  def self.meet_minimum_version(binary_path, minimum_version)
@@ -94,14 +95,35 @@ module Fastlane
94
95
  if noignore != nil
95
96
  UI.user_error!("'noignore' option requires Rome version '0.13.1.35' or later") if !meet_minimum_version(binary_path, "0.13.1.35")
96
97
  end
98
+
97
99
  cacheprefix = params[:cacheprefix]
98
100
  if cacheprefix != nil
99
101
  UI.user_error!("'cacheprefix' option requires Rome version '0.12.0.31' or later") if !meet_minimum_version(binary_path, "0.12.0.31")
100
102
  end
103
+
101
104
  noskipcurrent = params[:noskipcurrent]
102
105
  if noskipcurrent != nil
103
106
  UI.user_error!("'noskipcurrent' option requires Rome version '0.18.0.51' or later") if !meet_minimum_version(binary_path, "0.18.0.51")
104
107
  end
108
+
109
+ concurrently = params[:concurrently]
110
+ if concurrently != nil
111
+ UI.user_error!("'concurrently' option requires Rome version '0.20.0.56' or later") if !meet_minimum_version(binary_path, "0.20.0.56")
112
+ end
113
+
114
+ usexcframeworks = params[:usexcframeworks]
115
+ if usexcframeworks != nil
116
+ UI.user_error!("'usexcframeworks' option requires Rome version '0.24.0.65' or later") if !meet_minimum_version(binary_path, "0.24.0.65")
117
+ end
118
+
119
+ platform = params[:platform]
120
+ if usexcframeworks != nil && platform != nil
121
+ UI.user_error!("'usexcframeworks' option cannot be combined with 'platform' option. Only one of them can be provided.")
122
+ end
123
+
124
+ if command_name == "list" && concurrently != nil
125
+ UI.user_error!("Concurrently option is only avalable with download or upload. Listing is performed concurrently by default.")
126
+ end
105
127
  end
106
128
 
107
129
  def self.available_commands
@@ -221,6 +243,24 @@ module Fastlane
221
243
  optional: true,
222
244
  verify_block: proc do |value|
223
245
  UI.user_error!("Please pass a valid value for noskipcurrent. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
246
+ end),
247
+
248
+ FastlaneCore::ConfigItem.new(key: :concurrently,
249
+ env_name: "FL_ROME_CONCURRENTLY",
250
+ description: "Maximize concurrency while performing the operation. Not needed for listing",
251
+ is_string: false,
252
+ optional: true,
253
+ verify_block: proc do |value|
254
+ UI.user_error!("Please pass a valid value for concurrently. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
255
+ end),
256
+
257
+ FastlaneCore::ConfigItem.new(key: :usexcframeworks,
258
+ env_name: "FL_ROME_USEXCFRAMEWORKS",
259
+ description: "Search for .xcframeworks when performing the operation. Not needed for listing",
260
+ is_string: false,
261
+ optional: true,
262
+ verify_block: proc do |value|
263
+ UI.user_error!("Please pass a valid value for concurrently. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
224
264
  end)
225
265
  ]
226
266
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Rome
3
- VERSION = "0.3.5"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-rome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - François Benaiteau
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-12-06 00:00:00.000000000 Z
12
+ date: 2021-11-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry
@@ -128,8 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
- rubyforge_project:
132
- rubygems_version: 2.7.7
131
+ rubygems_version: 3.0.3
133
132
  signing_key:
134
133
  specification_version: 4
135
134
  summary: A cache tool for Carthage