fastlane-plugin-fivethree_ionic 0.2.4 → 0.2.5

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: 178cc5ad60f5ec2958f60d4f343aed60f37ca107e9c0b15e6127570021bf3e74
4
- data.tar.gz: 68d63684a07704f2c31e83e99a0c63d60f7af768c4489e3d5812a843e49b90a5
3
+ metadata.gz: 693fd23e5ec71de6cbc4bc1894b9d8043f2f51cac68aec63fd3f0fcb1077167e
4
+ data.tar.gz: 54c726b7df6b4822cb28a46c81816dd8b052469124fa8195c4374f7629a41057
5
5
  SHA512:
6
- metadata.gz: 2f836e62b68c6d1c4b0d51d02283c71d3fce0763cde298d3ee6b680e81bb62a3995e04d1063537a9b7340a1ab6a77a2b93cff3dd03612e339fd1e96077215e0f
7
- data.tar.gz: eab22e83e8669952b4b1e1402ecead6df3ffe894747359b313ad99300c75f04df923b4e2515e3a294535afd2ac241d080f740f0e1d7c2c77f63c0de744639138
6
+ metadata.gz: 124895f7a87d669781ff5b9fb0058ebcfe24a8633829027414aa0fb4cce9724755de1dcef8c36736dd7684bb392f4a8c7c5b9da40e45eb458c2d6c76f0ee185e
7
+ data.tar.gz: c3957732d27353082876d74d07666ee1eef89e62c6be3c69cefa57488d168917532e279c44792e4e9f7f453e070cb53c24f6e0251a33497eeb850e3427cf199e
@@ -4,16 +4,17 @@ module Fastlane
4
4
  def self.run(params)
5
5
  Dir.chdir "#{params[:clients_folder]}" do
6
6
  clients_folders = Dir.glob('*').sort.select {|f| File.directory? f}
7
- if (ENV["CLIENT"])
8
- if (clients_folders.include?(ENV["CLIENT"]))
7
+ client = ENV["CLIENT"] || params[:client]
8
+ if (client)
9
+ if (clients_folders.include?(client))
9
10
  puts("
10
11
  ***********************************************
11
- Selected client: #{ENV["CLIENT"]}
12
+ Selected client: #{client}
12
13
  ***********************************************
13
14
  ")
14
- return ENV["CLIENT"]
15
+ return client
15
16
  else
16
- UI.user_error!("Client #{ENV["CLIENT"]} is not available.")
17
+ UI.user_error!("Client #{client} is not available.")
17
18
  end
18
19
  end
19
20
 
@@ -43,7 +44,12 @@ module Fastlane
43
44
  verify_block: proc do |value|
44
45
  UI.user_error!("No client folder path for SelectClientAction given, pass using `client_folder: '../path_to_clients_folder'`") unless (value and not value.empty?)
45
46
  UI.user_error!("Couldn't find clients folder at path '#{value}'") unless File.directory?(value)
46
- end)
47
+ end),
48
+ FastlaneCore::ConfigItem.new(
49
+ key: : client,
50
+ env_name: "FIV_CLIENT", # The name of the environment variable
51
+ description: "client to select", # a short description of this parameter",
52
+ is_string: true)
47
53
  ]
48
54
  end
49
55
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FivethreeIonic
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-fivethree_ionic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Stammerjohann