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
@@ -116,31 +116,31 @@ module Fastlane
116
116
  # The user has a Gemfile, but forgot to use `bundle exec`
117
117
  # Let's tell the user how to use `bundle exec`
118
118
  # We show this warning no matter if the command is slow or not
119
- UI.important "fastlane detected a Gemfile in the current directory"
120
- UI.important "however it seems like you don't use `bundle exec`"
121
- UI.important "to launch fastlane faster, please use"
122
- UI.message ""
119
+ UI.important("fastlane detected a Gemfile in the current directory")
120
+ UI.important("however it seems like you don't use `bundle exec`")
121
+ UI.important("to launch fastlane faster, please use")
122
+ UI.message("")
123
123
  UI.command "bundle exec fastlane #{ARGV.join(' ')}"
124
- UI.message ""
124
+ UI.message("")
125
125
  elsif is_slow
126
126
  # fastlane is slow and there is no Gemfile
127
127
  # Let's tell the user how to use `gem cleanup` and how to
128
128
  # start using a Gemfile
129
- UI.important "Seems like launching fastlane takes a while - please run"
130
- UI.message ""
129
+ UI.important("Seems like launching fastlane takes a while - please run")
130
+ UI.message("")
131
131
  UI.command "[sudo] gem cleanup"
132
- UI.message ""
133
- UI.important "to uninstall outdated gems and make fastlane launch faster"
134
- UI.important "Alternatively it's recommended to start using a Gemfile to lock your dependencies"
135
- UI.important "To get started with a Gemfile, run"
136
- UI.message ""
132
+ UI.message("")
133
+ UI.important("to uninstall outdated gems and make fastlane launch faster")
134
+ UI.important("Alternatively it's recommended to start using a Gemfile to lock your dependencies")
135
+ UI.important("To get started with a Gemfile, run")
136
+ UI.message("")
137
137
  UI.command "bundle init"
138
138
  UI.command "echo 'gem \"fastlane\"' >> Gemfile"
139
139
  UI.command "bundle install"
140
- UI.message ""
141
- UI.important "After creating the Gemfile and Gemfile.lock, commit those files into version control"
140
+ UI.message("")
141
+ UI.important("After creating the Gemfile and Gemfile.lock, commit those files into version control")
142
142
  end
143
- UI.important "Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile"
143
+ UI.important("Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile")
144
144
  end
145
145
 
146
146
  # Returns an array of symbols for the available lanes for the Fastfile
@@ -7,7 +7,7 @@ module Fastlane
7
7
  lane_parameters = {} # the parameters we'll pass to the lane
8
8
  platform_lane_info = [] # the part that's responsible for the lane/platform definition
9
9
  args.each do |current|
10
- if current.include? ":" # that's a key/value which we want to pass to the lane
10
+ if current.include?(":") # that's a key/value which we want to pass to the lane
11
11
  key, value = current.split(":", 2)
12
12
  UI.user_error!("Please pass values like this: key:value") unless key.length > 0
13
13
  value = convert_value(value)
@@ -57,19 +57,19 @@ module Fastlane
57
57
 
58
58
  def self.confirm_troubleshoot
59
59
  if Helper.is_ci?
60
- UI.error "---"
61
- UI.error "You are trying to use '--troubleshoot' on CI"
62
- UI.error "this option is not usable in CI, as it is insecure"
63
- UI.error "---"
60
+ UI.error("---")
61
+ UI.error("You are trying to use '--troubleshoot' on CI")
62
+ UI.error("this option is not usable in CI, as it is insecure")
63
+ UI.error("---")
64
64
  UI.user_error!("Do not use --troubleshoot in CI")
65
65
  end
66
66
  # maybe already set by 'start'
67
67
  return if $troubleshoot
68
- UI.error "---"
69
- UI.error "Are you sure you want to enable '--troubleshoot'?"
70
- UI.error "All commmands will run in full unfiltered output mode."
71
- UI.error "Sensitive data, like passwords, could be printed to the log."
72
- UI.error "---"
68
+ UI.error("---")
69
+ UI.error("Are you sure you want to enable '--troubleshoot'?")
70
+ UI.error("All commmands will run in full unfiltered output mode.")
71
+ UI.error("Sensitive data, like passwords, could be printed to the log.")
72
+ UI.error("---")
73
73
  if UI.confirm("Do you really want to enable --troubleshoot")
74
74
  $troubleshoot = true
75
75
  end
@@ -100,7 +100,7 @@ module Fastlane
100
100
  command :trigger do |c|
101
101
  c.syntax = 'fastlane [lane]'
102
102
  c.description = 'Run a specific lane. Pass the lane name and optionally the platform first.'
