fastlane 2.74.1 → 2.75.0.beta.20180109010003

Sign up to get free protection for your applications and to get access to all the features.
Files changed (312) hide show
  1. checksums.yaml +4 -4
  2. data/bin/bin-proxy +2 -2
  3. data/bin/fastlane +5 -5
  4. data/cert/lib/cert/commands_generator.rb +1 -1
  5. data/cert/lib/cert/runner.rb +14 -14
  6. data/credentials_manager/lib/credentials_manager/account_manager.rb +11 -11
  7. data/credentials_manager/lib/credentials_manager/appfile_config.rb +11 -11
  8. data/credentials_manager/lib/credentials_manager/cli.rb +4 -4
  9. data/deliver/lib/deliver/app_screenshot.rb +19 -2
  10. data/deliver/lib/deliver/commands_generator.rb +2 -2
  11. data/deliver/lib/deliver/loader.rb +2 -2
  12. data/deliver/lib/deliver/options.rb +2 -2
  13. data/deliver/lib/deliver/setup.rb +1 -1
  14. data/deliver/lib/deliver/submit_for_review.rb +1 -1
  15. data/fastlane/lib/fastlane/action.rb +2 -2
  16. data/fastlane/lib/fastlane/actions/actions_helper.rb +5 -5
  17. data/fastlane/lib/fastlane/actions/add_extra_platforms.rb +2 -2
  18. data/fastlane/lib/fastlane/actions/add_git_tag.rb +1 -1
  19. data/fastlane/lib/fastlane/actions/app_store_build_number.rb +1 -1
  20. data/fastlane/lib/fastlane/actions/appaloosa.rb +4 -4
  21. data/fastlane/lib/fastlane/actions/appetize.rb +3 -3
  22. data/fastlane/lib/fastlane/actions/appetize_viewing_url_generator.rb +2 -2
  23. data/fastlane/lib/fastlane/actions/appium.rb +2 -2
  24. data/fastlane/lib/fastlane/actions/appledoc.rb +3 -3
  25. data/fastlane/lib/fastlane/actions/apteligent.rb +2 -2
  26. data/fastlane/lib/fastlane/actions/artifactory.rb +2 -2
  27. data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +1 -1
  28. data/fastlane/lib/fastlane/actions/build_ios_app.rb +1 -1
  29. data/fastlane/lib/fastlane/actions/capture_ios_screenshots.rb +1 -1
  30. data/fastlane/lib/fastlane/actions/carthage.rb +4 -4
  31. data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +4 -4
  32. data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +1 -1
  33. data/fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb +1 -1
  34. data/fastlane/lib/fastlane/actions/cloc.rb +1 -1
  35. data/fastlane/lib/fastlane/actions/cocoapods.rb +1 -1
  36. data/fastlane/lib/fastlane/actions/commit_github_file.rb +4 -4
  37. data/fastlane/lib/fastlane/actions/commit_version_bump.rb +7 -7
  38. data/fastlane/lib/fastlane/actions/copy_artifacts.rb +1 -1
  39. data/fastlane/lib/fastlane/actions/crashlytics.rb +2 -2
  40. data/fastlane/lib/fastlane/actions/debug.rb +2 -2
  41. data/fastlane/lib/fastlane/actions/delete_keychain.rb +1 -1
  42. data/fastlane/lib/fastlane/actions/deploygate.rb +7 -7
  43. data/fastlane/lib/fastlane/actions/docs/cert.md +2 -2
  44. data/fastlane/lib/fastlane/actions/docs/deliver.md +1 -1
  45. data/fastlane/lib/fastlane/actions/docs/frameit.md +2 -2
  46. data/fastlane/lib/fastlane/actions/docs/gym.md +1 -3
  47. data/fastlane/lib/fastlane/actions/docs/match.md +4 -4
  48. data/fastlane/lib/fastlane/actions/docs/pem.md +1 -1
  49. data/fastlane/lib/fastlane/actions/docs/precheck.md +2 -2
  50. data/fastlane/lib/fastlane/actions/docs/produce.md +1 -1
  51. data/fastlane/lib/fastlane/actions/docs/scan.md +0 -2
  52. data/fastlane/lib/fastlane/actions/docs/sigh.md +6 -6
  53. data/fastlane/lib/fastlane/actions/docs/snapshot.md +4 -4
  54. data/fastlane/lib/fastlane/actions/download_dsyms.rb +1 -1
  55. data/fastlane/lib/fastlane/actions/dsym_zip.rb +1 -1
  56. data/fastlane/lib/fastlane/actions/ensure_no_debug_code.rb +1 -1
  57. data/fastlane/lib/fastlane/actions/flock.rb +7 -7
  58. data/fastlane/lib/fastlane/actions/frame_screenshots.rb +1 -1
  59. data/fastlane/lib/fastlane/actions/gcovr.rb +5 -5
  60. data/fastlane/lib/fastlane/actions/get_build_number.rb +2 -2
  61. data/fastlane/lib/fastlane/actions/get_build_number_repository.rb +9 -9
  62. data/fastlane/lib/fastlane/actions/get_github_release.rb +2 -2
  63. data/fastlane/lib/fastlane/actions/get_info_plist_value.rb +1 -1
  64. data/fastlane/lib/fastlane/actions/get_version_number.rb +7 -7
  65. data/fastlane/lib/fastlane/actions/github_api.rb +2 -2
  66. data/fastlane/lib/fastlane/actions/hg_commit_version_bump.rb +2 -2
  67. data/fastlane/lib/fastlane/actions/hockey.rb +5 -5
  68. data/fastlane/lib/fastlane/actions/ifttt.rb +4 -4
  69. data/fastlane/lib/fastlane/actions/increment_build_number.rb +3 -3
  70. data/fastlane/lib/fastlane/actions/increment_version_number.rb +4 -4
  71. data/fastlane/lib/fastlane/actions/install_on_device.rb +2 -2
  72. data/fastlane/lib/fastlane/actions/install_xcode_plugin.rb +2 -2
  73. data/fastlane/lib/fastlane/actions/installr.rb +6 -6
  74. data/fastlane/lib/fastlane/actions/ipa.rb +1 -1
  75. data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +1 -1
  76. data/fastlane/lib/fastlane/actions/lcov.rb +1 -1
  77. data/fastlane/lib/fastlane/actions/mailgun.rb +3 -3
  78. data/fastlane/lib/fastlane/actions/modify_services.rb +1 -1
  79. data/fastlane/lib/fastlane/actions/notification.rb +1 -1
  80. data/fastlane/lib/fastlane/actions/number_of_commits.rb +1 -1
  81. data/fastlane/lib/fastlane/actions/onesignal.rb +1 -1
  82. data/fastlane/lib/fastlane/actions/pod_push.rb +1 -1
  83. data/fastlane/lib/fastlane/actions/podio_item.rb +6 -6
  84. data/fastlane/lib/fastlane/actions/puts.rb +1 -1
  85. data/fastlane/lib/fastlane/actions/read_podspec.rb +1 -1
  86. data/fastlane/lib/fastlane/actions/recreate_schemes.rb +1 -1
  87. data/fastlane/lib/fastlane/actions/reset_git_repo.rb +1 -1
  88. data/fastlane/lib/fastlane/actions/restore_file.rb +1 -1
  89. data/fastlane/lib/fastlane/actions/rocket.rb +2 -2
  90. data/fastlane/lib/fastlane/actions/run_tests.rb +1 -1
  91. data/fastlane/lib/fastlane/actions/s3.rb +1 -1
  92. data/fastlane/lib/fastlane/actions/scp.rb +2 -2
  93. data/fastlane/lib/fastlane/actions/set_build_number_repository.rb +1 -1
  94. data/fastlane/lib/fastlane/actions/set_changelog.rb +2 -2
  95. data/fastlane/lib/fastlane/actions/set_github_release.rb +4 -4
  96. data/fastlane/lib/fastlane/actions/set_info_plist_value.rb +2 -2
  97. data/fastlane/lib/fastlane/actions/set_pod_key.rb +1 -1
  98. data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +4 -4
  99. data/fastlane/lib/fastlane/actions/setup_jenkins.rb +6 -6
  100. data/fastlane/lib/fastlane/actions/setup_travis.rb +2 -2
  101. data/fastlane/lib/fastlane/actions/slack.rb +3 -3
  102. data/fastlane/lib/fastlane/actions/slather.rb +2 -2
  103. data/fastlane/lib/fastlane/actions/spm.rb +2 -2
  104. data/fastlane/lib/fastlane/actions/ssh.rb +1 -1
  105. data/fastlane/lib/fastlane/actions/team_id.rb +1 -1
  106. data/fastlane/lib/fastlane/actions/team_name.rb +1 -1
  107. data/fastlane/lib/fastlane/actions/testfairy.rb +7 -7
  108. data/fastlane/lib/fastlane/actions/tryouts.rb +6 -6
  109. data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +2 -2
  110. data/fastlane/lib/fastlane/actions/update_fastlane.rb +5 -5
  111. data/fastlane/lib/fastlane/actions/update_icloud_container_identifiers.rb +10 -10
  112. data/fastlane/lib/fastlane/actions/update_info_plist.rb +1 -1
  113. data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +1 -1
  114. data/fastlane/lib/fastlane/actions/update_url_schemes.rb +1 -1
  115. data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +4 -4
  116. data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +4 -4
  117. data/fastlane/lib/fastlane/actions/verify_build.rb +6 -6
  118. data/fastlane/lib/fastlane/actions/verify_pod_keys.rb +1 -1
  119. data/fastlane/lib/fastlane/actions/version_bump_podspec.rb +3 -3
  120. data/fastlane/lib/fastlane/actions/version_get_podspec.rb +2 -2
  121. data/fastlane/lib/fastlane/actions/xcode_select.rb +2 -2
  122. data/fastlane/lib/fastlane/actions/xcode_server_get_assets.rb +3 -3
  123. data/fastlane/lib/fastlane/actions/xcov.rb +1 -1
  124. data/fastlane/lib/fastlane/actions/xctool.rb +1 -1
  125. data/fastlane/lib/fastlane/actions/xcversion.rb +1 -1
  126. data/fastlane/lib/fastlane/actions/zip.rb +3 -3
  127. data/fastlane/lib/fastlane/auto_complete.rb +15 -15
  128. data/fastlane/lib/fastlane/cli_tools_distributor.rb +15 -15
  129. data/fastlane/lib/fastlane/command_line_handler.rb +1 -1
  130. data/fastlane/lib/fastlane/commands_generator.rb +26 -26
  131. data/fastlane/lib/fastlane/configuration_helper.rb +2 -2
  132. data/fastlane/lib/fastlane/documentation/actions_list.rb +47 -47
  133. data/fastlane/lib/fastlane/documentation/docs_generator.rb +1 -1
  134. data/fastlane/lib/fastlane/environment_printer.rb +5 -5
  135. data/fastlane/lib/fastlane/fast_file.rb +5 -5
  136. data/fastlane/lib/fastlane/fastlane_require.rb +2 -2
  137. data/fastlane/lib/fastlane/helper/crashlytics_helper.rb +3 -3
  138. data/fastlane/lib/fastlane/helper/podspec_helper.rb +1 -1
  139. data/fastlane/lib/fastlane/helper/sh_helper.rb +2 -2
  140. data/fastlane/lib/fastlane/helper/xcversion_helper.rb +1 -1
  141. data/fastlane/lib/fastlane/lane.rb +6 -6
  142. data/fastlane/lib/fastlane/lane_list.rb +3 -3
  143. data/fastlane/lib/fastlane/lane_manager.rb +7 -7
  144. data/fastlane/lib/fastlane/lane_manager_base.rb +15 -15
  145. data/fastlane/lib/fastlane/markdown_table_formatter.rb +2 -2
  146. data/fastlane/lib/fastlane/new_action.rb +5 -5
  147. data/fastlane/lib/fastlane/one_off.rb +1 -1
  148. data/fastlane/lib/fastlane/plugins/plugin_generator.rb +5 -5
  149. data/fastlane/lib/fastlane/plugins/plugin_generator_ui.rb +2 -2
  150. data/fastlane/lib/fastlane/plugins/plugin_manager.rb +7 -7
  151. data/fastlane/lib/fastlane/plugins/plugin_search.rb +5 -5
  152. data/fastlane/lib/fastlane/plugins/plugin_update_manager.rb +4 -4
  153. data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +9 -8
  154. data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +37 -2
  155. data/fastlane/lib/fastlane/plugins/template/Gemfile +1 -1
  156. data/fastlane/lib/fastlane/plugins/template/Rakefile +1 -1
  157. data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb +3 -0
  158. data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/helper/%plugin_name%_helper.rb.erb +4 -0
  159. data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +1 -1
  160. data/fastlane/lib/fastlane/runner.rb +9 -9
  161. data/fastlane/lib/fastlane/setup/crashlytics_beta.rb +9 -9
  162. data/fastlane/lib/fastlane/setup/crashlytics_beta_command_line_handler.rb +7 -7
  163. data/fastlane/lib/fastlane/setup/crashlytics_beta_info_collector.rb +19 -19
  164. data/fastlane/lib/fastlane/setup/crashlytics_beta_ui.rb +3 -3
  165. data/fastlane/lib/fastlane/setup/setup_android.rb +4 -4
  166. data/fastlane/lib/fastlane/setup/setup_ios.rb +9 -9
  167. data/fastlane/lib/fastlane/supported_platforms.rb +1 -1
  168. data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +10 -6
  169. data/fastlane/lib/fastlane/swift_lane_manager.rb +1 -1
  170. data/fastlane/lib/fastlane/version.rb +1 -1
  171. data/fastlane_core/README.md +0 -26
  172. data/fastlane_core/lib/fastlane_core/analytics/analytics_ingester_client.rb +2 -2
  173. data/fastlane_core/lib/fastlane_core/build_watcher.rb +1 -1
  174. data/fastlane_core/lib/fastlane_core/cert_checker.rb +2 -2
  175. data/fastlane_core/lib/fastlane_core/command_executor.rb +3 -3
  176. data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +4 -4
  177. data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +4 -4
  178. data/fastlane_core/lib/fastlane_core/configuration/configuration_file.rb +4 -4
  179. data/fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb +3 -3
  180. data/fastlane_core/lib/fastlane_core/device_manager.rb +2 -4
  181. data/fastlane_core/lib/fastlane_core/fastlane_folder.rb +1 -1
  182. data/fastlane_core/lib/fastlane_core/globals.rb +3 -3
  183. data/fastlane_core/lib/fastlane_core/helper.rb +1 -1
  184. data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +1 -1
  185. data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +2 -2
  186. data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +2 -2
  187. data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +1 -1
  188. data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +1 -1
  189. data/fastlane_core/lib/fastlane_core/print_table.rb +5 -5
  190. data/fastlane_core/lib/fastlane_core/project.rb +7 -7
  191. data/fastlane_core/lib/fastlane_core/swag.rb +9 -9
  192. data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +49 -49
  193. data/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb +18 -18
  194. data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +1 -1
  195. data/fastlane_core/lib/fastlane_core/update_checker/changelog.rb +7 -7
  196. data/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb +11 -11
  197. data/frameit/lib/frameit/commands_generator.rb +2 -2
  198. data/frameit/lib/frameit/config_parser.rb +11 -11
  199. data/frameit/lib/frameit/dependency_checker.rb +7 -7
  200. data/frameit/lib/frameit/editor.rb +41 -41
  201. data/frameit/lib/frameit/frame_downloader.rb +12 -12
  202. data/frameit/lib/frameit/mac_editor.rb +2 -2
  203. data/frameit/lib/frameit/options.rb +1 -1
  204. data/frameit/lib/frameit/runner.rb +7 -7
  205. data/frameit/lib/frameit/screenshot.rb +5 -5
  206. data/frameit/lib/frameit/strings_parser.rb +6 -6
  207. data/frameit/lib/frameit/template_finder.rb +3 -3
  208. data/gym/lib/gym/commands_generator.rb +4 -4
  209. data/gym/lib/gym/detect_values.rb +1 -1
  210. data/gym/lib/gym/error_handler.rb +84 -84
  211. data/gym/lib/gym/generators/build_command_generator.rb +1 -1
  212. data/gym/lib/gym/runner.rb +24 -24
  213. data/gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb +2 -2
  214. data/match/lib/assets/READMETemplate.md +3 -3
  215. data/match/lib/match/commands_generator.rb +3 -3
  216. data/match/lib/match/encrypt.rb +10 -10
  217. data/match/lib/match/git_helper.rb +5 -5
  218. data/match/lib/match/nuke.rb +29 -29
  219. data/match/lib/match/runner.rb +13 -13
  220. data/match/lib/match/setup.rb +7 -7
  221. data/match/lib/match/table_printer.rb +6 -6
  222. data/match/lib/match/utils.rb +2 -2
  223. data/pem/lib/pem/commands_generator.rb +1 -1
  224. data/pem/lib/pem/manager.rb +9 -9
  225. data/pem/lib/pem/module.rb +1 -1
  226. data/pilot/lib/pilot/build_manager.rb +8 -8
  227. data/pilot/lib/pilot/commands_generator.rb +1 -1
  228. data/pilot/lib/pilot/manager.rb +1 -1
  229. data/pilot/lib/pilot/options.rb +4 -4
  230. data/pilot/lib/pilot/tester_manager.rb +10 -10
  231. data/precheck/lib/precheck/commands_generator.rb +4 -4
  232. data/precheck/lib/precheck/rule.rb +2 -2
  233. data/precheck/lib/precheck/rule_processor.rb +7 -7
  234. data/precheck/lib/precheck/rules/abstract_text_match_rule.rb +2 -2
  235. data/precheck/lib/precheck/rules/curse_words_rule.rb +3 -3
  236. data/precheck/lib/precheck/rules/unreachable_urls_rule.rb +3 -3
  237. data/precheck/lib/precheck/runner.rb +7 -7
  238. data/produce/lib/produce/commands_generator.rb +48 -48
  239. data/produce/lib/produce/developer_center.rb +4 -4
  240. data/produce/lib/produce/group.rb +2 -2
  241. data/produce/lib/produce/itunes_connect.rb +4 -4
  242. data/produce/lib/produce/options.rb +3 -3
  243. data/produce/lib/produce/service.rb +1 -1
  244. data/scan/lib/scan/commands_generator.rb +2 -2
  245. data/scan/lib/scan/error_handler.rb +12 -12
  246. data/scan/lib/scan/runner.rb +3 -3
  247. data/scan/lib/scan/slack_poster.rb +2 -2
  248. data/scan/lib/scan/test_command_generator.rb +1 -1
  249. data/screengrab/lib/screengrab/commands_generator.rb +1 -1
  250. data/screengrab/lib/screengrab/dependency_checker.rb +9 -9
  251. data/screengrab/lib/screengrab/options.rb +3 -3
  252. data/screengrab/lib/screengrab/reports_generator.rb +2 -2
  253. data/screengrab/lib/screengrab/runner.rb +32 -32
  254. data/sigh/lib/sigh/commands_generator.rb +18 -18
  255. data/sigh/lib/sigh/download_all.rb +4 -4
  256. data/sigh/lib/sigh/local_manage.rb +27 -27
  257. data/sigh/lib/sigh/manager.rb +1 -1
  258. data/sigh/lib/sigh/repair.rb +6 -6
  259. data/sigh/lib/sigh/resign.rb +7 -7
  260. data/sigh/lib/sigh/runner.rb +26 -26
  261. data/snapshot/lib/snapshot/collector.rb +7 -7
  262. data/snapshot/lib/snapshot/commands_generator.rb +7 -7
  263. data/snapshot/lib/snapshot/dependency_checker.rb +34 -19
  264. data/snapshot/lib/snapshot/detect_values.rb +2 -0
  265. data/snapshot/lib/snapshot/error_handler.rb +1 -1
  266. data/snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb +1 -1
  267. data/snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb +1 -1
  268. data/snapshot/lib/snapshot/reports_generator.rb +2 -2
  269. data/snapshot/lib/snapshot/reset_simulators.rb +2 -2
  270. data/snapshot/lib/snapshot/runner.rb +14 -14
  271. data/snapshot/lib/snapshot/screenshot_flatten.rb +1 -1
  272. data/snapshot/lib/snapshot/screenshot_rotate.rb +6 -6
  273. data/snapshot/lib/snapshot/setup.rb +16 -16
  274. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +1 -1
  275. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +7 -7
  276. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb +4 -4
  277. data/snapshot/lib/snapshot/update.rb +8 -8
  278. data/spaceship/lib/spaceship/base.rb +3 -3
  279. data/spaceship/lib/spaceship/client.rb +17 -17
  280. data/spaceship/lib/spaceship/commands_generator.rb +1 -1
  281. data/spaceship/lib/spaceship/du/du_client.rb +6 -3
  282. data/spaceship/lib/spaceship/globals.rb +1 -1
  283. data/spaceship/lib/spaceship/playground.rb +18 -18
  284. data/spaceship/lib/spaceship/portal/certificate.rb +5 -5
  285. data/spaceship/lib/spaceship/portal/device.rb +2 -2
  286. data/spaceship/lib/spaceship/portal/portal_client.rb +7 -7
  287. data/spaceship/lib/spaceship/portal/provisioning_profile.rb +7 -9
  288. data/spaceship/lib/spaceship/portal/ui/select_team.rb +13 -13
  289. data/spaceship/lib/spaceship/spaceauth_runner.rb +16 -16
  290. data/spaceship/lib/spaceship/test_flight/client.rb +9 -9
  291. data/spaceship/lib/spaceship/tunes/app_details.rb +1 -1
  292. data/spaceship/lib/spaceship/tunes/app_version.rb +7 -7
  293. data/spaceship/lib/spaceship/tunes/app_version_common.rb +1 -1
  294. data/spaceship/lib/spaceship/tunes/application.rb +1 -1
  295. data/spaceship/lib/spaceship/tunes/device_type.rb +2 -2
  296. data/spaceship/lib/spaceship/tunes/iap_detail.rb +1 -1
  297. data/spaceship/lib/spaceship/tunes/tunes_client.rb +54 -54
  298. data/spaceship/lib/spaceship/two_step_client.rb +19 -19
  299. data/spaceship/lib/spaceship/ui.rb +1 -1
  300. data/supply/lib/supply/client.rb +1 -1
  301. data/supply/lib/supply/commands_generator.rb +1 -1
  302. data/supply/lib/supply/options.rb +14 -14
  303. data/supply/lib/supply/uploader.rb +3 -3
  304. metadata +31 -25
  305. data/fastlane/lib/.DS_Store +0 -0
  306. data/fastlane/lib/assets/.DS_Store +0 -0
  307. data/fastlane/lib/fastlane/.DS_Store +0 -0
  308. data/fastlane/lib/fastlane/actions/.DS_Store +0 -0
  309. data/fastlane/lib/fastlane/actions/docs/.DS_Store +0 -0
  310. data/fastlane/lib/fastlane/setup/.DS_Store +0 -0
  311. data/fastlane_core/lib/.DS_Store +0 -0
  312. data/fastlane_core/lib/fastlane_core/.DS_Store +0 -0
