fastlane-plugin-rome 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: 56ccbfc46d06cf73456af17e454a6c9056139ece
4
- data.tar.gz: f556b1a335f6273efaa84d766824dd3afc56fcf3
3
+ metadata.gz: cee75a0b29a8aa3d64a6a57155ab9a2ace9dd38f
4
+ data.tar.gz: ac90788e10aeddac8dc101347070db16a14c3335
5
5
  SHA512:
6
- metadata.gz: c184d703bfadd805ea22a7099282ed23d8d673ae883af10ed22cda883ab7230f918d4d3c1a69b1332c2490308b20656560fd462290874ed35325a80f44b6cecb
7
- data.tar.gz: 5e7e77bf3646b509b28dccc718b9d9c811e0d72091087b9a1928778b9ec0affb3dac9df6129eeaaa9f08c288514f2930fea5bb941b85f121e7063dc33a20eac3
6
+ metadata.gz: d25d10a1ea0e1d2aaf77ef55441570363e432e2d302f73350f02ce0af09b32657caeb7d62553cde97924f07f76b19729bd01afcc3185d9d38893124a65dde3d6
7
+ data.tar.gz: b4309d52566cda78ddc3b1583608d1b5e9aa397135d3f421c73163b444cc143256fd3a95e7771b85c18482a738f68e7e1a493129db28ba15e04af15a30831a2b
@@ -4,7 +4,7 @@ module Fastlane
4
4
  def self.run(params)
5
5
  validate(params)
6
6
 
7
- cmd = [params[:binary_path]]
7
+ cmd = [params[:binary_path].chomp]
8
8
  command_name = params[:command]
9
9
 
10
10
  if command_name == "version"
@@ -27,7 +27,8 @@ module Fastlane
27
27
  cmd << "--no-ignore" if params[:noignore] == true
28
28
  cmd << "-v " if params[:verbose]
29
29
 
30
- Actions.sh(cmd.join(' '))
30
+ action = Actions.sh(cmd.join(' '))
31
+ UI.message(action)
31
32
  end
32
33
 
33
34
  def self.meet_minimum_version(binary_path, minimum_version)
@@ -47,8 +48,8 @@ module Fastlane
47
48
  end
48
49
 
49
50
  def self.validate(params)
50
- binary_path = params[:binary_path]
51
- unless params[:binary_path].include?('rome')
51
+ binary_path = params[:binary_path].chomp
52
+ unless binary_path.include?('rome')
52
53
  UI.important("Install Rome for the plugin to work")
53
54
  UI.important("")
54
55
  UI.error("Or install it using CocoaPods:")
@@ -63,12 +64,14 @@ module Fastlane
63
64
  end
64
65
 
65
66
  command_name = params[:command]
66
- if !(command_name == "upload" || command_name == "download") && params[:frameworks].count > 0
67
+ if !(command_name == "upload" || command_name == "download") && (params[:frameworks] || []).count > 0
67
68
  UI.user_error!("Frameworks option is available only for 'upload'' or 'download' commands.")
68
69
  end
70
+
69
71
  if command_name != "list" && (params[:missing] || params [:present])
70
72
  UI.user_error!("Missing/Present option is available only for 'list' command.")
71
73
  end
74
+
72
75
  if command_name == "list" && !(params[:printformat] == nil || params[:printformat] == "JSON" || params[:printformat] == "Text")
73
76
  UI.user_error!("Unsupported print format. Supported print formats are 'JSON' and 'Text'.")
74
77
  UI.user_error!("'printformat' option requires Rome version '0.13.0.33' or later") if !meet_minimum_version(binary_path, "0.13.0.33")
@@ -105,7 +108,7 @@ module Fastlane
105
108
  end
106
109
 
107
110
  def self.details
108
- "Rome is a tool that allows developers on Apple platforms to use Amazon's S3 as a shared cache for frameworks built with Carthage."
111
+ "Rome is a tool that allows developers on Apple platforms to use Amazon's S3o and others as a shared cache for frameworks built with Carthage."
109
112
  end
110
113
 
111
114
  def self.available_options
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Rome
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
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.3.0
4
+ version: 0.3.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: 2018-05-28 00:00:00.000000000 Z
11
+ date: 2018-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry