fastlane 2.28.0.beta.20170418010021 → 2.28.0.beta.20170419010123

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: 15af6476c8c5c6ad527e5870ab2fd080c116a347
4
- data.tar.gz: 279fc6ac08514134d42399712f45cc02e0e5533a
3
+ metadata.gz: d3d5096031c20a6b0ab77f4617e1415d6f97a369
4
+ data.tar.gz: 679220372c525dfce5bd63f4e43a823f98b5a191
5
5
  SHA512:
6
- metadata.gz: 3297ced28f666166844594fd5b70e3c856906aff6db52450e6fe5b57e3d1b01f48e1124beddc3c1f84d527d73703dbbb0125758502771bd24fd831a2041e8387
7
- data.tar.gz: 220c03beddb0133fbade1589f7dbbe26bcf241527877fe0416f78165d5527f2f7313f32bab33b0496b9867e80fd4cc0c6e28297d525394d778a1a1ad511d4228
6
+ metadata.gz: 8d47eb4106e93fe2c144cfd212562df15299b38f0a1c19c27642f61b0643f348674390fa6a854a7be37fcbed57ccb7e92e9508a2cddc7c66851be7520ccd4ea7
7
+ data.tar.gz: 04ddcf6c5c41cf74df303f378117513013266069624f0528401148876861359cdaf74e142d1814db3270388779376e0905f0d3ed1cd0a4617866b23ba9bc2ec6
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.28.0.beta.20170418010021'.freeze
2
+ VERSION = '2.28.0.beta.20170419010123'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -1,3 +1,4 @@
1
+ require 'cfpropertylist'
1
2
  module Gym
2
3
  # This class detects all kinds of default values
3
4
  class DetectValues
@@ -33,11 +34,34 @@ module Gym
33
34
 
34
35
  config[:output_name] ||= Gym.project.app_name
35
36
 
37
+ config[:build_path] ||= archive_path_from_local_xcode_preferences
38
+
36
39
  return config
37
40
  end
38
41
 
42
+ def self.archive_path_from_local_xcode_preferences
43
+ day = Time.now.strftime("%F") # e.g. 2015-08-07
44
+ archive_path = File.expand_path("~/Library/Developer/Xcode/Archives/#{day}/")
45
+
46
+ path = xcode_preference_plist_path
47
+ return archive_path unless File.exist?(path.to_s) # this file only exists when you edit the Xcode preferences to set custom values
48
+
49
+ custom_archive_path = xcode_preferences_dictionary(path)['IDECustomDistributionArchivesLocation']
50
+ return archive_path if custom_archive_path.to_s.length == 0
51
+
52
+ return File.join(custom_archive_path, day)
53
+ end
54
+
39
55
  # Helper Methods
40
56
 
57
+ def self.xcode_preference_plist_path
58
+ File.expand_path("~/Library/Preferences/com.apple.dt.Xcode.plist")
59
+ end
60
+
61
+ def self.xcode_preferences_dictionary(path)
62
+ CFPropertyList.native_types(CFPropertyList::List.new(file: path).value)
63
+ end
64
+
41
65
  def self.detect_provisioning_profile
42
66
  if Gym.config[:provisioning_profile_path].nil?
43
67
  return unless Gym.config[:use_legacy_build_api] # we only want to auto-detect the profile when using the legacy build API
@@ -103,10 +103,6 @@ module Gym
103
103
  def build_path
104
104
  unless Gym.cache[:build_path]
105
105
  Gym.cache[:build_path] = Gym.config[:build_path]
106
- unless Gym.cache[:build_path]
107
- day = Time.now.strftime("%F") # e.g. 2015-08-07
108
- Gym.cache[:build_path] = File.expand_path("~/Library/Developer/Xcode/Archives/#{day}/")
109
- end
110
106
  FileUtils.mkdir_p Gym.cache[:build_path]
111
107
  end
112
108
  Gym.cache[:build_path]
@@ -123,7 +123,7 @@ module Spaceship
123
123
  end
124
124
 
125
125
  def self.hostname
126
- raise "You must implemented self.hostname"
126
+ raise "You must implement self.hostname"
127
127
  end
128
128
 
129
129
  def initialize
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.28.0.beta.20170418010021
4
+ version: 2.28.0.beta.20170419010123
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -11,10 +11,11 @@ authors:
11
11
  - Mark Pirri
12
12
  - Hemal Shah
13
13
  - Manuel Wallner
14
+ - Joshua Liebowitz
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
- date: 2017-04-18 00:00:00.000000000 Z
18
+ date: 2017-04-19 00:00:00.000000000 Z
18
19
  dependencies:
19
20
  - !ruby/object:Gem::Dependency
20
21
  name: slack-notifier
@@ -136,6 +137,26 @@ dependencies:
136
137
  - - "<"
137
138
  - !ruby/object:Gem::Version
138
139
  version: 4.0.0
140
+ - !ruby/object:Gem::Dependency
141
+ name: CFPropertyList
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '2.3'
147
+ - - "<"
148
+ - !ruby/object:Gem::Version
149
+ version: 3.0.0
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: '2.3'
157
+ - - "<"
158
+ - !ruby/object:Gem::Version
159
+ version: 3.0.0
139
160
  - !ruby/object:Gem::Dependency
140
161
  name: addressable
141
162
  requirement: !ruby/object:Gem::Requirement
@@ -1283,23 +1304,23 @@ metadata:
1283
1304
  post_install_message:
1284
1305
  rdoc_options: []
1285
1306
  require_paths:
1286
- - pem/lib
1287
- - deliver/lib
1307
+ - fastlane_core/lib
1288
1308
  - snapshot/lib
1289
1309
  - scan/lib
1290
- - pilot/lib
1291
- - fastlane/lib
1310
+ - supply/lib
1311
+ - produce/lib
1312
+ - match/lib
1313
+ - gym/lib
1292
1314
  - spaceship/lib
1293
- - fastlane_core/lib
1315
+ - deliver/lib
1316
+ - frameit/lib
1294
1317
  - screengrab/lib
1295
- - produce/lib
1318
+ - sigh/lib
1319
+ - pilot/lib
1320
+ - pem/lib
1296
1321
  - cert/lib
1297
- - frameit/lib
1298
- - gym/lib
1299
- - supply/lib
1322
+ - fastlane/lib
1300
1323
  - credentials_manager/lib
1301
- - match/lib
1302
- - sigh/lib
1303
1324
  required_ruby_version: !ruby/object:Gem::Requirement
1304
1325
  requirements:
1305
1326
  - - ">="