103
- c.option '--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`'
103
+ c.option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')
104
104
 
105
105
  c.action do |args, options|
106
106
  if ensure_fastfile
@@ -113,7 +113,7 @@ module Fastlane
113
113
  c.syntax = 'fastlane init'
114
114
  c.description = 'Helps you with your initial fastlane setup'
115
115
 
116
- c.option '-u STRING', '--user STRING', String, 'iOS projects only: Your Apple ID'
116
+ c.option('-u STRING', '--user STRING', String, 'iOS projects only: Your Apple ID')
117
117
 
118
118
  CrashlyticsBetaCommandLineHandler.apply_options(c)
119
119
 
@@ -131,7 +131,7 @@ module Fastlane
131
131
  command :init_swift do |c|
132
132
  c.syntax = 'fastlane init_swift'
133
133
  c.description = 'Helps you with your initial fastlane setup for Swift'
134
- c.option '-u STRING', '--user STRING', String, 'iOS projects only: Your Apple ID'
134
+ c.option('-u STRING', '--user STRING', String, 'iOS projects only: Your Apple ID')
135
135
 
136
136
  c.action do |args, options|
137
137
  Fastlane::Setup.new.run(user: options.user, is_swift_fastfile: true)
@@ -142,7 +142,7 @@ module Fastlane
142
142
  c.syntax = 'fastlane new_action'
143
143
  c.description = 'Create a new custom action for fastlane.'
144
144
 
145
- c.option '--name STRING', String, 'Name of your new action'
145
+ c.option('--name STRING', String, 'Name of your new action')
146
146
 
147
147
  c.action do |args, options|
148
148
  Fastlane::NewAction.run(new_action_name: options.name)
@@ -152,8 +152,8 @@ module Fastlane
152
152
  command :socket_server do |c|
153
153
  c.syntax = 'fastlane start_server'
154
154
  c.description = 'Starts local socket server and enables only a single local connection'
155
- c.option '-s', '--stay_alive', 'Keeps socket server up even after error or disconnects, requires CTRL-C to kill.'
156
- c.option '-c seconds', '--connection_timeout', 'Sets connection established timeout'
155
+ c.option('-s', '--stay_alive', 'Keeps socket server up even after error or disconnects, requires CTRL-C to kill.')
156
+ c.option('-c seconds', '--connection_timeout', 'Sets connection established timeout')
157
157
  c.action do |args, options|
158
158
  default_connection_timeout = 5
159
159
  stay_alive = options.stay_alive || false
@@ -173,14 +173,14 @@ module Fastlane
173
173
  stay_alive: stay_alive
174
174
  )
175
175
  result = server.start
176
- UI.success "Result: #{result}" if result
176
+ UI.success("Result: #{result}") if result
177
177
  end
178
178
  end
179
179
 
180
180
  command :lanes do |c|
181
181
  c.syntax = 'fastlane lanes'
182
182
  c.description = 'Lists all available lanes and shows their description'
183
- c.option "-j", "--json", "Output the lanes in JSON instead of text"
183
+ c.option("-j", "--json", "Output the lanes in JSON instead of text")
184
184
 
185
185
  c.action do |args, options|
186
186
  if options.json || ensure_fastfile
@@ -202,11 +202,11 @@ module Fastlane
202
202
  c.action do |args, options|
203
203
  if ensure_fastfile
204
204
  ff = Fastlane::FastFile.new(FastlaneCore::FastlaneFolder.fastfile_path)
205
- UI.message "Available lanes:"
205
+ UI.message("Available lanes:")
206
206
  ff.runner.available_lanes.each do |lane|
207
- UI.message "- #{lane}"
207
+ UI.message("- #{lane}")
208
208
  end
209
- UI.important "Execute using `fastlane [lane_name]`"
209
+ UI.important("Execute using `fastlane [lane_name]`")
210
210
  end
211
211
  end
212
212
  end
@@ -214,12 +214,12 @@ module Fastlane
214
214
  command :docs do |c|
215
215
  c.syntax = 'fastlane docs'
216
216
  c.description = 'Generate a markdown based documentation based on the Fastfile'
217
- c.option '-f', '--force', 'Overwrite the existing README.md in the ./fastlane folder'
217
+ c.option('-f', '--force', 'Overwrite the existing README.md in the ./fastlane folder')
218
218
 
219
219
  c.action do |args, options|
220
220
  if ensure_fastfile
221
221
  ff = Fastlane::FastFile.new(File.join(FastlaneCore::FastlaneFolder.path || '.', 'Fastfile'))