@@ -32,8 +32,8 @@ module FastlaneCore
32
32
  @break = true
33
33
  @thr.join
34
34
  # Process.kill("KILL", @sound_pid) if @sound_thr
35
- STDOUT.print "\e[H\e[2J"
36
- STDOUT.print "\e[?25l"
35
+ STDOUT.print("\e[H\e[2J")
36
+ STDOUT.print("\e[?25l")
37
37
  end
38
38
 
39
39
  def self.should_be_shown?
@@ -66,19 +66,19 @@ module FastlaneCore
66
66
  interrupted = false
67
67
  begin
68
68
  loop do
69
- STDOUT.print "\e[H\e[2J"
70
- STDOUT.print "\e[?25l"
71
- FRAMES.each.with_index 1 do |frame, nxt|
72
- STDOUT.print Zlib::Inflate.inflate frame
73
- sleep 0.1
69
+ STDOUT.print("\e[H\e[2J")
70
+ STDOUT.print("\e[?25l")
71
+ FRAMES.each.with_index(1) do |frame, nxt|
72
+ STDOUT.print(Zlib::Inflate.inflate(frame))
73
+ sleep(0.1)
74
74
  break if interrupted
75
- STDOUT.print "\e[H\e[2J" if FRAMES[nxt]
75
+ STDOUT.print("\e[H\e[2J") if FRAMES[nxt]
76
76
  end
