fastlane 2.112.0.beta.20181214200045 → 2.112.0.beta.20181215200110

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: c56f7a139bcf1041722183e4e68205ffef9c2381
4
- data.tar.gz: 1700cff5bc1974e20efbd5db91f50979c231ee0f
3
+ metadata.gz: ef426b042e2c3c12e6e8d5792c740536550d5110
4
+ data.tar.gz: 92e8ed19516ad9809d6167ba116c41b79ad3b895
5
5
  SHA512:
6
- metadata.gz: ba2de08be477492a2a6263697d23966e51339246f0b663da980b29e7f516e0b3905a4fe93d05403289122d70fea6f2b6c48d7c9ee17b6bd463b29a98c9a40338
7
- data.tar.gz: ce9c6e37f1bde93489a5fb47516febe9825f866669893a9c525c7bdd4ca2b60d6fa20a7048836d47a82dd5b3cab3c025ada03e6b3b30315d9334e9765765e140
6
+ metadata.gz: 76d0ff4f041652e2d14fed58ea6a3095709b81d4cdc99292b89242a7cea8ab8cb88ff1105cab65f9118d9c6c975f2f56d913fb995a2b444522b118b455ea7014
7
+ data.tar.gz: 6c5597cb5ca9beeeabfd3311964ffb9e20742871131d2c262db0d6154794c009c9359b30bac1a8a2456418b261d9eec7c91b4329186e7f3b04076016fd004c0b
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.112.0.beta.20181214200045'.freeze
2
+ VERSION = '2.112.0.beta.20181215200110'.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
@@ -15,14 +15,6 @@ module FastlaneCore
15
15
 
16
16
  @start_time = Time.now
17
17
 
18
- Thread.new do
19
- begin
20
- send_launch_analytic_events_for(gem_name)
21
- rescue
22
- # we don't want to show a stack trace if something goes wrong
23
- end
24
- end
25
-
26
18
  Thread.new do
27
19
  begin
28
20
  server_results[gem_name] = fetch_latest(gem_name)
@@ -46,14 +38,6 @@ module FastlaneCore
46
38
  end
47
39
 
48
40
  def self.show_update_status(gem_name, current_version)
49
- Thread.new do
50
- begin
51
- send_completion_events_for(gem_name)
52
- rescue
53
- # we don't want to show a stack trace if something goes wrong
54
- end
55
- end
56
-
57
41
  if update_available?(gem_name, current_version)
58
42
  show_update_message(gem_name, current_version)
59
43
  end
@@ -121,178 +105,5 @@ module FastlaneCore
121
105
  def self.generate_fetch_url(gem_name)
122
106
  "https://rubygems.org/api/v1/gems/#{gem_name}.json"
123
107
  end