222
- UI.message "You don't need to run `fastlane docs` manually any more, this will be done automatically for you when running a lane."
222
+ UI.message("You don't need to run `fastlane docs` manually any more, this will be done automatically for you when running a lane.")
223
223
  Fastlane::DocsGenerator.run(ff)
224
224
  end
225
225
  end
@@ -232,7 +232,7 @@ module Fastlane
232
232
  c.action do |args, options|
233
233
  require 'fastlane/one_off'
234
234
  result = Fastlane::OneOff.execute(args: args)
235
- UI.success "Result: #{result}" if result
235
+ UI.success("Result: #{result}") if result
236
236
  end
237
237
  end
238
238
 
@@ -240,7 +240,7 @@ module Fastlane
240
240
  c.syntax = 'fastlane actions'
241
241
  c.description = 'Lists all available fastlane actions'
242
242
 
243
- c.option '--platform STRING', String, 'Only show actions available on the given platform'
243
+ c.option('--platform STRING', String, 'Only show actions available on the given platform')
244
244
 
245
245
  c.action do |args, options|
246
246
  require 'fastlane/documentation/actions_list'
@@ -260,7 +260,7 @@ module Fastlane
260
260
  command :enable_auto_complete do |c|
261
261
  c.syntax = 'fastlane enable_auto_complete'
262
262
  c.description = 'Enable tab auto completion'
263
- c.option '-c STRING[,STRING2]', '--custom STRING[,STRING2]', String, 'Add custom command(s) for which tab auto complete should be enabled too'
263
+ c.option('-c STRING[,STRING2]', '--custom STRING[,STRING2]', String, 'Add custom command(s) for which tab auto complete should be enabled too')
264
264
 
265
265
  c.action do |args, options|
266
266
  require 'fastlane/auto_complete'
@@ -342,7 +342,7 @@ module Fastlane
342
342
  end
343
343
  end
344
344
 
345
- default_command :trigger
345
+ default_command(:trigger)
346
346
  run!
347
347
  end
348
348
 
@@ -3,7 +3,7 @@ module Fastlane
3
3
  def self.parse(action, params)
4
4
  first_element = (action.available_options || []).first
5
5
 
6
- if first_element and first_element.kind_of? FastlaneCore::ConfigItem
6
+ if first_element and first_element.kind_of?(FastlaneCore::ConfigItem)
7
7
  # default use case
8
8
  return FastlaneCore::Configuration.create(action.available_options, params)
9
9
  elsif first_element
@@ -16,7 +16,7 @@ module Fastlane
16
16
 
17
17
  end
18
18
  rescue => ex
19
- if action.respond_to? :action_name
19
+ if action.respond_to?(:action_name)
20
20
  UI.error("You passed invalid parameters to '#{action.action_name}'.")
21
21
  UI.error("Check out the error below and available options by running `fastlane action #{action.action_name}`")
22
22
  end
@@ -27,33 +27,33 @@ module Fastlane
27
27
  current << authors.first.green if authors.count == 1
28
28
  current << "Multiple".green if authors.count > 1
29
29
  else
30
- UI.error action_subclass_error(name)
30
+ UI.error(action_subclass_error(name))
31
31
  current << "Please update action file".red
32
32
  current << ' '
33
33
  end
34
34
  rows << current
35
35
  end
36
36
 
37
- puts Terminal::Table.new(
38
- title: "Available fastlane actions".green,
39
- headings: ['Action', 'Description', 'Author'],
40
- rows: FastlaneCore::PrintTable.transform_output(rows)
41
- )
42
- puts " Platform filter: #{platform}".magenta if platform
43
- puts " Total of #{rows.count} actions"
37
+ puts(Terminal::Table.new(
38
+ title: "Available fastlane actions".green,
39
+ headings: ['Action', 'Description', 'Author'],
40
+ rows: FastlaneCore::PrintTable.transform_output(rows)
41
+ ))
42
+ puts(" Platform filter: #{platform}".magenta) if platform
43
+ puts(" Total of #{rows.count} actions")
44
44
 
45
- puts "\nGet more information for one specific action using `fastlane action [name]`\n".green
45
+ puts("\nGet more information for one specific action using `fastlane action [name]`\n".green)
46
46
  end
47
47
 
48
48
  def self.show_details(filter: nil)
49
- puts "Loading documentation for #{filter}:".green
50
- puts ""
49
+ puts("Loading documentation for #{filter}:".green)
50
+ puts("")
51
51
 
52
52
  action = find_action_named(filter)
53
53
 
54
54
  if action
55
55
  unless action < Action
56
- UI.user_error! action_subclass_error(filter)
56
+ UI.user_error!(action_subclass_error(filter))
57
57
  end