77
77
  break if do_break
78
78
  end
79
79
  STDOUT.puts
80
80
  ensure
81
- print "\e[?25h"
81
+ print("\e[?25h")
82
82
  end
83
83
  end
84
84
  end
@@ -36,8 +36,8 @@ module Commander
36
36
  attr_accessor :collector
37
37
 
38
38
  def run!
39
- require_program :version, :description
40
- trap('INT') { abort program(:int_message) } if program(:int_message)
39
+ require_program(:version, :description)
40
+ trap('INT') { abort(program(:int_message)) } if program(:int_message)
41
41
  trap('INT') { program(:int_block).call } if program(:int_block)
42
42
  global_option('-h', '--help', 'Display help documentation') do
43
43
  args = @args - %w(-h --help)
@@ -45,11 +45,11 @@ module Commander
45
45
  return
46
46
  end
47
47
  global_option('-v', '--version', 'Display version information') do
48
- say version
48
+ say(version)
49
49
  return
50
50
  end
51
51
  parse_global_options
52
- remove_global_options options, @args
52
+ remove_global_options(options, @args)
53
53
 
54
54
  xcode_outdated = false
55
55
  begin
@@ -83,7 +83,7 @@ module Commander
83
83
  raise e
84
84
  else
85
85
  FastlaneCore::CrashReporter.report_crash(exception: e)
