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.
- checksums.yaml +4 -4
- data/bin/bin-proxy +2 -2
- data/bin/fastlane +5 -5
- data/cert/lib/cert/commands_generator.rb +1 -1
- data/cert/lib/cert/runner.rb +14 -14
- data/credentials_manager/lib/credentials_manager/account_manager.rb +11 -11
- data/credentials_manager/lib/credentials_manager/appfile_config.rb +11 -11
- data/credentials_manager/lib/credentials_manager/cli.rb +4 -4
- data/deliver/lib/deliver/app_screenshot.rb +19 -2
- data/deliver/lib/deliver/commands_generator.rb +2 -2
- data/deliver/lib/deliver/loader.rb +2 -2
- data/deliver/lib/deliver/options.rb +2 -2
- data/deliver/lib/deliver/setup.rb +1 -1
- data/deliver/lib/deliver/submit_for_review.rb +1 -1
- data/fastlane/lib/fastlane/action.rb +2 -2
- data/fastlane/lib/fastlane/actions/actions_helper.rb +5 -5
- data/fastlane/lib/fastlane/actions/add_extra_platforms.rb +2 -2
- data/fastlane/lib/fastlane/actions/add_git_tag.rb +1 -1
- data/fastlane/lib/fastlane/actions/app_store_build_number.rb +1 -1
- data/fastlane/lib/fastlane/actions/appaloosa.rb +4 -4
- data/fastlane/lib/fastlane/actions/appetize.rb +3 -3
- data/fastlane/lib/fastlane/actions/appetize_viewing_url_generator.rb +2 -2
- data/fastlane/lib/fastlane/actions/appium.rb +2 -2
- data/fastlane/lib/fastlane/actions/appledoc.rb +3 -3
- data/fastlane/lib/fastlane/actions/apteligent.rb +2 -2
- data/fastlane/lib/fastlane/actions/artifactory.rb +2 -2
- data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +1 -1
- data/fastlane/lib/fastlane/actions/build_ios_app.rb +1 -1
- data/fastlane/lib/fastlane/actions/capture_ios_screenshots.rb +1 -1
- data/fastlane/lib/fastlane/actions/carthage.rb +4 -4
- data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +4 -4
- data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +1 -1
- data/fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb +1 -1
- data/fastlane/lib/fastlane/actions/cloc.rb +1 -1
- data/fastlane/lib/fastlane/actions/cocoapods.rb +1 -1
- data/fastlane/lib/fastlane/actions/commit_github_file.rb +4 -4
- data/fastlane/lib/fastlane/actions/commit_version_bump.rb +7 -7
- data/fastlane/lib/fastlane/actions/copy_artifacts.rb +1 -1
- data/fastlane/lib/fastlane/actions/crashlytics.rb +2 -2
- data/fastlane/lib/fastlane/actions/debug.rb +2 -2
- data/fastlane/lib/fastlane/actions/delete_keychain.rb +1 -1
- data/fastlane/lib/fastlane/actions/deploygate.rb +7 -7
- data/fastlane/lib/fastlane/actions/docs/cert.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/deliver.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/frameit.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/gym.md +1 -3
- data/fastlane/lib/fastlane/actions/docs/match.md +4 -4
- data/fastlane/lib/fastlane/actions/docs/pem.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/precheck.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/produce.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/scan.md +0 -2
- data/fastlane/lib/fastlane/actions/docs/sigh.md +6 -6
- data/fastlane/lib/fastlane/actions/docs/snapshot.md +4 -4
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +1 -1
- data/fastlane/lib/fastlane/actions/dsym_zip.rb +1 -1
- data/fastlane/lib/fastlane/actions/ensure_no_debug_code.rb +1 -1
- data/fastlane/lib/fastlane/actions/flock.rb +7 -7
- data/fastlane/lib/fastlane/actions/frame_screenshots.rb +1 -1
- data/fastlane/lib/fastlane/actions/gcovr.rb +5 -5
- data/fastlane/lib/fastlane/actions/get_build_number.rb +2 -2
- data/fastlane/lib/fastlane/actions/get_build_number_repository.rb +9 -9
- data/fastlane/lib/fastlane/actions/get_github_release.rb +2 -2
- data/fastlane/lib/fastlane/actions/get_info_plist_value.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_version_number.rb +7 -7
- data/fastlane/lib/fastlane/actions/github_api.rb +2 -2
- data/fastlane/lib/fastlane/actions/hg_commit_version_bump.rb +2 -2
- data/fastlane/lib/fastlane/actions/hockey.rb +5 -5
- data/fastlane/lib/fastlane/actions/ifttt.rb +4 -4
- data/fastlane/lib/fastlane/actions/increment_build_number.rb +3 -3
- data/fastlane/lib/fastlane/actions/increment_version_number.rb +4 -4
- data/fastlane/lib/fastlane/actions/install_on_device.rb +2 -2
- data/fastlane/lib/fastlane/actions/install_xcode_plugin.rb +2 -2
- data/fastlane/lib/fastlane/actions/installr.rb +6 -6
- data/fastlane/lib/fastlane/actions/ipa.rb +1 -1
- data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +1 -1
- data/fastlane/lib/fastlane/actions/lcov.rb +1 -1
- data/fastlane/lib/fastlane/actions/mailgun.rb +3 -3
- data/fastlane/lib/fastlane/actions/modify_services.rb +1 -1
- data/fastlane/lib/fastlane/actions/notification.rb +1 -1
- data/fastlane/lib/fastlane/actions/number_of_commits.rb +1 -1
- data/fastlane/lib/fastlane/actions/onesignal.rb +1 -1
- data/fastlane/lib/fastlane/actions/pod_push.rb +1 -1
- data/fastlane/lib/fastlane/actions/podio_item.rb +6 -6
- data/fastlane/lib/fastlane/actions/puts.rb +1 -1
- data/fastlane/lib/fastlane/actions/read_podspec.rb +1 -1
- data/fastlane/lib/fastlane/actions/recreate_schemes.rb +1 -1
- data/fastlane/lib/fastlane/actions/reset_git_repo.rb +1 -1
- data/fastlane/lib/fastlane/actions/restore_file.rb +1 -1
- data/fastlane/lib/fastlane/actions/rocket.rb +2 -2
- data/fastlane/lib/fastlane/actions/run_tests.rb +1 -1
- data/fastlane/lib/fastlane/actions/s3.rb +1 -1
- data/fastlane/lib/fastlane/actions/scp.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_build_number_repository.rb +1 -1
- data/fastlane/lib/fastlane/actions/set_changelog.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_github_release.rb +4 -4
- data/fastlane/lib/fastlane/actions/set_info_plist_value.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_pod_key.rb +1 -1
- data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +4 -4
- data/fastlane/lib/fastlane/actions/setup_jenkins.rb +6 -6
- data/fastlane/lib/fastlane/actions/setup_travis.rb +2 -2
- data/fastlane/lib/fastlane/actions/slack.rb +3 -3
- data/fastlane/lib/fastlane/actions/slather.rb +2 -2
- data/fastlane/lib/fastlane/actions/spm.rb +2 -2
- data/fastlane/lib/fastlane/actions/ssh.rb +1 -1
- data/fastlane/lib/fastlane/actions/team_id.rb +1 -1
- data/fastlane/lib/fastlane/actions/team_name.rb +1 -1
- data/fastlane/lib/fastlane/actions/testfairy.rb +7 -7
- data/fastlane/lib/fastlane/actions/tryouts.rb +6 -6
- data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +2 -2
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +5 -5
- data/fastlane/lib/fastlane/actions/update_icloud_container_identifiers.rb +10 -10
- data/fastlane/lib/fastlane/actions/update_info_plist.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_url_schemes.rb +1 -1
- data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +4 -4
- data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +4 -4
- data/fastlane/lib/fastlane/actions/verify_build.rb +6 -6
- data/fastlane/lib/fastlane/actions/verify_pod_keys.rb +1 -1
- data/fastlane/lib/fastlane/actions/version_bump_podspec.rb +3 -3
- data/fastlane/lib/fastlane/actions/version_get_podspec.rb +2 -2
- data/fastlane/lib/fastlane/actions/xcode_select.rb +2 -2
- data/fastlane/lib/fastlane/actions/xcode_server_get_assets.rb +3 -3
- data/fastlane/lib/fastlane/actions/xcov.rb +1 -1
- data/fastlane/lib/fastlane/actions/xctool.rb +1 -1
- data/fastlane/lib/fastlane/actions/xcversion.rb +1 -1
- data/fastlane/lib/fastlane/actions/zip.rb +3 -3
- data/fastlane/lib/fastlane/auto_complete.rb +15 -15
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +15 -15
- data/fastlane/lib/fastlane/command_line_handler.rb +1 -1
- data/fastlane/lib/fastlane/commands_generator.rb +26 -26
- data/fastlane/lib/fastlane/configuration_helper.rb +2 -2
- data/fastlane/lib/fastlane/documentation/actions_list.rb +47 -47
- data/fastlane/lib/fastlane/documentation/docs_generator.rb +1 -1
- data/fastlane/lib/fastlane/environment_printer.rb +5 -5
- data/fastlane/lib/fastlane/fast_file.rb +5 -5
- data/fastlane/lib/fastlane/fastlane_require.rb +2 -2
- data/fastlane/lib/fastlane/helper/crashlytics_helper.rb +3 -3
- data/fastlane/lib/fastlane/helper/podspec_helper.rb +1 -1
- data/fastlane/lib/fastlane/helper/sh_helper.rb +2 -2
- data/fastlane/lib/fastlane/helper/xcversion_helper.rb +1 -1
- data/fastlane/lib/fastlane/lane.rb +6 -6
- data/fastlane/lib/fastlane/lane_list.rb +3 -3
- data/fastlane/lib/fastlane/lane_manager.rb +7 -7
- data/fastlane/lib/fastlane/lane_manager_base.rb +15 -15
- data/fastlane/lib/fastlane/markdown_table_formatter.rb +2 -2
- data/fastlane/lib/fastlane/new_action.rb +5 -5
- data/fastlane/lib/fastlane/one_off.rb +1 -1
- data/fastlane/lib/fastlane/plugins/plugin_generator.rb +5 -5
- data/fastlane/lib/fastlane/plugins/plugin_generator_ui.rb +2 -2
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +7 -7
- data/fastlane/lib/fastlane/plugins/plugin_search.rb +5 -5
- data/fastlane/lib/fastlane/plugins/plugin_update_manager.rb +4 -4
- data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +9 -8
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +37 -2
- data/fastlane/lib/fastlane/plugins/template/Gemfile +1 -1
- data/fastlane/lib/fastlane/plugins/template/Rakefile +1 -1
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb +3 -0
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/helper/%plugin_name%_helper.rb.erb +4 -0
- data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +1 -1
- data/fastlane/lib/fastlane/runner.rb +9 -9
- data/fastlane/lib/fastlane/setup/crashlytics_beta.rb +9 -9
- data/fastlane/lib/fastlane/setup/crashlytics_beta_command_line_handler.rb +7 -7
- data/fastlane/lib/fastlane/setup/crashlytics_beta_info_collector.rb +19 -19
- data/fastlane/lib/fastlane/setup/crashlytics_beta_ui.rb +3 -3
- data/fastlane/lib/fastlane/setup/setup_android.rb +4 -4
- data/fastlane/lib/fastlane/setup/setup_ios.rb +9 -9
- data/fastlane/lib/fastlane/supported_platforms.rb +1 -1
- data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +10 -6
- data/fastlane/lib/fastlane/swift_lane_manager.rb +1 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane_core/README.md +0 -26
- data/fastlane_core/lib/fastlane_core/analytics/analytics_ingester_client.rb +2 -2
- data/fastlane_core/lib/fastlane_core/build_watcher.rb +1 -1
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +2 -2
- data/fastlane_core/lib/fastlane_core/command_executor.rb +3 -3
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +4 -4
- data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +4 -4
- data/fastlane_core/lib/fastlane_core/configuration/configuration_file.rb +4 -4
- data/fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb +3 -3
- data/fastlane_core/lib/fastlane_core/device_manager.rb +2 -4
- data/fastlane_core/lib/fastlane_core/fastlane_folder.rb +1 -1
- data/fastlane_core/lib/fastlane_core/globals.rb +3 -3
- data/fastlane_core/lib/fastlane_core/helper.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +2 -2
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +2 -2
- data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +1 -1
- data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +1 -1
- data/fastlane_core/lib/fastlane_core/print_table.rb +5 -5
- data/fastlane_core/lib/fastlane_core/project.rb +7 -7
- data/fastlane_core/lib/fastlane_core/swag.rb +9 -9
- data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +49 -49
- data/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb +18 -18
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +1 -1
- data/fastlane_core/lib/fastlane_core/update_checker/changelog.rb +7 -7
- data/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb +11 -11
- data/frameit/lib/frameit/commands_generator.rb +2 -2
- data/frameit/lib/frameit/config_parser.rb +11 -11
- data/frameit/lib/frameit/dependency_checker.rb +7 -7
- data/frameit/lib/frameit/editor.rb +41 -41
- data/frameit/lib/frameit/frame_downloader.rb +12 -12
- data/frameit/lib/frameit/mac_editor.rb +2 -2
- data/frameit/lib/frameit/options.rb +1 -1
- data/frameit/lib/frameit/runner.rb +7 -7
- data/frameit/lib/frameit/screenshot.rb +5 -5
- data/frameit/lib/frameit/strings_parser.rb +6 -6
- data/frameit/lib/frameit/template_finder.rb +3 -3
- data/gym/lib/gym/commands_generator.rb +4 -4
- data/gym/lib/gym/detect_values.rb +1 -1
- data/gym/lib/gym/error_handler.rb +84 -84
- data/gym/lib/gym/generators/build_command_generator.rb +1 -1
- data/gym/lib/gym/runner.rb +24 -24
- data/gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb +2 -2
- data/match/lib/assets/READMETemplate.md +3 -3
- data/match/lib/match/commands_generator.rb +3 -3
- data/match/lib/match/encrypt.rb +10 -10
- data/match/lib/match/git_helper.rb +5 -5
- data/match/lib/match/nuke.rb +29 -29
- data/match/lib/match/runner.rb +13 -13
- data/match/lib/match/setup.rb +7 -7
- data/match/lib/match/table_printer.rb +6 -6
- data/match/lib/match/utils.rb +2 -2
- data/pem/lib/pem/commands_generator.rb +1 -1
- data/pem/lib/pem/manager.rb +9 -9
- data/pem/lib/pem/module.rb +1 -1
- data/pilot/lib/pilot/build_manager.rb +8 -8
- data/pilot/lib/pilot/commands_generator.rb +1 -1
- data/pilot/lib/pilot/manager.rb +1 -1
- data/pilot/lib/pilot/options.rb +4 -4
- data/pilot/lib/pilot/tester_manager.rb +10 -10
- data/precheck/lib/precheck/commands_generator.rb +4 -4
- data/precheck/lib/precheck/rule.rb +2 -2
- data/precheck/lib/precheck/rule_processor.rb +7 -7
- data/precheck/lib/precheck/rules/abstract_text_match_rule.rb +2 -2
- data/precheck/lib/precheck/rules/curse_words_rule.rb +3 -3
- data/precheck/lib/precheck/rules/unreachable_urls_rule.rb +3 -3
- data/precheck/lib/precheck/runner.rb +7 -7
- data/produce/lib/produce/commands_generator.rb +48 -48
- data/produce/lib/produce/developer_center.rb +4 -4
- data/produce/lib/produce/group.rb +2 -2
- data/produce/lib/produce/itunes_connect.rb +4 -4
- data/produce/lib/produce/options.rb +3 -3
- data/produce/lib/produce/service.rb +1 -1
- data/scan/lib/scan/commands_generator.rb +2 -2
- data/scan/lib/scan/error_handler.rb +12 -12
- data/scan/lib/scan/runner.rb +3 -3
- data/scan/lib/scan/slack_poster.rb +2 -2
- data/scan/lib/scan/test_command_generator.rb +1 -1
- data/screengrab/lib/screengrab/commands_generator.rb +1 -1
- data/screengrab/lib/screengrab/dependency_checker.rb +9 -9
- data/screengrab/lib/screengrab/options.rb +3 -3
- data/screengrab/lib/screengrab/reports_generator.rb +2 -2
- data/screengrab/lib/screengrab/runner.rb +32 -32
- data/sigh/lib/sigh/commands_generator.rb +18 -18
- data/sigh/lib/sigh/download_all.rb +4 -4
- data/sigh/lib/sigh/local_manage.rb +27 -27
- data/sigh/lib/sigh/manager.rb +1 -1
- data/sigh/lib/sigh/repair.rb +6 -6
- data/sigh/lib/sigh/resign.rb +7 -7
- data/sigh/lib/sigh/runner.rb +26 -26
- data/snapshot/lib/snapshot/collector.rb +7 -7
- data/snapshot/lib/snapshot/commands_generator.rb +7 -7
- data/snapshot/lib/snapshot/dependency_checker.rb +34 -19
- data/snapshot/lib/snapshot/detect_values.rb +2 -0
- data/snapshot/lib/snapshot/error_handler.rb +1 -1
- data/snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb +1 -1
- data/snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb +1 -1
- data/snapshot/lib/snapshot/reports_generator.rb +2 -2
- data/snapshot/lib/snapshot/reset_simulators.rb +2 -2
- data/snapshot/lib/snapshot/runner.rb +14 -14
- data/snapshot/lib/snapshot/screenshot_flatten.rb +1 -1
- data/snapshot/lib/snapshot/screenshot_rotate.rb +6 -6
- data/snapshot/lib/snapshot/setup.rb +16 -16
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +1 -1
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +7 -7
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb +4 -4
- data/snapshot/lib/snapshot/update.rb +8 -8
- data/spaceship/lib/spaceship/base.rb +3 -3
- data/spaceship/lib/spaceship/client.rb +17 -17
- data/spaceship/lib/spaceship/commands_generator.rb +1 -1
- data/spaceship/lib/spaceship/du/du_client.rb +6 -3
- data/spaceship/lib/spaceship/globals.rb +1 -1
- data/spaceship/lib/spaceship/playground.rb +18 -18
- data/spaceship/lib/spaceship/portal/certificate.rb +5 -5
- data/spaceship/lib/spaceship/portal/device.rb +2 -2
- data/spaceship/lib/spaceship/portal/portal_client.rb +7 -7
- data/spaceship/lib/spaceship/portal/provisioning_profile.rb +7 -9
- data/spaceship/lib/spaceship/portal/ui/select_team.rb +13 -13
- data/spaceship/lib/spaceship/spaceauth_runner.rb +16 -16
- data/spaceship/lib/spaceship/test_flight/client.rb +9 -9
- data/spaceship/lib/spaceship/tunes/app_details.rb +1 -1
- data/spaceship/lib/spaceship/tunes/app_version.rb +7 -7
- data/spaceship/lib/spaceship/tunes/app_version_common.rb +1 -1
- data/spaceship/lib/spaceship/tunes/application.rb +1 -1
- data/spaceship/lib/spaceship/tunes/device_type.rb +2 -2
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +54 -54
- data/spaceship/lib/spaceship/two_step_client.rb +19 -19
- data/spaceship/lib/spaceship/ui.rb +1 -1
- data/supply/lib/supply/client.rb +1 -1
- data/supply/lib/supply/commands_generator.rb +1 -1
- data/supply/lib/supply/options.rb +14 -14
- data/supply/lib/supply/uploader.rb +3 -3
- metadata +31 -25
- data/fastlane/lib/.DS_Store +0 -0
- data/fastlane/lib/assets/.DS_Store +0 -0
- data/fastlane/lib/fastlane/.DS_Store +0 -0
- data/fastlane/lib/fastlane/actions/.DS_Store +0 -0
- data/fastlane/lib/fastlane/actions/docs/.DS_Store +0 -0
- data/fastlane/lib/fastlane/setup/.DS_Store +0 -0
- data/fastlane_core/lib/.DS_Store +0 -0
- data/fastlane_core/lib/fastlane_core/.DS_Store +0 -0
@@ -20,10 +20,10 @@ module Fastlane
|
|
20
20
|
|
21
21
|
# From https://github.com/orta/danger/blob/master/lib/danger/Dangerfile.rb
|
22
22
|
if content.tr!('“”‘’‛', %(""'''))
|
23
|
-
UI.error
|
23
|
+
UI.error("Your #{File.basename(path)} has had smart quotes sanitised. " \
|
24
24
|
'To avoid issues in the future, you should not use ' \
|
25
25
|
'TextEdit for editing it. If you are not using TextEdit, ' \
|
26
|
-
'you should turn off smart quotes in your editor of choice.'
|
26
|
+
'you should turn off smart quotes in your editor of choice.')
|
27
27
|
end
|
28
28
|
|
29
29
|
content.scan(/^\s*require (.*)/).each do |current|
|
@@ -249,14 +249,14 @@ module Fastlane
|
|
249
249
|
|
250
250
|
branch_option = "--branch #{branch}" if branch != 'HEAD'
|
251
251
|
|
252
|
-
UI.message
|
252
|
+
UI.message("Cloning remote git repo...")
|
253
253
|
Actions.sh("GIT_TERMINAL_PROMPT=0 git clone '#{url}' '#{clone_folder}' --depth 1 -n #{branch_option}")
|
254
254
|
|
255
255
|
unless version.nil?
|
256
256
|
req = Gem::Requirement.new(version)
|
257
257
|
all_tags = fetch_remote_tags(folder: clone_folder)
|
258
258
|
checkout_param = all_tags.select { |t| req =~ FastlaneCore::TagVersion.new(t) }.last
|
259
|
-
UI.user_error!
|
259
|
+
UI.user_error!("No tag found matching #{version.inspect}") if checkout_param.nil?
|
260
260
|
end
|
261
261
|
|
262
262
|
Actions.sh("cd '#{clone_folder}' && git checkout #{checkout_param} '#{path}'")
|
@@ -285,7 +285,7 @@ module Fastlane
|
|
285
285
|
#####################################################
|
286
286
|
|
287
287
|
def fetch_remote_tags(folder: nil)
|
288
|
-
UI.message
|
288
|
+
UI.message("Fetching remote git tags...")
|
289
289
|
Actions.sh("cd '#{folder}' && GIT_TERMINAL_PROMPT=0 git fetch --all --tags -q")
|
290
290
|
|
291
291
|
# Fetch all possible tags
|
@@ -24,7 +24,7 @@ module Fastlane
|
|
24
24
|
require "rubygems/command_manager"
|
25
25
|
installer = Gem::CommandManager.instance[:install]
|
26
26
|
|
27
|
-
UI.important
|
27
|
+
UI.important("Installing Ruby gem '#{gem_name}'...")
|
28
28
|
|
29
29
|
spec_name = self.find_gem_name(gem_name)
|
30
30
|
UI.important("Found gem \"#{spec_name}\" instead of the required name \"#{gem_name}\"") if spec_name != gem_name
|
@@ -65,7 +65,7 @@ module Fastlane
|
|
65
65
|
|
66
66
|
def format_gem_require_name(gem_name)
|
67
67
|
# from "fastlane-plugin-xcversion" to "fastlane/plugin/xcversion"
|
68
|
-
gem_name = gem_name.tr("-", "/") if gem_name.start_with?
|
68
|
+
gem_name = gem_name.tr("-", "/") if gem_name.start_with?("fastlane-plugin-")
|
69
69
|
|
70
70
|
return gem_name
|
71
71
|
end
|
@@ -84,15 +84,15 @@ module Fastlane
|
|
84
84
|
http_conn = Net::HTTP.new(uri.host, uri.port)
|
85
85
|
http_conn.use_ssl = true
|
86
86
|
result = http_conn.request_get(uri.path)
|
87
|
-
UI.error!
|
87
|
+
UI.error!("#{result.message} (#{result.code})") unless result.kind_of?(Net::HTTPSuccess)
|
88
88
|
File.write(zip_path, result.body)
|
89
89
|
|
90
90
|
# Now unzip the file
|
91
|
-
Action.sh
|
91
|
+
Action.sh("unzip '#{zip_path}' -d '#{containing}'")
|
92
92
|
|
93
93
|
UI.user_error!("Couldn't find 'crashlytics-devtools.jar'") unless File.exist?(jar_path)
|
94
94
|
|
95
|
-
UI.success
|
95
|
+
UI.success("Successfully downloaded Crashlytics Support Library to '#{jar_path}'")
|
96
96
|
rescue => ex
|
97
97
|
UI.user_error!("Error fetching remote file: #{ex}")
|
98
98
|
end
|
@@ -65,7 +65,7 @@ module Fastlane
|
|
65
65
|
new_version = version || @version_value
|
66
66
|
updated_podspec_content = @podspec_content.gsub(@version_regex, "#{@version_match[:begin]}#{new_version}#{@version_match[:end]}")
|
67
67
|
|
68
|
-
File.open(@path, "w") { |file| file.puts
|
68
|
+
File.open(@path, "w") { |file| file.puts(updated_podspec_content) } unless Helper.test?
|
69
69
|
|
70
70
|
updated_podspec_content
|
71
71
|
end
|
@@ -88,7 +88,7 @@ module Fastlane
|
|
88
88
|
# Avoid yielding nil in tests. $? will be meaningless, but calls to
|
89
89
|
# it will not crash. There is no Process::Status.new. The alternative
|
90
90
|
# is to move this inside the sh_enabled? check and not yield in tests.
|
91
|
-
return yield
|
91
|
+
return yield(exit_status || $?, result, shell_command)
|
92
92
|
end
|
93
93
|
result
|
94
94
|
rescue => ex
|
@@ -121,7 +121,7 @@ module Fastlane
|
|
121
121
|
# Support [ "/usr/local/bin/foo", "foo" ], "-x", ...
|
122
122
|
if args.first.kind_of?(Array)
|
123
123
|
command += args.shift.first.shellescape + " " + args.shelljoin
|
124
|
-
command.chomp!
|
124
|
+
command.chomp!(" ")
|
125
125
|
elsif args.count == 1 && args.first.kind_of?(String)
|
126
126
|
command += args.first
|
127
127
|
else
|
@@ -15,9 +15,9 @@ module Fastlane
|
|
15
15
|
attr_accessor :is_private
|
16
16
|
|
17
17
|
def initialize(platform: nil, name: nil, description: nil, block: nil, is_private: false)
|
18
|
-
UI.user_error!("description must be an array") unless description.kind_of?
|
19
|
-
UI.user_error!("lane name must not contain any spaces") if name.to_s.include?
|
20
|
-
UI.user_error!("lane name must start with :") unless name.kind_of?
|
18
|
+
UI.user_error!("description must be an array") unless description.kind_of?(Array)
|
19
|
+
UI.user_error!("lane name must not contain any spaces") if name.to_s.include?(" ")
|
20
|
+
UI.user_error!("lane name must start with :") unless name.kind_of?(Symbol)
|
21
21
|
|
22
22
|
self.class.verify_lane_name(name)
|
23
23
|
|
@@ -42,13 +42,13 @@ module Fastlane
|
|
42
42
|
# Makes sure the lane name is valid
|
43
43
|
def verify_lane_name(name)
|
44
44
|
if self.black_list.include?(name.to_s)
|
45
|
-
UI.error
|
45
|
+
UI.error("Lane name '#{name}' is invalid! Invalid names are #{self.black_list.join(', ')}.")
|
46
46
|
UI.user_error!("Lane name '#{name}' is invalid")
|
47
47
|
end
|
48
48
|
|
49
49
|
if self.gray_list.include?(name.to_sym)
|
50
|
-
UI.error
|
51
|
-
UI.error
|
50
|
+
UI.error("Lane name '#{name}' should not be used because it is the name of a fastlane tool")
|
51
|
+
UI.error("It is recommended to not use '#{name}' as the name of your lane")
|
52
52
|
# We still allow it, because we're nice
|
53
53
|
# Otherwise we might break existing setups
|
54
54
|
return
|
@@ -4,9 +4,9 @@ module Fastlane
|
|
4
4
|
SWIFT_FUNCTION_REGEX = /\s*func\s*(\w*)\s*\(\s*\)\s*/
|
5
5
|
SWIFT_DESC_REGEX = /\s*desc\s*\(\s*"(.*)"\s*\)\s*/
|
6
6
|
def self.output(path)
|
7
|
-
puts
|
7
|
+
puts(generate(path))
|
8
8
|
|
9
|
-
puts
|
9
|
+
puts("Execute using `fastlane [lane_name]`".yellow)
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.generate_swift_lanes(path)
|
@@ -103,7 +103,7 @@ module Fastlane
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def self.output_json(path)
|
106
|
-
puts
|
106
|
+
puts(JSON.pretty_generate(self.generate_json(path)))
|
107
107
|
end
|
108
108
|
|
109
109
|
# Returns a hash
|
@@ -60,7 +60,7 @@ module Fastlane
|
|
60
60
|
# Tested with `xcake`, which throws a `Xcake::Informative` object
|
61
61
|
|
62
62
|
print_lane_context
|
63
|
-
UI.error
|
63
|
+
UI.error(ex.to_s) if ex.kind_of?(StandardError) # we don't want to print things like 'system exit'
|
64
64
|
e = ex
|
65
65
|
end
|
66
66
|
|
@@ -89,7 +89,7 @@ module Fastlane
|
|
89
89
|
end
|
90
90
|
|
91
91
|
if available.empty?
|
92
|
-
UI.user_error!
|
92
|
+
UI.user_error!("It looks like you don't have any lanes to run just yet. Check out how to get started here: https://github.com/fastlane/fastlane 🚀")
|
93
93
|
end
|
94
94
|
|
95
95
|
rows = []
|
@@ -105,16 +105,16 @@ module Fastlane
|
|
105
105
|
rows: FastlaneCore::PrintTable.transform_output(rows)
|
106
106
|
)
|
107
107
|
|
108
|
-
UI.message
|
108
|
+
UI.message("Welcome to fastlane! Here's what your app is setup to do:")
|
109
109
|
|
110
|
-
puts
|
110
|
+
puts(table)
|
111
111
|
|
112
|
-
i = UI.input
|
112
|
+
i = UI.input("Which number would you like run?")
|
113
113
|
|
114
114
|
i = i.to_i - 1
|
115
115
|
if i >= 0 && available[i]
|
116
116
|
selection = available[i].last.pretty_name
|
117
|
-
UI.important
|
117
|
+
UI.important("Running lane `#{selection}`. Next time you can do this by directly typing `fastlane #{selection}` 🚀.")
|
118
118
|
platform = selection.split(' ')[0]
|
119
119
|
lane_name = selection.split(' ')[1]
|
120
120
|
|
@@ -125,7 +125,7 @@ module Fastlane
|
|
125
125
|
|
126
126
|
return platform, lane_name # yeah
|
127
127
|
else
|
128
|
-
UI.user_error!
|
128
|
+
UI.user_error!("Run `fastlane` the next time you need to build, test or release your app 🚀")
|
129
129
|
end
|
130
130
|
end
|
131
131
|
end
|
@@ -20,12 +20,12 @@ module Fastlane
|
|
20
20
|
Fastlane::PluginUpdateManager.show_update_status
|
21
21
|
|
22
22
|
if error
|
23
|
-
UI.error
|
23
|
+
UI.error('fastlane finished with errors') unless skip_message
|
24
24
|
raise error
|
25
25
|
elsif duration > 5
|
26
|
-
UI.success
|
26
|
+
UI.success("fastlane.tools just saved you #{duration} minutes! 🎉") unless skip_message
|
27
27
|
else
|
28
|
-
UI.success
|
28
|
+
UI.success('fastlane.tools finished successfully 🎉') unless skip_message
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
@@ -46,13 +46,13 @@ module Fastlane
|
|
46
46
|
rows << [index, name, current[:time].to_i]
|
47
47
|
end
|
48
48
|
|
49
|
-
puts
|
50
|
-
puts
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
)
|
55
|
-
puts
|
49
|
+
puts("")
|
50
|
+
puts(Terminal::Table.new(
|
51
|
+
title: "fastlane summary".green,
|
52
|
+
headings: ["Step", "Action", "Time (in s)"],
|
53
|
+
rows: FastlaneCore::PrintTable.transform_output(rows)
|
54
|
+
))
|
55
|
+
puts("")
|
56
56
|
end
|
57
57
|
|
58
58
|
# @param env_cl_param [String] an optional list of dotenv environment names separated by commas, without space
|
@@ -95,7 +95,7 @@ module Fastlane
|
|
95
95
|
# Loads .env file for the environment(s) passed in through options
|
96
96
|
envs.each do |env|
|
97
97
|
env_file = File.join(base_path, ".env.#{env}")
|
98
|
-
UI.success
|
98
|
+
UI.success("Loading from '#{env_file}'")
|
99
99
|
Dotenv.overload(env_file)
|
100
100
|
end
|
101
101
|
end
|
@@ -104,8 +104,8 @@ module Fastlane
|
|
104
104
|
return if Actions.lane_context.empty?
|
105
105
|
|
106
106
|
if FastlaneCore::Globals.verbose?
|
107
|
-
UI.important
|
108
|
-
UI.message
|
107
|
+
UI.important('Lane Context:'.yellow)
|
108
|
+
UI.message(Actions.lane_context)
|
109
109
|
return
|
110
110
|
end
|
111
111
|
|
@@ -115,10 +115,10 @@ module Fastlane
|
|
115
115
|
end
|
116
116
|
|
117
117
|
require 'terminal-table'
|
118
|
-
puts
|
118
|
+
puts(Terminal::Table.new({
|
119
119
|
title: "Lane Context".yellow,
|
120
120
|
rows: FastlaneCore::PrintTable.transform_output(rows)
|
121
|
-
})
|
121
|
+
}))
|
122
122
|
end
|
123
123
|
end
|
124
124
|
end
|
@@ -13,7 +13,7 @@ module Fastlane
|
|
13
13
|
rows.each do |row|
|
14
14
|
row_array = row.split("|")
|
15
15
|
row_array.each(&:strip!)
|
16
|
-
@table.push
|
16
|
+
@table.push(row_array)
|
17
17
|
end
|
18
18
|
@table.delete_at(1) if @header # strip header separator
|
19
19
|
@table
|
@@ -43,7 +43,7 @@ module Fastlane
|
|
43
43
|
def header_separator_row
|
44
44
|
output = []
|
45
45
|
[*0...table.first.length].each do |column|
|
46
|
-
output.push
|
46
|
+
output.push(separator(column_width(column)))
|
47
47
|
end
|
48
48
|
output
|
49
49
|
end
|
@@ -7,11 +7,11 @@ module Fastlane
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def self.fetch_name
|
10
|
-
puts
|
11
|
-
puts
|
10
|
+
puts("Must be lower case, and use a '_' between words. Do not use '.'".green)
|
11
|
+
puts("examples: 'testflight', 'upload_to_s3'".green)
|
12
12
|
name = UI.input("Name of your action: ")
|
13
13
|
until name_valid?(name)
|
14
|
-
puts
|
14
|
+
puts("Name is invalid. Please ensure the name is all lowercase, free of spaces and without special characters! Try again.")
|
15
15
|
name = UI.input("Name of your action: ")
|
16
16
|
end
|
17
17
|
name
|
@@ -28,14 +28,14 @@ module Fastlane
|
|
28
28
|
|
29
29
|
path = File.join(actions_path, "#{name}.rb")
|
30
30
|
File.write(path, template)
|
31
|
-
UI.success
|
31
|
+
UI.success("Created new action file '#{path}'. Edit it to implement your custom action.")
|
32
32
|
end
|
33
33
|
|
34
34
|
def self.check_action_name_from_args(new_action_name)
|
35
35
|
if name_valid?(new_action_name)
|
36
36
|
new_action_name
|
37
37
|
else
|
38
|
-
puts
|
38
|
+
puts("Name is invalid. Please ensure the name is all lowercase, free of spaces and without special characters! Try again.")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
@@ -6,7 +6,7 @@ module Fastlane
|
|
6
6
|
action_name = nil
|
7
7
|
|
8
8
|
args.each do |current|
|
9
|
-
if current.include?
|
9
|
+
if current.include?(":") # that's a key/value which we want to pass to the lane
|
10
10
|
key, value = current.split(":", 2)
|
11
11
|
UI.user_error!("Please pass values like this: key:value") unless key.length > 0
|
12
12
|
value = CommandLineHandler.convert_value(value)
|
@@ -28,11 +28,11 @@ module Fastlane
|
|
28
28
|
handle_template_path(template_path, plugin_info)
|
29
29
|
end
|
30
30
|
|
31
|
-
@ui.success
|
32
|
-
@ui.success
|
33
|
-
@ui.message
|
34
|
-
@ui.success
|
35
|
-
@ui.message
|
31
|
+
@ui.success("\nYour plugin was successfully generated at #{plugin_info.gem_name}/ 🚀")
|
32
|
+
@ui.success("\nTo get started with using this plugin, run")
|
33
|
+
@ui.message("\n fastlane add_plugin #{plugin_info.plugin_name}\n")
|
34
|
+
@ui.success("\nfrom a fastlane-enabled app project directory and provide the following as the path:")
|
35
|
+
@ui.message("\n #{File.expand_path(plugin_info.gem_name)}\n\n")
|
36
36
|
end
|
37
37
|
|
38
38
|
def handle_template_path(template_path, plugin_info)
|
@@ -169,7 +169,7 @@ module Fastlane
|
|
169
169
|
# This is necessary since the user might be prompted for their password
|
170
170
|
def install_dependencies!
|
171
171
|
# Using puts instead of `UI` to have the same style as the `echo`
|
172
|
-
puts
|
172
|
+
puts("Installing plugin dependencies...")
|
173
173
|
ensure_plugins_attached!
|
174
174
|
with_clean_bundler_env do
|
175
175
|
cmd = "bundle install"
|
@@ -183,7 +183,7 @@ module Fastlane
|
|
183
183
|
# Warning: This will exec out
|
184
184
|
# This is necessary since the user might be prompted for their password
|
185
185
|
def update_dependencies!
|
186
|
-
puts
|
186
|
+
puts("Updating plugin dependencies...")
|
187
187
|
ensure_plugins_attached!
|
188
188
|
plugins = available_plugins
|
189
189
|
if plugins.empty?
|
@@ -233,8 +233,8 @@ module Fastlane
|
|
233
233
|
|
234
234
|
unless UI.confirm("Should fastlane modify the Gemfile at path '#{path_to_gemfile}' for you?")
|
235
235
|
UI.important("Please add the following code to '#{path_to_gemfile}':")
|
236
|
-
puts
|
237
|
-
puts
|
236
|
+
puts("")
|
237
|
+
puts(self.class.code_to_attach.magenta) # we use `puts` instead of `UI` to make it easier to copy and paste
|
238
238
|
UI.user_error!("Please update '#{path_to_gemfile} and run fastlane again")
|
239
239
|
end
|
240
240
|
|
@@ -323,12 +323,12 @@ module Fastlane
|
|
323
323
|
end
|
324
324
|
|
325
325
|
require 'terminal-table'
|
326
|
-
puts
|
326
|
+
puts(Terminal::Table.new({
|
327
327
|
rows: FastlaneCore::PrintTable.transform_output(rows),
|
328
328
|
title: "Used plugins".green,
|
329
329
|
headings: ["Plugin", "Version", "Action"]
|
330
|
-
})
|
331
|
-
puts
|
330
|
+
}))
|
331
|
+
puts("")
|
332
332
|
end
|
333
333
|
|
334
334
|
#####################################################
|
@@ -4,9 +4,9 @@ module Fastlane
|
|
4
4
|
|
5
5
|
def self.print_plugins(search_query: nil)
|
6
6
|
if search_query
|
7
|
-
UI.message
|
7
|
+
UI.message("Looking for fastlane plugins containing '#{search_query}'...")
|
8
8
|
else
|
9
|
-
UI.message
|
9
|
+
UI.message("Listing all available fastlane plugins")
|
10
10
|
end
|
11
11
|
|
12
12
|
plugins = Fastlane::PluginFetcher.fetch_gems(search_query: search_query)
|
@@ -29,9 +29,9 @@ module Fastlane
|
|
29
29
|
headings: ["Name", "Description", "Downloads"]
|
30
30
|
}
|
31
31
|
|
32
|
-
puts
|
33
|
-
puts
|
34
|
-
puts
|
32
|
+
puts("")
|
33
|
+
puts(Terminal::Table.new(params))
|
34
|
+
puts("")
|
35
35
|
|
36
36
|
if plugins.count == 1
|
37
37
|
print_plugin_details(plugins.last)
|