58
58
 
59
59
  print_summary(action, filter)
@@ -62,17 +62,17 @@ module Fastlane
62
62
  print_return_value(action, filter)
63
63
 
64
64
  if Fastlane::Actions.is_deprecated?(action)
65
- puts "==========================================".deprecated
66
- puts "This action (#{filter}) is deprecated".deprecated
67
- puts action.deprecated_notes.to_s.deprecated if action.deprecated_notes
68
- puts "==========================================\n".deprecated
65
+ puts("==========================================".deprecated)
66
+ puts("This action (#{filter}) is deprecated".deprecated)
67
+ puts(action.deprecated_notes.to_s.deprecated) if action.deprecated_notes
68
+ puts("==========================================\n".deprecated)
69
69
  end
70
70
 
71
- puts "More information can be found on https://docs.fastlane.tools/actions/#{filter}"
72
- puts ""
71
+ puts("More information can be found on https://docs.fastlane.tools/actions/#{filter}")
72
+ puts("")
73
73
  else
74
- puts "Couldn't find action for the given filter.".red
75
- puts "==========================================\n".red
74
+ puts("Couldn't find action for the given filter.".red)
75
+ puts("==========================================\n".red)
76
76
 
77
77
  print_all # show all available actions instead
78
78
  print_suggestions(filter)
@@ -93,9 +93,9 @@ module Fastlane
93
93
  corrections << spell_checker.correct(filter).compact
94
94
  end
95
95
 
96
- corrections << action_names.select { |name| name.include? filter }
96
+ corrections << action_names.select { |name| name.include?(filter) }
97
97
 
98
- puts "Did you mean: #{corrections.flatten.uniq.join(', ')}?".green unless corrections.flatten.empty?
98
+ puts("Did you mean: #{corrections.flatten.uniq.join(', ')}?".green) unless corrections.flatten.empty?
99
99
  end
100
100
  end
101
101
 
@@ -119,44 +119,44 @@ module Fastlane
119
119
  authors = Array(action.author || action.authors)
120
120
  rows << ["Created by #{authors.join(', ').green}"] unless authors.empty?
121
121
 
122
- puts Terminal::Table.new(title: name.green, rows: FastlaneCore::PrintTable.transform_output(rows))
123
- puts ""
122
+ puts(Terminal::Table.new(title: name.green, rows: FastlaneCore::PrintTable.transform_output(rows)))
123
+ puts("")
124
124
  end
125
125
 
126
126
  def self.print_options(action, name)
127
127
  options = parse_options(action.available_options) if action.available_options
128
128
 
129
129
  if options
130
- puts Terminal::Table.new(
131
- title: "#{name} Options".green,
132
- headings: ['Key', 'Description', 'Env Var', 'Default'],
133
- rows: FastlaneCore::PrintTable.transform_output(options)
134
- )
130
+ puts(Terminal::Table.new(
131
+ title: "#{name} Options".green,
132
+ headings: ['Key', 'Description', 'Env Var', 'Default'],
133
+ rows: FastlaneCore::PrintTable.transform_output(options)
134
+ ))
135
135
  else
136
- puts "No available options".yellow
136
+ puts("No available options".yellow)
137
137
  end
138
- puts ""
138
+ puts("")
139
139
  end
140
140
 
141
141
  def self.print_output_variables(action, name)
142
142
  output = action.output
143
143
  return if output.nil? || output.empty?
144
144
 
145
- puts Terminal::Table.new(
146
- title: "#{name} Output Variables".green,
147
- headings: ['Key', 'Description'],
148
- rows: FastlaneCore::PrintTable.transform_output(output.map { |key, desc| [key.yellow, desc] })
149
- )
150
- puts "Access the output values using `lane_context[SharedValues::VARIABLE_NAME]`"
151
- puts ""
145
+ puts(Terminal::Table.new(
146
+ title: "#{name} Output Variables".green,
147
+ headings: ['Key', 'Description'],
148
+ rows: FastlaneCore::PrintTable.transform_output(output.map { |key, desc| [key.yellow, desc] })
149
+ ))
150
+ puts("Access the output values using `lane_context[SharedValues::VARIABLE_NAME]`")
151
+ puts("")
152
152
  end
153
153
 
154
154
  def self.print_return_value(action, name)
155
155
  return unless action.return_value
156
156
 
157
- puts Terminal::Table.new(title: "#{name} Return Value".green,
158
- rows: FastlaneCore::PrintTable.transform_output([[action.return_value]]))
159
- puts ""
157
+ puts(Terminal::Table.new(title: "#{name} Return Value".green,
158
+ rows: FastlaneCore::PrintTable.transform_output([[action.return_value]])))
159
+ puts("")
160
160
  end