86
- abort "#{e}. Use --help for more information"
86
+ abort("#{e}. Use --help for more information")
87
87
  end
88
88
  rescue Interrupt => e
89
89
  # We catch it so that the stack trace is hidden by default when using ctrl + c
@@ -91,7 +91,7 @@ module Commander
91
91
  raise e
92
92
  else
93
93
  action_completed(@program[:name], status: FastlaneCore::ActionCompletionStatus::INTERRUPTED, exception: e)
94
- puts "\nCancelled... use --verbose to show the stack trace"
94
+ puts("\nCancelled... use --verbose to show the stack trace")
95
95
  end
96
96
  rescue \
97
97
  OptionParser::InvalidOption,
@@ -109,13 +109,13 @@ module Commander
109
109
  # This would be confusing, as the user probably wanted to use `pilot list`
110
110
  # or some other command. Because `-u` isn't available for the `pilot --help`
111
111
  # command it would show this very confusing error message otherwise
112
- abort "Please ensure to use one of the available commands (#{self.commands.keys.join(', ')})".red
112
+ abort("Please ensure to use one of the available commands (#{self.commands.keys.join(', ')})".red)
113
113
  else
114
114
  # This would print something like
115
115
  #
116
116
  # invalid option: -u
117
117
  #
118
- abort e.to_s
118
+ abort(e.to_s)
119
119
  end
