fastlane 2.73.0.beta.20180103010003 → 2.73.0.beta.20180104010004

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c58d8c4751c6c782e6c8747df9b5c47a22964184
4
- data.tar.gz: f6bfdc72d2fb2a44b6f7c2f79c599fb9bef1b431
3
+ metadata.gz: c3d012ce8dd059ba622673e451c79f833574808e
4
+ data.tar.gz: 96d03c83675a925686c22c82a33aefeeac355458
5
5
  SHA512:
6
- metadata.gz: 3d0f70dc3d1ba90068a1120d66c7be5e0bd96231e55b219abcabfdfcd2e67dd56a978027490dea833bdb0195d9397b955a26ce294beeab8d5e19c1747b742bc7
7
- data.tar.gz: 26074479d7b06537f18323f15d5783278c947e23e6d298bceb92deb3cfa2eb3556043ca943c5ebbecfa795644ac7d8954f30659c98a7aa4afb5bb7b3cd2b413f
6
+ metadata.gz: ee573b482a6ab09d2a4f1f9e612ea5753df6cdac9b121ec1909c5cd52f3afb8f10c943015d6fdcfc33be5dd565d526cb6569ff7b413e2adfd1b37d49fe3ceae5
7
+ data.tar.gz: 75102f81c512e91e015b88f581623e6f568c1d6514bf365c17fd45dfe55980dbc8831a39ec27fffdb80d7a33ef894cf28f929199a2bbbdd9fed8de8439f5661c
@@ -25,7 +25,7 @@ module Fastlane
25
25
  if Helper.test?
26
26
  Actions.lane_context[SharedValues::BUILD_NUMBER] = command
27
27
  else
28
- build_number = (Actions.sh command).split("\n").last.strip
28
+ build_number = Actions.sh(command).split("\n").last.strip
29
29
 
30
30
  # Store the number in the shared hash
31
31
  Actions.lane_context[SharedValues::BUILD_NUMBER] = build_number
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.73.0.beta.20180103010003'.freeze
2
+ VERSION = '2.73.0.beta.20180104010004'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -214,12 +214,42 @@ module FastlaneCore
214
214
  true
215
215
  end
216
216
 
217
+ def strip_braces(value)
218
+ value.strip!
219
+ value = value[1..value.length - 2] if value[0] == "[" && value[value.length - 1] == "]"
220
+ return value
221
+ end
222
+
223
+ def auto_convert_array_value(value)
224
+ # covers Arrays like:
225
+ # ["["value", "value"]"]
226
+ if value.kind_of?(Array)
227
+ return value.map do |item|
228
+ item = strip_braces(item) if item.kind_of?(String)
229
+ item
230
+ end
231
+ end
232
+
233
+ # covers Strings that are actually Arrays like:
234
+ # "["value", "value"]"
235
+ # "\"value\", \"value\""
236
+ if value.kind_of?(String)
237
+ value = strip_braces(value)
238
+
239
+ return value.split(',').map do |item|
240
+ item.strip!
241
+ item = item[1..item.length - 2] if item[0] == "\"" && item[item.length - 1] == "\""
242
+ item
243
+ end
244
+ end
245
+ end
246
+
217
247
  # Returns an updated value type (if necessary)
218
248
  def auto_convert_value(value)
219
249
  return nil if value.nil?
220
250
 
221
251
  if data_type == Array
222
- return value.split(',') if value.kind_of?(String)
252
+ return auto_convert_array_value(value)
223
253
  elsif data_type == Integer
224
254
  return value.to_i if value.to_i.to_s == value.to_s
225
255
  elsif data_type == Float
@@ -199,7 +199,7 @@ module FastlaneCore
199
199
  return File.join(self.itms_path, 'bin', 'iTMSTransporter')
200
200
  end
201
201
 
202
- def self.keychain_path(name)
202
+ def self.keychain_path(keychain_name)
203
203
  # Existing code expects that a keychain name will be expanded into a default path to Library/Keychains
204
204
  # in the user's home directory. However, this will not allow the user to pass an absolute path
205
205
  # for the keychain value
@@ -211,10 +211,9 @@ module FastlaneCore
211
211
  #
212
212
  # We also try to append `-db` at the end of the file path, as with Sierra the default Keychain name
213
213
  # has changed for some users: https://github.com/fastlane/fastlane/issues/5649
214
- #
215
214
 
216
- # Remove the ".keychain" at the end of the name
217
- name.sub!(/\.keychain$/, "")
215
+ # Remove the ".keychain" at the end of the keychain name
216
+ name = keychain_name.sub(/\.keychain$/, "")
218
217
 
219
218
  possible_locations = [
220
219
  File.join(Dir.home, 'Library', 'Keychains', name),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.73.0.beta.20180103010003
4
+ version: 2.73.0.beta.20180104010004
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2018-01-03 00:00:00.000000000 Z
18
+ date: 2018-01-04 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier