fastlane 2.33.0.beta.20170522010027 → 2.33.0.beta.20170523010027

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: ee348640da1e8538fc4e0e3940ce8c46023db81c
4
- data.tar.gz: df154b446bd114437d1691d2080d1a54a6365527
3
+ metadata.gz: d56fdfebdbccd5c3bf6feb743ffdf5e6a2887000
4
+ data.tar.gz: f4841182cf8408c5f10233558918642ea97c9b20
5
5
  SHA512:
6
- metadata.gz: c6a55853d59c346f3e3f32321fb40807d46c187e4aa276d9a8aa97e7794046d99763e5f75d0d47d5b20d3ee0d1ca3979a2c470cca5c6bd8106bd66c88b7bf3bb
7
- data.tar.gz: f1bc827a719eab6469b30b79e49d55fccfccd1dab4b0452b27620c966bea30aac5277b57247ef92148e27f6ddacd1005535a768467bf3cad3f391786ce439bcf
6
+ metadata.gz: 9b1504226f539d980b8409a0fef4411c8e6fa179eb23e795e26a1b5a7d28c38f7339bc964bddddc1515c62fed5053748eddc365bc2272e4ad9fb156a1447900d
7
+ data.tar.gz: e20e51a696a8bffcd8caed18afe776b25890d387c00fac386d973683b9c27fdb477ee78a6644e90d286d90154fce97dea1ac1bef5f04fbc172dc5915330dcb1b
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.33.0.beta.20170522010027'.freeze
2
+ VERSION = '2.33.0.beta.20170523010027'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -4,6 +4,7 @@ require 'fileutils'
4
4
  require 'fastlane_core'
5
5
 
6
6
  require 'screengrab/runner'
7
+ require 'screengrab/reports_generator'
7
8
  require 'screengrab/detect_values'
8
9
  require 'screengrab/dependency_checker'
9
10
  require 'screengrab/options'
@@ -0,0 +1,34 @@
1
+ require 'erb'
2
+
3
+ module Screengrab
4
+ class ReportsGenerator
5
+ def generate
6
+ UI.message "Generating HTML Report"
7
+
8
+ screens_path = Screengrab.config[:output_directory]
9
+
10
+ @data = {}
11
+
12
+ Dir[File.join(screens_path, "*")].sort.each do |language_folder|
13
+ language = File.basename(language_folder)
14
+ Dir[File.join(language_folder, 'images', '*', '*.png')].sort.each do |screenshot|
15
+ device_type_folder = File.basename(File.dirname(screenshot))
16
+ @data[language] ||= {}
17
+ @data[language][device_type_folder] ||= []
18
+ resulting_path = File.join('.', language, 'images', device_type_folder, File.basename(screenshot))
19
+ @data[language][device_type_folder] << resulting_path
20
+ end
21
+ end
22
+
23
+ html_path = File.join(Screengrab::ROOT, "lib", "screengrab/page.html.erb")
24
+ html = ERB.new(File.read(html_path)).result(binding) # http://www.rrn.dk/rubys-erb-templating-system
25
+
26
+ export_path = "#{screens_path}/screenshots.html"
27
+ File.write(export_path, html)
28
+
29
+ export_path = File.expand_path(export_path)
30
+ UI.success "Successfully created HTML file with an overview of all the screenshots: '#{export_path}'"
31
+ system("open '#{export_path}'") unless Screengrab.config[:skip_open_summary]
32
+ end
33
+ end
34
+ end
@@ -67,7 +67,7 @@ module Screengrab
67
67
 
68
68
  number_of_screenshots = pull_screenshots_from_device(device_serial, device_screenshots_paths, device_type_dir_name)
69
69
 
70
- open_screenshots_summary(device_type_dir_name)
70
+ ReportsGenerator.new.generate
71
71
 
72
72
  UI.success "Captured #{number_of_screenshots} screenshots! 📷✨"
73
73
  end
@@ -343,16 +343,6 @@ module Screengrab
343
343
  # We can safely ignore that and treat it as if it returned 'No such file'
344
344
  end
345
345
 
346
- def open_screenshots_summary(device_type_dir_name)
347
- unless @config[:skip_open_summary]
348
- UI.message "Opening screenshots summary"
349
- # MCF: this isn't OK on any platform except Mac
350
- run_adb_command("open #{@config[:output_directory]}/*/images/#{device_type_dir_name}/*.png",
351
- print_all: false,
352
- print_command: true)
353
- end
354
- end
355
-
356
346
  def run_adb_command(command, print_all: false, print_command: false)
357
347
  output = @executor.execute(command: command,
358
348
  print_all: print_all,
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.33.0.beta.20170522010027
4
+ version: 2.33.0.beta.20170523010027
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: 2017-05-22 00:00:00.000000000 Z
18
+ date: 2017-05-23 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier
@@ -1226,6 +1226,7 @@ files:
1226
1226
  - screengrab/lib/screengrab/detect_values.rb
1227
1227
  - screengrab/lib/screengrab/options.rb
1228
1228
  - screengrab/lib/screengrab/page.html.erb
1229
+ - screengrab/lib/screengrab/reports_generator.rb
1229
1230
  - screengrab/lib/screengrab/runner.rb
1230
1231
  - screengrab/lib/screengrab/setup.rb
1231
1232
  - sigh/README.md
@@ -1367,23 +1368,23 @@ metadata:
1367
1368
  post_install_message:
1368
1369
  rdoc_options: []
1369
1370
  require_paths:
1370
- - cert/lib
1371
- - sigh/lib
1372
- - credentials_manager/lib
1373
- - scan/lib
1374
- - fastlane/lib
1375
- - fastlane_core/lib
1376
- - produce/lib
1377
1371
  - gym/lib
1378
- - frameit/lib
1379
- - snapshot/lib
1372
+ - supply/lib
1373
+ - produce/lib
1380
1374
  - pem/lib
1375
+ - sigh/lib
1381
1376
  - deliver/lib
1377
+ - fastlane_core/lib
1378
+ - scan/lib
1379
+ - pilot/lib
1380
+ - fastlane/lib
1381
+ - spaceship/lib
1382
1382
  - screengrab/lib
1383
- - supply/lib
1384
1383
  - match/lib
1385
- - spaceship/lib
1386
- - pilot/lib
1384
+ - snapshot/lib
1385
+ - credentials_manager/lib
1386
+ - frameit/lib
1387
+ - cert/lib
1387
1388
  required_ruby_version: !ruby/object:Gem::Requirement
1388
1389
  requirements:
1389
1390
  - - ">="