120
120
  end
121
121
  rescue FastlaneCore::Interface::FastlaneCommonException => e # these are exceptions that we dont count as crashes
@@ -144,16 +144,16 @@ module Commander
144
144
 
145
145
  def rescue_file_error(e)
146
146
  # We're also printing the new-lines, as otherwise the message is not very visible in-between the error and the stack trace
147
- puts ""
147
+ puts("")
148
148
  FastlaneCore::UI.important("Error accessing file, this might be due to fastlane's directory handling")
149
149
  FastlaneCore::UI.important("Check out https://docs.fastlane.tools/advanced/#directory-behavior for more details")
150
- puts ""
150
+ puts("")
151
151
  FastlaneCore::CrashReporter.report_crash(exception: e)
152
152
  raise e
153
153
  end
154
154
 
155
155
  def rescue_connection_failed_error(e)
156
- if e.message.include? 'Connection reset by peer - SSL_connect'
156
+ if e.message.include?('Connection reset by peer - SSL_connect')
157
157
  handle_tls_error!(e)
158
158
  else
159
159
  FastlaneCore::CrashReporter.report_crash(exception: e)
@@ -196,45 +196,45 @@ module Commander
196
196
 
197
197
  def suggest_ruby_reinstall(e)
198
198
  ui = FastlaneCore::UI
199
- ui.error "-----------------------------------------------------------------------"
200
- ui.error e.to_s
201
- ui.error ""
202
- ui.error "SSL errors can be caused by various components on your local machine."
199
+ ui.error("-----------------------------------------------------------------------")
200
+ ui.error(e.to_s)
201
+ ui.error("")
202
+ ui.error("SSL errors can be caused by various components on your local machine.")
203
203
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.1')
204
- ui.error "Apple has recently changed their servers to require TLS 1.2, which may"
205
- ui.error "not be available to your system installed Ruby (#{RUBY_VERSION})"
204
+ ui.error("Apple has recently changed their servers to require TLS 1.2, which may")
205
+ ui.error("not be available to your system installed Ruby (#{RUBY_VERSION})")
206
206
  end