161
161
 
162
162
  # Iterates through all available actions and yields from there
@@ -170,7 +170,7 @@ module Fastlane
170
170
  next if platform && action.respond_to?(:is_supported?) && !action.is_supported?(platform.to_sym)
171
171
 
172
172
  name = symbol.to_s.gsub('Action', '').fastlane_underscore
173
- yield action, name
173
+ yield(action, name)
174
174
  end
175
175
  end
176
176
 
@@ -185,15 +185,15 @@ module Fastlane
185
185
  # Helper:
186
186
  def self.parse_options(options, fill_all = true)
187
187
  rows = []
188
- rows << [options] if options.kind_of? String
188
+ rows << [options] if options.kind_of?(String)
189
189
 
190
- if options.kind_of? Array
190
+ if options.kind_of?(Array)
191
191
  options.each do |current|
192
- if current.kind_of? FastlaneCore::ConfigItem
192
+ if current.kind_of?(FastlaneCore::ConfigItem)
193
193
  rows << [current.key.to_s.yellow, current.description, current.env_name, current.default_value]
194
- elsif current.kind_of? Array
194
+ elsif current.kind_of?(Array)
195
195
  # Legacy actions that don't use the new config manager
196
- UI.user_error!("Invalid number of elements in this row: #{current}. Must be 2 or 3") unless [2, 3].include? current.count
196
+ UI.user_error!("Invalid number of elements in this row: #{current}. Must be 2 or 3") unless [2, 3].include?(current.count)
197
197
  rows << current
198
198
  rows.last[0] = rows.last.first.yellow # color it yellow :)
199
199
  rows.last << nil while fill_all && rows.last.count < 4 # to have a nice border in the table
@@ -53,7 +53,7 @@ module Fastlane
53
53
 
54
54
  begin
55
55
  File.write(output_path, output.join("\n"))
56
- UI.success "Successfully generated documentation at path '#{File.expand_path(output_path)}'" if FastlaneCore::Globals.verbose?
56
+ UI.success("Successfully generated documentation at path '#{File.expand_path(output_path)}'") if FastlaneCore::Globals.verbose?
57
57
  rescue => ex
58
58
  UI.error(ex)
59
59
  UI.error("Couldn't save fastlane documentation at path '#{File.expand_path(output_path)}', make sure you have write access to the containing directory.")
@@ -8,7 +8,7 @@ module Fastlane
8
8
  env_info.gsub!(sensitive_element, "#########")
9
9
  end
10
10
 
11
- puts env_info
11
+ puts(env_info)
12
12
  UI.important("Take notice that this output may contain sensitive information, or simply information that you don't want to make public.")
13
13
  if FastlaneCore::Helper.mac? && UI.interactive? && UI.confirm("🙄 Wow, that's a lot of markdown text... should fastlane put it into your clipboard, so you can easily paste it on GitHub?")
14
14
  copy_to_clipboard(env_info)
@@ -76,7 +76,7 @@ module Fastlane
76
76
  table << "| #{plugin} | #{installed_version} | #{update_status} |\n"
77
77
  end
78
78
 
79
- rendered_table = MarkdownTableFormatter.new table
79
+ rendered_table = MarkdownTableFormatter.new(table)
80
80
  env_output << rendered_table.to_md
81
81
  end
82
82
 
@@ -119,7 +119,7 @@ module Fastlane
119
119
  table << "| #{current_gem.name} | #{current_gem.version} | #{update_status} |\n"
120
120
  end
121
121
 
122
- rendered_table = MarkdownTableFormatter.new table
122
+ rendered_table = MarkdownTableFormatter.new(table)
123
123
  env_output << rendered_table.to_md
124
124
 
125
125
  env_output << "\n\n"
@@ -138,7 +138,7 @@ module Fastlane
138
138
  table << "| #{current_gem.name} | #{current_gem.version} |\n"
139
139
  end
140
140
  end
141
- rendered_table = MarkdownTableFormatter.new table
141
+ rendered_table = MarkdownTableFormatter.new(table)
142
142
 
143
143
  env_output << rendered_table.to_md
144
144
  env_output << "</details>\n\n"
@@ -169,7 +169,7 @@ module Fastlane
169
169
  table << "|-----|---------|----|\n"
170
170
  table << env_table
171
171
  end
172
- rendered_table = MarkdownTableFormatter.new table
172
+ rendered_table = MarkdownTableFormatter.new(table)
173
173
  env_output << rendered_table.to_md
174
174
  env_output << "\n\n"
175
175
  end