124
-
125
- def self.send_launch_analytic_events_for(gem_name)
126
- return if FastlaneCore::Env.truthy?("FASTLANE_OPT_OUT_USAGE")
127
- ci = Helper.ci?.to_s
128
- app_id_guesser = FastlaneCore::AppIdentifierGuesser.new(args: ARGV, gem_name: gem_name)
129
- project_hash = app_id_guesser.p_hash
130
- p_hash = project_hash if project_hash
131
- platform = @platform if @platform # this has to be called after `p_hash`
132
-
133
- send_launch_analytic_events(p_hash, gem_name, platform, ci)
134
- end
135
-
136
- def self.send_launch_analytic_events(p_hash, tool, platform, ci)
137
- timestamp_seconds = Time.now.to_i
138
-
139
- analytics = []
140
- analytics << event_for_p_hash(p_hash, tool, platform, timestamp_seconds) if p_hash
141
- analytics << event_for_launch(tool, ci, timestamp_seconds)
142
-
143
- send_events(analytics)
144
- end
145
-
146
- def self.event_for_p_hash(p_hash, tool, platform, timestamp_seconds)
147
- {
148
- event_source: {
149
- oauth_app_name: oauth_app_name,
150
- product: 'fastlane'
151
- },
152
- actor: {
153
- name: 'project',
154
- detail: p_hash
155
- },
156
- action: {
157
- name: 'update_checked'
158
- },
159
- primary_target: {
160
- name: 'tool',
161
- detail: tool || 'unknown'
162
- },
163
- secondary_target: {
164
- name: 'platform',
165
- detail: secondary_target_string(platform || 'unknown')
166
- },
167
- millis_since_epoch: timestamp_seconds * 1000,
168
- version: 1
169
- }
170
- end
171
-
172
- def self.event_for_launch(tool, ci, timestamp_seconds)
173
- {
174
- event_source: {
175
- oauth_app_name: oauth_app_name,
176
- product: 'fastlane'
177
- },
178
- actor: {
179
- name: 'tool',
180
- detail: tool || 'unknown'
181
- },
182
- action: {
183
- name: 'launched'
184
- },
185
- primary_target: {
186
- name: 'ci',
187
- detail: ci
188
- },
189
- secondary_target: {
190
- name: 'launch',
191
- detail: secondary_target_string('')
192
- },
193
- millis_since_epoch: timestamp_seconds * 1000,
194
- version: 1
195
- }
196
- end
197
-
198
- def self.send_completion_events_for(gem_name)
199
- return if FastlaneCore::Env.truthy?("FASTLANE_OPT_OUT_USAGE")
200
-
201
- ci = Helper.ci?.to_s
202
- install_method = if Helper.rubygems?
203
- 'gem'
204
- elsif Helper.bundler?
205
- 'bundler'
206
- elsif Helper.mac_app?
207
- 'mac_app'
208
- elsif Helper.contained_fastlane?
209
- 'standalone'
210
- elsif Helper.homebrew?
211
- 'homebrew'
212
- else
213
- 'unknown'
214
- end
215
- duration = (Time.now - start_time).to_i
216
- timestamp_seconds = Time.now.to_i
217
-
218
- send_completion_events(gem_name, ci, install_method, duration, timestamp_seconds)
219
- end
220
-
221
- def self.send_events(analytics)
222
- analytic_event_body = { analytics: analytics }.to_json
223
-
224
- url = ENV["FASTLANE_METRICS_URL"] || "https://fastlane-metrics.fabric.io/public"
225
- Excon.post(url,
226
- body: analytic_event_body,
227
- headers: { "Content-Type" => 'application/json' })
228
- end
229
-
230
- def self.event_for_completion(tool, ci, duration, timestamp_seconds)
231
- {
232
- event_source: {
233
- oauth_app_name: oauth_app_name,
234
- product: 'fastlane'
235
- },
236
- actor: {
237
- name: 'tool',
238
- detail: tool || 'unknown'
239
- },
240
- action: {
241
- name: 'completed_with_duration'
242
- },
243
- primary_target: {
244
- name: 'duration',
245
- detail: duration.to_s
246
- },
247
- secondary_target: {
248
- name: 'ci',
249
- detail: secondary_target_string(ci)
250
- },
251
- millis_since_epoch: timestamp_seconds * 1000,
252
- version: 1
253
- }
254
- end
255
-
256
- def self.event_for_install_method(tool, ci, install_method, timestamp_seconds)
257
- {
258
- event_source: {
259
- oauth_app_name: oauth_app_name,
260
- product: 'fastlane'
261
- },
262
- actor: {
263
- name: 'tool',
264
- detail: tool || 'unknown'
265
- },
266
- action: {
267
- name: 'completed_with_install_method'
268
- },
269
- primary_target: {
270
- name: 'install_method',
271
- detail: install_method
272
- },
273
- secondary_target: {
274
- name: 'ci',
275
- detail: secondary_target_string(ci)
276
- },
277
- millis_since_epoch: timestamp_seconds * 1000,
278
- version: 1
279
- }
280
- end
281
-
282
- def self.secondary_target_string(string)
283
- return string
284
- end
285
-
286
- def self.oauth_app_name
287
- return 'fastlane-refresher'
288
- end
289
-
290
- def self.send_completion_events(tool, ci, install_method, duration, timestamp_seconds)
291
- analytics = []
292
- analytics << event_for_completion(tool, ci, duration, timestamp_seconds)
293
- analytics << event_for_install_method(tool, ci, install_method, timestamp_seconds)
294
-
295
- send_events(analytics)
296
- end
297
108
  end
298
109
  end
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.112.0.beta.20181214200045
4
+ version: 2.112.0.beta.20181215200110
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohki Miki
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2018-12-14 00:00:00.000000000 Z
30
+ date: 2018-12-15 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1679,24 +1679,24 @@ metadata:
1679
1679
  post_install_message:
1680
1680
  rdoc_options: []
1681
1681
  require_paths:
1682
- - produce/lib
1682
+ - precheck/lib
1683
1683
  - spaceship/lib
1684
1684
  - credentials_manager/lib
1685
- - precheck/lib
1685
+ - fastlane/lib
1686
+ - supply/lib
1687
+ - deliver/lib
1688
+ - scan/lib
1689
+ - screengrab/lib
1686
1690
  - fastlane_core/lib
1691
+ - frameit/lib
1687
1692
  - pilot/lib
1688
- - scan/lib
1689
- - fastlane/lib
1690
1693
  - gym/lib
1691
1694
  - match/lib
1692
- - snapshot/lib
1693
- - screengrab/lib
1694
- - deliver/lib
1695
+ - produce/lib
1695
1696
  - sigh/lib
1696
- - frameit/lib
1697
+ - snapshot/lib
1697
1698
  - pem/lib
1698
1699
  - cert/lib
1699
- - supply/lib
1700
1700
  required_ruby_version: !ruby/object:Gem::Requirement
1701
1701
  requirements:
1702
1702
  - - ">="