207
- ui.error ""
208
- ui.error "The best solution is to use the self-contained fastlane version."
209
- ui.error "Which ships with a bundled OpenSSL,ruby and all gems - so you don't depend on system libraries"
210
- ui.error " - Use Homebrew"
211
- ui.error " - update brew with `brew update`"
212
- ui.error " - install fastlane using:"
213
- ui.error " - `brew cask install fastlane`"
214
- ui.error " - Use One-Click-Installer:"
215
- ui.error " - download fastlane at https://download.fastlane.tools"
216
- ui.error " - extract the archive and double click the `install`"
217
- ui.error "-----------------------------------------------------------"
218
- ui.error "for more details on ways to install fastlane please refer the documentation:"
219
- ui.error "-----------------------------------------------------------"
220
- ui.error " 🚀 https://docs.fastlane.tools 🚀 "
221
- ui.error "-----------------------------------------------------------"
222
- ui.error ""
223
- ui.error "You can also install a new version of Ruby"
224
- ui.error ""
225
- ui.error "- Make sure OpenSSL is installed with Homebrew: `brew update && brew upgrade openssl`"
226
- ui.error "- If you use system Ruby:"
227
- ui.error " - Run `brew update && brew install ruby`"
228
- ui.error "- If you use rbenv with ruby-build:"
229
- ui.error " - Run `brew update && brew upgrade ruby-build && rbenv install 2.3.1`"
230
- ui.error " - Run `rbenv global 2.3.1` to make it the new global default Ruby version"
231
- ui.error "- If you use rvm:"
232
- ui.error " - First run `rvm osx-ssl-certs update all`"
233
- ui.error " - Then run `rvm reinstall ruby-2.3.1 --with-openssl-dir=/usr/local`"
234
- ui.error ""
235
- ui.error "If that doesn't fix your issue, please google for the following error message:"
236
- ui.error " '#{e}'"
237
- ui.error "-----------------------------------------------------------------------"
207
+ ui.error("")
208
+ ui.error("The best solution is to use the self-contained fastlane version.")
209
+ ui.error("Which ships with a bundled OpenSSL,ruby and all gems - so you don't depend on system libraries")
210
+ ui.error(" - Use Homebrew")
211
+ ui.error(" - update brew with `brew update`")
212
+ ui.error(" - install fastlane using:")
213
+ ui.error(" - `brew cask install fastlane`")
214
+ ui.error(" - Use One-Click-Installer:")
215
+ ui.error(" - download fastlane at https://download.fastlane.tools")
216
+ ui.error(" - extract the archive and double click the `install`")
217
+ ui.error("-----------------------------------------------------------")
218
+ ui.error("for more details on ways to install fastlane please refer the documentation:")
219
+ ui.error("-----------------------------------------------------------")
220
+ ui.error(" 🚀 https://docs.fastlane.tools 🚀 ")
221
+ ui.error("-----------------------------------------------------------")
222
+ ui.error("")
223
+ ui.error("You can also install a new version of Ruby")
224
+ ui.error("")
225
+ ui.error("- Make sure OpenSSL is installed with Homebrew: `brew update && brew upgrade openssl`")
226
+ ui.error("- If you use system Ruby:")
227
+ ui.error(" - Run `brew update && brew install ruby`")
228
+ ui.error("- If you use rbenv with ruby-build:")
229
+ ui.error(" - Run `brew update && brew upgrade ruby-build && rbenv install 2.3.1`")
230
+ ui.error(" - Run `rbenv global 2.3.1` to make it the new global default Ruby version")
231
+ ui.error("- If you use rvm:")
232
+ ui.error(" - First run `rvm osx-ssl-certs update all`")
233
+ ui.error(" - Then run `rvm reinstall ruby-2.3.1 --with-openssl-dir=/usr/local`")
234
+ ui.error("")
235
+ ui.error("If that doesn't fix your issue, please google for the following error message:")
236
+ ui.error(" '#{e}'")
237
+ ui.error("-----------------------------------------------------------------------")
238
238
  end
239
239
 
240
240
  def handle_unknown_error!(e)
@@ -269,7 +269,7 @@ module Commander
269
269
  else
270
270
  # without stack trace
271
271
  action_completed(@program[:name], status: FastlaneCore::ActionCompletionStatus::USER_ERROR, exception: e)
272
- abort "\n[!] #{message}".red
272
+ abort("\n[!] #{message}".red)
273
273
  end
274
274
  end
275
275
 
@@ -9,10 +9,10 @@ module Fastlane
9
9
 
10
10
  # Called just as the investigation has begun.
11
11
  def inspector_started_query(query, inspector)
12
- puts ""
13
- puts "Looking for related GitHub issues on #{inspector.repo_owner}/#{inspector.repo_name}..."
14
- puts "Search query: #{query}" if FastlaneCore::Globals.verbose?
15
- puts ""
12
+ puts("")
13
+ puts("Looking for related GitHub issues on #{inspector.repo_owner}/#{inspector.repo_name}...")
14
+ puts("Search query: #{query}") if FastlaneCore::Globals.verbose?
15
+ puts("")
16
16
  end
17
17
 
18
18
  # Called once the inspector has recieved a report with more than one issue.
@@ -21,8 +21,8 @@ module Fastlane
21
21
 
22
22
  if report.issues.count > NUMBER_OF_ISSUES_INLINE
23
23
  report.url.sub!('\'', '%27')
24
- puts "and #{report.total_results - NUMBER_OF_ISSUES_INLINE} more at: #{report.url}"
25
- puts ""
24
+ puts("and #{report.total_results - NUMBER_OF_ISSUES_INLINE} more at: #{report.url}")
25
+ puts("")
26
26
  end
27
27
 
28
28
  print_open_link_hint
@@ -30,16 +30,16 @@ module Fastlane
30
30
 
31
31
  # Called once the report has been recieved, but when there are no issues found.
32
32
  def inspector_recieved_empty_report(report, inspector)
33
- puts "Found no similar issues. To create a new issue, please visit:"
34
- puts "https://github.com/#{inspector.repo_owner}/#{inspector.repo_name}/issues/new"
35
- puts "Run `fastlane env` to append the fastlane environment to your issue"
33
+ puts("Found no similar issues. To create a new issue, please visit:")
34
+ puts("https://github.com/#{inspector.repo_owner}/#{inspector.repo_name}/issues/new")
35
+ puts("Run `fastlane env` to append the fastlane environment to your issue")
36
36
  end
37
37
 
38
38
  # Called when there have been networking issues in creating the report.
39
39
  def inspector_could_not_create_report(error, query, inspector)
40
- puts "Could not access the GitHub API, you may have better luck via the website."
41
- puts "https://github.com/#{inspector.repo_owner}/#{inspector.repo_name}/search?q=#{query}&type=Issues&utf8=✓"
42
- puts "Error: #{error.name}"
40
+ puts("Could not access the GitHub API, you may have better luck via the website.")
41
+ puts("https://github.com/#{inspector.repo_owner}/#{inspector.repo_name}/search?q=#{query}&type=Issues&utf8=✓")
42
+ puts("Error: #{error.name}")
43
43
  end
44
44
 
45
45
  private
@@ -48,15 +48,15 @@ module Fastlane
48
48
  resolved = issue.state == 'closed'
49
49
  status = (resolved ? issue.state.green : issue.state.red)
50
50
 
51
- puts "➡️ #{issue.title.yellow}"
52
- puts " #{issue.html_url} [#{status}] #{issue.comments} 💬"
53
- puts " #{Time.parse(issue.updated_at).to_pretty}"
54
- puts ""
51
+ puts("➡️ #{issue.title.yellow}")
52
+ puts(" #{issue.html_url} [#{status}] #{issue.comments} 💬")
53
+ puts(" #{Time.parse(issue.updated_at).to_pretty}")
54
+ puts("")
55
55
  end
56
56
 
57
57
  def print_open_link_hint(newline = false)
58
- puts "" if newline
59
- puts "🔗 You can ⌘ + double-click on links to open them directly in your browser." if FastlaneCore::Helper.mac?
58
+ puts("") if newline
59
+ puts("🔗 You can ⌘ + double-click on links to open them directly in your browser.") if FastlaneCore::Helper.mac?
60
60
  end
61
61
  end
62
62
  end
@@ -16,7 +16,7 @@ module FastlaneCore
16
16
  $stdout.sync = true
17
17
 
18
18
  if Helper.is_test? && !ENV.key?('DEBUG')
19
- $stdout.puts "Logging disabled while running tests. Force them by setting the DEBUG environment variable"
19
+ $stdout.puts("Logging disabled while running tests. Force them by setting the DEBUG environment variable")
20
20
  @log ||= Logger.new(nil) # don't show any logs when running tests
21
21
  else
22
22
  @log ||= Logger.new($stdout)
@@ -8,19 +8,19 @@ module FastlaneCore
8
8
 
9
9
  self.releases(gem_name).each_with_index do |release, index|
10
10
  next unless Gem::Version.new(release['tag_name']) > Gem::Version.new(current_version)
11
- puts ""
12
- puts release['name'].green
13
- puts release['body']
11
+ puts("")
12
+ puts(release['name'].green)
13
+ puts(release['body'])
14
14
  did_show_changelog = true
15
15
 
16
16
  next unless index == 2
17
- puts ""
18
- puts "To see all new releases, open https://github.com/fastlane/#{gem_name}/releases".green
17
+ puts("")
18
+ puts("To see all new releases, open https://github.com/fastlane/#{gem_name}/releases".green)
19
19
  break
20
20
  end
21
21
 
22
- puts ""
23
- puts "Please update using `#{update_gem_command}`".green if did_show_changelog
22
+ puts("")
23
+ puts("Please update using `#{update_gem_command}`".green) if did_show_changelog
24
24
  rescue
25
25
  # Something went wrong, we don't care so much about this
26
26
  end
@@ -64,24 +64,24 @@ module FastlaneCore
64
64
  # appropriate message to the user
65
65
  def self.show_update_message(gem_name, current_version)
66
66
  available = server_results[gem_name]
67
- puts ""
68
- puts '#######################################################################'.green
67
+ puts("")
68
+ puts('#######################################################################'.green)
69
69
  if available
70
- puts "# #{gem_name} #{available} is available. You are on #{current_version}.".green
70
+ puts("# #{gem_name} #{available} is available. You are on #{current_version}.".green)
71
71
  else
72
- puts "# An update for #{gem_name} is available. You are on #{current_version}.".green
72
+ puts("# An update for #{gem_name} is available. You are on #{current_version}.".green)
73
73
  end
74
- puts "# You should use the latest version.".green
75
- puts "# Please update using `#{self.update_command(gem_name: gem_name)}`.".green
74
+ puts("# You should use the latest version.".green)
75
+ puts("# Please update using `#{self.update_command(gem_name: gem_name)}`.".green)
76
76
 
77
- puts "# To see what's new, open https://github.com/fastlane/#{gem_name}/releases.".green if FastlaneCore::Env.truthy?("FASTLANE_HIDE_CHANGELOG")
77
+ puts("# To see what's new, open https://github.com/fastlane/#{gem_name}/releases.".green) if FastlaneCore::Env.truthy?("FASTLANE_HIDE_CHANGELOG")
78
78
 
79
79
  if !Helper.bundler? && !Helper.contained_fastlane? && Random.rand(5) == 1
80
80
  # We want to show this message from time to time, if the user doesn't use bundler, nor bundled fastlane
81
- puts '#######################################################################'.green
82
- puts "# Run `sudo gem cleanup` from time to time to speed up fastlane".green
81
+ puts('#######################################################################'.green)
82
+ puts("# Run `sudo gem cleanup` from time to time to speed up fastlane".green)
83
83
  end
84
- puts '#######################################################################'.green
84
+ puts('#######################################################################'.green)
85
85
  Changelog.show_changes(gem_name, current_version, update_gem_command: UpdateChecker.update_command(gem_name: gem_name)) unless FastlaneCore::Env.truthy?("FASTLANE_HIDE_CHANGELOG")
86
86
 
87
87
  ensure_rubygems_source
@@ -107,7 +107,7 @@ module FastlaneCore
107
107
  def self.ensure_rubygems_source
108
108
  return if Helper.contained_fastlane?
109
109
  return if `gem sources`.include?("https://rubygems.org")
110
- puts ""
110
+ puts("")
111
111
  UI.error("RubyGems is not listed as your Gem source")
112
112
  UI.error("You can run `gem sources` to see all your sources")
113
113
  UI.error("Please run the following command to fix this:")
@@ -30,7 +30,7 @@ module Frameit
30
30
 
31
31
  global_option('--verbose') { FastlaneCore::Globals.verbose = true }
32
32
 
33
- default_command :run
33
+ default_command(:run)
34
34
 
35
35
  command :run do |c|
36
36
  c.syntax = 'fastlane frameit black'
@@ -98,7 +98,7 @@ module Frameit
98
98
  end
99
99
  end
100
100
 
101
- alias_command :white, :silver
101
+ alias_command(:white, :silver)
102
102
 
103
103
  run!
104
104
  end
@@ -16,8 +16,8 @@ module Frameit
16
16
  begin
17
17
  @data = JSON.parse(data)
18
18
  rescue => ex
19
- UI.error ex.message
20
- UI.user_error! "Invalid JSON file at path '#{@path}'. Make sure it's a valid JSON file"
19
+ UI.error(ex.message)
20
+ UI.user_error!("Invalid JSON file at path '#{@path}'. Make sure it's a valid JSON file")
21
21
  end
22
22
 
23
23
  self
@@ -26,7 +26,7 @@ module Frameit
26
26
  # Fetches the finished configuration for a given path. This will try to look for a specific value
27
27
  # and fallback to a default value if nothing was found
28
28
  def fetch_value(path)
29
- specific = @data['data'].find { |a| path.include? a['filter'] }
29
+ specific = @data['data'].find { |a| path.include?(a['filter']) }
30
30
 
31
31
  default = @data['default']
32
32
 
@@ -41,19 +41,19 @@ module Frameit
41
41
  # Use absolute paths instead of relative
42
42
  def change_paths_to_absolutes!(values)
43
43
  values.each do |key, value|
44
- if value.kind_of? Hash
44
+ if value.kind_of?(Hash)
45
45
  change_paths_to_absolutes!(value) # recursive call
46
- elsif value.kind_of? Array
46
+ elsif value.kind_of?(Array)
47
47
  value.each do |current|
48
- change_paths_to_absolutes!(current) if current.kind_of? Hash # recursive call
48
+ change_paths_to_absolutes!(current) if current.kind_of?(Hash) # recursive call
49
49
  end
50
50
  else
51
- if ['font', 'background'].include? key
51
+ if ['font', 'background'].include?(key)
52
52
  # Change the paths to relative ones
53
53
  # `replace`: to change the content of the string, so it's actually stored
54
54
  if @path # where is the config file. We don't have a config file in tests
55
55
  containing_folder = File.expand_path('..', @path)
56
- value.replace File.join(containing_folder, value)
56
+ value.replace(File.join(containing_folder, value))
57
57
  end
58
58
  end
59
59
  end
@@ -75,10 +75,10 @@ module Frameit
75
75
  value.each do |current|
76
76
  UI.user_error!("You must specify a font path") if current.fetch('font', '').length == 0
77
77
  UI.user_error!("Could not find font at path '#{File.expand_path(current.fetch('font'))}'") unless File.exist?(current.fetch('font'))
78
- UI.user_error!("`supported` must be an array") unless current.fetch('supported', []).kind_of? Array
78
+ UI.user_error!("`supported` must be an array") unless current.fetch('supported', []).kind_of?(Array)
79
79
  end
80
80
  when 'background'
81
- UI.user_error!("Could not find background image at path '#{File.expand_path(value)}'") unless File.exist? value
81
+ UI.user_error!("Could not find background image at path '#{File.expand_path(value)}'") unless File.exist?(value)
82
82
  when 'color'
83
83
  UI.user_error!("Invalid color '#{value}'. Must be valid Hex #123123") unless value.include?("#")
84
84
  when 'padding'
@@ -86,7 +86,7 @@ module Frameit
86
86
  UI.user_error!("padding must be type integer or pair of integers of format 'AxB' or a percentage of screen size")
87
87
  end
88
88
  when 'show_complete_frame', 'title_below_image'
89
- UI.user_error! "'#{key}' must be a Boolean" unless [true, false].include?(value)
89
+ UI.user_error!("'#{key}' must be a Boolean") unless [true, false].include?(value)
90
90
  when 'font_scale_factor'
91
91
  UI.user_error!("font_scale_factor must be numeric") unless value.kind_of?(Numeric)
92
92
  end
@@ -9,13 +9,13 @@ module Frameit
9
9
  end
10
10
 
11
11
  def self.check_image_magick
12
- unless `which convert`.include? "convert"
13
- UI.error '#############################################################'
14
- UI.error "# You have to install the ImageMagick to use FrameIt"
15
- UI.error "# Install it using 'brew update && brew install imagemagick'"
16
- UI.error "# If you don't have homebrew: http://brew.sh"
17
- UI.error '#############################################################'
18
- UI.user_error! "Install ImageMagick and start frameit again!"
12
+ unless `which convert`.include?("convert")
13
+ UI.error('#############################################################')
14
+ UI.error("# You have to install the ImageMagick to use FrameIt")
15
+ UI.error("# Install it using 'brew update && brew install imagemagick'")
16
+ UI.error("# If you don't have homebrew: http://brew.sh")
17
+ UI.error('#############################################################')
18
+ UI.user_error!("Install ImageMagick and start frameit again!")
19
19
  end
20
20
  end
21
21
  end