fastlane 2.74.0.beta.20180106010004 → 2.74.0.beta.20180107010004

Sign up to get free protection for your applications and to get access to all the features.
Files changed (310) hide show
  1. checksums.yaml +4 -4
  2. data/cert/lib/cert.rb +3 -17
  3. data/cert/lib/cert/commands_generator.rb +5 -0
  4. data/cert/lib/cert/module.rb +14 -0
  5. data/cert/lib/cert/options.rb +4 -2
  6. data/cert/lib/cert/runner.rb +7 -0
  7. data/credentials_manager/lib/credentials_manager.rb +3 -9
  8. data/credentials_manager/lib/credentials_manager/account_manager.rb +2 -0
  9. data/credentials_manager/lib/credentials_manager/appfile_config.rb +2 -0
  10. data/credentials_manager/lib/credentials_manager/cli.rb +2 -0
  11. data/deliver/lib/deliver.rb +15 -31
  12. data/deliver/lib/deliver/app_screenshot.rb +2 -0
  13. data/deliver/lib/deliver/commands_generator.rb +6 -1
  14. data/deliver/lib/deliver/detect_values.rb +9 -1
  15. data/deliver/lib/deliver/download_screenshots.rb +2 -0
  16. data/deliver/lib/deliver/generate_summary.rb +4 -0
  17. data/deliver/lib/deliver/html_generator.rb +2 -0
  18. data/deliver/lib/deliver/loader.rb +4 -0
  19. data/deliver/lib/deliver/module.rb +16 -0
  20. data/deliver/lib/deliver/options.rb +5 -2
  21. data/deliver/lib/deliver/runner.rb +14 -1
  22. data/deliver/lib/deliver/setup.rb +6 -2
  23. data/deliver/lib/deliver/submit_for_review.rb +2 -0
  24. data/deliver/lib/deliver/upload_assets.rb +2 -0
  25. data/deliver/lib/deliver/upload_metadata.rb +4 -0
  26. data/deliver/lib/deliver/upload_price_tier.rb +2 -0
  27. data/deliver/lib/deliver/upload_screenshots.rb +6 -0
  28. data/fastlane/lib/fastlane/actions/slack.rb +16 -11
  29. data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +3 -0
  30. data/fastlane/lib/fastlane/version.rb +1 -1
  31. data/fastlane_core/lib/fastlane_core.rb +42 -77
  32. data/fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb +2 -0
  33. data/fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb +2 -1
  34. data/fastlane_core/lib/fastlane_core/analytics/analytics_ingester_client.rb +4 -0
  35. data/fastlane_core/lib/fastlane_core/analytics/analytics_session.rb +3 -1
  36. data/fastlane_core/lib/fastlane_core/analytics/app_identifier_guesser.rb +3 -3
  37. data/fastlane_core/lib/fastlane_core/android_package_name_guesser.rb +5 -0
  38. data/fastlane_core/lib/fastlane_core/build_watcher.rb +4 -0
  39. data/fastlane_core/lib/fastlane_core/cert_checker.rb +2 -0
  40. data/fastlane_core/lib/fastlane_core/command_executor.rb +4 -0
  41. data/fastlane_core/lib/fastlane_core/configuration/commander_generator.rb +4 -2
  42. data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +6 -1
  43. data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +5 -3
  44. data/fastlane_core/lib/fastlane_core/configuration/configuration_file.rb +3 -0
  45. data/fastlane_core/lib/fastlane_core/crash_reporter/crash_report_generator.rb +2 -0
  46. data/fastlane_core/lib/fastlane_core/crash_reporter/crash_reporter.rb +7 -1
  47. data/fastlane_core/lib/fastlane_core/device_manager.rb +6 -0
  48. data/fastlane_core/lib/fastlane_core/fastlane_folder.rb +2 -0
  49. data/fastlane_core/lib/fastlane_core/feature/feature.rb +2 -0
  50. data/fastlane_core/lib/fastlane_core/features.rb +2 -0
  51. data/fastlane_core/lib/fastlane_core/helper.rb +5 -1
  52. data/fastlane_core/lib/fastlane_core/ios_app_identifier_guesser.rb +5 -0
  53. data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +3 -1
  54. data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +4 -0
  55. data/fastlane_core/lib/fastlane_core/itunes_search_api.rb +2 -0
  56. data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +3 -0
  57. data/fastlane_core/lib/fastlane_core/keychain_importer.rb +2 -0
  58. data/fastlane_core/lib/fastlane_core/module.rb +31 -0
  59. data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +2 -0
  60. data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +4 -0
  61. data/fastlane_core/lib/fastlane_core/print_table.rb +3 -0
  62. data/fastlane_core/lib/fastlane_core/project.rb +3 -0
  63. data/fastlane_core/lib/fastlane_core/provisioning_profile.rb +2 -0
  64. data/fastlane_core/lib/fastlane_core/swag.rb +3 -0
  65. data/fastlane_core/lib/fastlane_core/test_parser.rb +7 -0
  66. data/fastlane_core/lib/fastlane_core/tool_collector.rb +2 -0
  67. data/fastlane_core/lib/fastlane_core/ui/errors.rb +1 -0
  68. data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_common_error.rb +2 -0
  69. data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_crash.rb +2 -0
  70. data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_error.rb +2 -0
  71. data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb +2 -0
  72. data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +10 -1
  73. data/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb +4 -1
  74. data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +6 -0
  75. data/fastlane_core/lib/fastlane_core/ui/interface.rb +3 -0
  76. data/fastlane_core/lib/fastlane_core/ui/ui.rb +5 -5
  77. data/fastlane_core/lib/fastlane_core/update_checker/changelog.rb +2 -2
  78. data/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb +5 -3
  79. data/frameit/lib/frameit.rb +0 -40
  80. data/frameit/lib/frameit/commands_generator.rb +7 -0
  81. data/frameit/lib/frameit/config_parser.rb +2 -0
  82. data/frameit/lib/frameit/dependency_checker.rb +2 -0
  83. data/frameit/lib/frameit/editor.rb +9 -0
  84. data/frameit/lib/frameit/frame_downloader.rb +5 -0
  85. data/frameit/lib/frameit/mac_editor.rb +3 -0
  86. data/frameit/lib/frameit/module.rb +40 -0
  87. data/frameit/lib/frameit/offsets.rb +3 -0
  88. data/frameit/lib/frameit/options.rb +4 -0
  89. data/frameit/lib/frameit/runner.rb +5 -1
  90. data/frameit/lib/frameit/screenshot.rb +9 -0
  91. data/frameit/lib/frameit/strings_parser.rb +2 -0
  92. data/frameit/lib/frameit/template_finder.rb +6 -0
  93. data/frameit/lib/frameit/trim_box.rb +2 -0
  94. data/gym/lib/gym.rb +9 -46
  95. data/gym/lib/gym/code_signing_mapping.rb +2 -0
  96. data/gym/lib/gym/commands_generator.rb +6 -3
  97. data/gym/lib/gym/detect_values.rb +4 -1
  98. data/gym/lib/gym/error_handler.rb +3 -0
  99. data/gym/lib/gym/generators/build_command_generator.rb +1 -0
  100. data/gym/lib/gym/generators/package_command_generator.rb +1 -1
  101. data/gym/lib/gym/generators/package_command_generator_xcode7.rb +5 -0
  102. data/gym/lib/gym/manager.rb +4 -0
  103. data/gym/lib/gym/module.rb +36 -0
  104. data/gym/lib/gym/options.rb +3 -2
  105. data/gym/lib/gym/runner.rb +8 -0
  106. data/gym/lib/gym/xcode.rb +2 -0
  107. data/gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb +3 -0
  108. data/match/lib/match.rb +12 -37
  109. data/match/lib/match/change_password.rb +4 -0
  110. data/match/lib/match/commands_generator.rb +9 -3
  111. data/match/lib/match/encrypt.rb +4 -0
  112. data/match/lib/match/generator.rb +7 -2
  113. data/match/lib/match/git_helper.rb +5 -0
  114. data/match/lib/match/module.rb +23 -0
  115. data/match/lib/match/nuke.rb +8 -0
  116. data/match/lib/match/options.rb +3 -2
  117. data/match/lib/match/runner.rb +11 -0
  118. data/match/lib/match/setup.rb +2 -0
  119. data/match/lib/match/spaceship_ensure.rb +5 -2
  120. data/match/lib/match/table_printer.rb +6 -0
  121. data/match/lib/match/utils.rb +3 -0
  122. data/pem/lib/pem.rb +3 -20
  123. data/pem/lib/pem/commands_generator.rb +4 -0
  124. data/pem/lib/pem/manager.rb +3 -0
  125. data/pem/lib/pem/module.rb +18 -0
  126. data/pem/lib/pem/options.rb +4 -2
  127. data/pilot/lib/pilot.rb +1 -14
  128. data/pilot/lib/pilot/build_manager.rb +6 -0
  129. data/pilot/lib/pilot/commands_generator.rb +8 -2
  130. data/pilot/lib/pilot/manager.rb +10 -3
  131. data/pilot/lib/pilot/module.rb +9 -0
  132. data/pilot/lib/pilot/options.rb +4 -2
  133. data/pilot/lib/pilot/tester_exporter.rb +6 -3
  134. data/pilot/lib/pilot/tester_importer.rb +3 -1
  135. data/pilot/lib/pilot/tester_manager.rb +6 -5
  136. data/precheck/lib/precheck.rb +2 -22
  137. data/precheck/lib/precheck/commands_generator.rb +8 -1
  138. data/precheck/lib/precheck/module.rb +21 -0
  139. data/precheck/lib/precheck/options.rb +4 -3
  140. data/precheck/lib/precheck/rule.rb +7 -4
  141. data/precheck/lib/precheck/rule_processor.rb +5 -2
  142. data/precheck/lib/precheck/rules/abstract_text_match_rule.rb +1 -1
  143. data/precheck/lib/precheck/rules/all.rb +1 -0
  144. data/precheck/lib/precheck/rules/copyright_date_rule.rb +1 -2
  145. data/precheck/lib/precheck/rules/curse_words_rule.rb +2 -1
  146. data/precheck/lib/precheck/rules/custom_text_rule.rb +1 -2
  147. data/precheck/lib/precheck/rules/free_stuff_iap_rule.rb +1 -2
  148. data/precheck/lib/precheck/rules/future_functionality_rule.rb +1 -2
  149. data/precheck/lib/precheck/rules/negative_apple_sentiment_rule.rb +1 -2
  150. data/precheck/lib/precheck/rules/other_platforms_rule.rb +1 -2
  151. data/precheck/lib/precheck/rules/placeholder_words_rule.rb +1 -2
  152. data/precheck/lib/precheck/rules/test_words_rule.rb +1 -2
  153. data/precheck/lib/precheck/rules/unreachable_urls_rule.rb +3 -1
  154. data/precheck/lib/precheck/runner.rb +6 -4
  155. data/produce/lib/produce.rb +6 -21
  156. data/produce/lib/produce/commands_generator.rb +5 -0
  157. data/produce/lib/produce/developer_center.rb +1 -0
  158. data/produce/lib/produce/group.rb +1 -0
  159. data/produce/lib/produce/itunes_connect.rb +5 -3
  160. data/produce/lib/produce/manager.rb +4 -0
  161. data/produce/lib/produce/merchant.rb +1 -0
  162. data/produce/lib/produce/module.rb +14 -0
  163. data/produce/lib/produce/options.rb +4 -2
  164. data/produce/lib/produce/service.rb +3 -0
  165. data/scan/lib/scan.rb +10 -40
  166. data/scan/lib/scan/commands_generator.rb +6 -2
  167. data/scan/lib/scan/detect_values.rb +4 -0
  168. data/scan/lib/scan/error_handler.rb +2 -0
  169. data/scan/lib/scan/manager.rb +4 -0
  170. data/scan/lib/scan/module.rb +32 -0
  171. data/scan/lib/scan/options.rb +3 -2
  172. data/scan/lib/scan/runner.rb +9 -0
  173. data/scan/lib/scan/slack_poster.rb +2 -0
  174. data/scan/lib/scan/test_command_generator.rb +2 -0
  175. data/scan/lib/scan/test_result_parser.rb +2 -0
  176. data/scan/lib/scan/xcpretty_reporter_options_generator.rb +2 -0
  177. data/screengrab/lib/screengrab.rb +7 -33
  178. data/screengrab/lib/screengrab/android_environment.rb +2 -0
  179. data/screengrab/lib/screengrab/commands_generator.rb +8 -0
  180. data/screengrab/lib/screengrab/dependency_checker.rb +2 -0
  181. data/screengrab/lib/screengrab/module.rb +24 -0
  182. data/screengrab/lib/screengrab/options.rb +3 -2
  183. data/screengrab/lib/screengrab/reports_generator.rb +3 -1
  184. data/screengrab/lib/screengrab/runner.rb +4 -0
  185. data/screengrab/lib/screengrab/setup.rb +2 -0
  186. data/sigh/lib/sigh.rb +4 -19
  187. data/sigh/lib/sigh/commands_generator.rb +5 -0
  188. data/sigh/lib/sigh/download_all.rb +5 -0
  189. data/sigh/lib/sigh/local_manage.rb +5 -0
  190. data/sigh/lib/sigh/manager.rb +3 -2
  191. data/sigh/lib/sigh/module.rb +16 -0
  192. data/sigh/lib/sigh/options.rb +3 -2
  193. data/sigh/lib/sigh/repair.rb +4 -0
  194. data/sigh/lib/sigh/resign.rb +3 -0
  195. data/sigh/lib/sigh/runner.rb +4 -0
  196. data/snapshot/lib/snapshot.rb +19 -61
  197. data/snapshot/lib/snapshot/collector.rb +5 -0
  198. data/snapshot/lib/snapshot/commands_generator.rb +4 -1
  199. data/snapshot/lib/snapshot/dependency_checker.rb +27 -23
  200. data/snapshot/lib/snapshot/detect_values.rb +7 -0
  201. data/snapshot/lib/snapshot/error_handler.rb +2 -0
  202. data/snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb +2 -0
  203. data/snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb +2 -0
  204. data/snapshot/lib/snapshot/latest_os_version.rb +5 -2
  205. data/snapshot/lib/snapshot/module.rb +44 -0
  206. data/snapshot/lib/snapshot/options.rb +11 -2
  207. data/snapshot/lib/snapshot/reports_generator.rb +4 -2
  208. data/snapshot/lib/snapshot/reset_simulators.rb +3 -0
  209. data/snapshot/lib/snapshot/runner.rb +10 -0
  210. data/snapshot/lib/snapshot/screenshot_flatten.rb +2 -0
  211. data/snapshot/lib/snapshot/screenshot_rotate.rb +4 -1
  212. data/snapshot/lib/snapshot/setup.rb +2 -0
  213. data/snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb +0 -1
  214. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +27 -27
  215. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +8 -0
  216. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb +4 -1
  217. data/snapshot/lib/snapshot/test_command_generator.rb +2 -1
  218. data/snapshot/lib/snapshot/test_command_generator_base.rb +10 -4
  219. data/snapshot/lib/snapshot/test_command_generator_xcode_8.rb +3 -1
  220. data/snapshot/lib/snapshot/update.rb +3 -0
  221. data/spaceship/lib/spaceship.rb +14 -36
  222. data/spaceship/lib/spaceship/client.rb +26 -76
  223. data/spaceship/lib/spaceship/commands_generator.rb +4 -2
  224. data/spaceship/lib/spaceship/du/du_client.rb +3 -0
  225. data/spaceship/lib/spaceship/du/upload_file.rb +2 -0
  226. data/spaceship/lib/spaceship/errors.rb +67 -0
  227. data/spaceship/lib/spaceship/globals.rb +1 -1
  228. data/spaceship/lib/spaceship/helper/plist_middleware.rb +1 -1
  229. data/spaceship/lib/spaceship/helper/rels_middleware.rb +2 -0
  230. data/spaceship/lib/spaceship/launcher.rb +7 -5
  231. data/spaceship/lib/spaceship/module.rb +4 -0
  232. data/spaceship/lib/spaceship/playground.rb +3 -0
  233. data/spaceship/lib/spaceship/portal/app.rb +3 -0
  234. data/spaceship/lib/spaceship/portal/app_group.rb +2 -0
  235. data/spaceship/lib/spaceship/portal/app_service.rb +38 -290
  236. data/spaceship/lib/spaceship/portal/certificate.rb +3 -1
  237. data/spaceship/lib/spaceship/portal/device.rb +5 -3
  238. data/spaceship/lib/spaceship/portal/invite.rb +2 -0
  239. data/spaceship/lib/spaceship/portal/key.rb +2 -0
  240. data/spaceship/lib/spaceship/portal/legacy_wrapper.rb +21 -0
  241. data/spaceship/lib/spaceship/portal/merchant.rb +2 -0
  242. data/spaceship/lib/spaceship/portal/passbook.rb +2 -0
  243. data/spaceship/lib/spaceship/portal/person.rb +2 -0
  244. data/spaceship/lib/spaceship/portal/persons.rb +3 -0
  245. data/spaceship/lib/spaceship/portal/portal_base.rb +3 -0
  246. data/spaceship/lib/spaceship/portal/portal_client.rb +37 -23
  247. data/spaceship/lib/spaceship/portal/provisioning_profile.rb +27 -20
  248. data/spaceship/lib/spaceship/portal/provisioning_profile_template.rb +2 -0
  249. data/spaceship/lib/spaceship/portal/spaceship.rb +13 -10
  250. data/spaceship/lib/spaceship/portal/ui/select_team.rb +2 -0
  251. data/spaceship/lib/spaceship/portal/website_push.rb +2 -0
  252. data/spaceship/lib/spaceship/spaceauth_runner.rb +4 -2
  253. data/spaceship/lib/spaceship/test_flight.rb +0 -1
  254. data/spaceship/lib/spaceship/test_flight/app_test_info.rb +4 -0
  255. data/spaceship/lib/spaceship/test_flight/base.rb +22 -17
  256. data/spaceship/lib/spaceship/test_flight/beta_review_info.rb +2 -0
  257. data/spaceship/lib/spaceship/test_flight/build.rb +211 -203
  258. data/spaceship/lib/spaceship/test_flight/build_trains.rb +4 -1
  259. data/spaceship/lib/spaceship/test_flight/client.rb +255 -251
  260. data/spaceship/lib/spaceship/test_flight/export_compliance.rb +2 -0
  261. data/spaceship/lib/spaceship/test_flight/group.rb +2 -0
  262. data/spaceship/lib/spaceship/test_flight/test_info.rb +2 -0
  263. data/spaceship/lib/spaceship/test_flight/tester.rb +114 -110
  264. data/spaceship/lib/spaceship/tunes/app_details.rb +5 -1
  265. data/spaceship/lib/spaceship/tunes/app_image.rb +2 -0
  266. data/spaceship/lib/spaceship/tunes/app_ratings.rb +2 -68
  267. data/spaceship/lib/spaceship/tunes/app_review.rb +55 -0
  268. data/spaceship/lib/spaceship/tunes/app_screenshot.rb +2 -0
  269. data/spaceship/lib/spaceship/tunes/app_submission.rb +1 -0
  270. data/spaceship/lib/spaceship/tunes/app_trailer.rb +2 -0
  271. data/spaceship/lib/spaceship/tunes/app_version.rb +11 -0
  272. data/spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb +2 -0
  273. data/spaceship/lib/spaceship/tunes/app_version_history.rb +2 -0
  274. data/spaceship/lib/spaceship/tunes/app_version_promocodes.rb +2 -0
  275. data/spaceship/lib/spaceship/tunes/app_version_ref.rb +2 -0
  276. data/spaceship/lib/spaceship/tunes/app_version_states_history.rb +2 -0
  277. data/spaceship/lib/spaceship/tunes/application.rb +18 -6
  278. data/spaceship/lib/spaceship/tunes/availability.rb +2 -0
  279. data/spaceship/lib/spaceship/tunes/build.rb +2 -0
  280. data/spaceship/lib/spaceship/tunes/build_details.rb +2 -0
  281. data/spaceship/lib/spaceship/tunes/build_train.rb +5 -1
  282. data/spaceship/lib/spaceship/tunes/developer_response.rb +23 -0
  283. data/spaceship/lib/spaceship/tunes/errors.rb +17 -0
  284. data/spaceship/lib/spaceship/tunes/iap_detail.rb +5 -0
  285. data/spaceship/lib/spaceship/tunes/iap_families.rb +1 -0
  286. data/spaceship/lib/spaceship/tunes/iap_family_details.rb +1 -0
  287. data/spaceship/lib/spaceship/tunes/iap_family_list.rb +1 -0
  288. data/spaceship/lib/spaceship/tunes/iap_list.rb +3 -0
  289. data/spaceship/lib/spaceship/tunes/iap_subscription_pricing_info.rb +46 -0
  290. data/spaceship/lib/spaceship/tunes/iap_subscription_pricing_tier.rb +2 -41
  291. data/spaceship/lib/spaceship/tunes/language_converter.rb +2 -0
  292. data/spaceship/lib/spaceship/tunes/legacy_wrapper.rb +13 -0
  293. data/spaceship/lib/spaceship/tunes/member.rb +3 -0
  294. data/spaceship/lib/spaceship/tunes/members.rb +2 -0
  295. data/spaceship/lib/spaceship/tunes/pricing_info.rb +42 -0
  296. data/spaceship/lib/spaceship/tunes/pricing_tier.rb +2 -37
  297. data/spaceship/lib/spaceship/tunes/recovery_device.rb +2 -0
  298. data/spaceship/lib/spaceship/tunes/sandbox_tester.rb +2 -0
  299. data/spaceship/lib/spaceship/tunes/spaceship.rb +2 -0
  300. data/spaceship/lib/spaceship/tunes/territory.rb +2 -0
  301. data/spaceship/lib/spaceship/tunes/transit_app_file.rb +2 -0
  302. data/spaceship/lib/spaceship/tunes/tunes.rb +34 -39
  303. data/spaceship/lib/spaceship/tunes/tunes_base.rb +2 -0
  304. data/spaceship/lib/spaceship/tunes/tunes_client.rb +20 -14
  305. data/spaceship/lib/spaceship/tunes/user_detail.rb +2 -0
  306. data/spaceship/lib/spaceship/tunes/version_set.rb +2 -0
  307. data/spaceship/lib/spaceship/two_step_client.rb +5 -1
  308. data/spaceship/lib/spaceship/ui.rb +7 -7
  309. data/supply/lib/supply/options.rb +2 -2
  310. metadata +31 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 244eb914f52a52b8114ccf2b46476f43d44ed56e
4
- data.tar.gz: fd4ddc091bb00205542592c5925a9eaa66ff5116
3
+ metadata.gz: e385246a02cd8be6470d3493204e2be785080030
4
+ data.tar.gz: aaacd9ab8a53b1717d499ae47a655430178a1493
5
5
  SHA512:
6
- metadata.gz: ee764b619920b915d8b7bc4958b758d47599d0f0af067bf9265801a63b933f671a3fcc9f71b823f8bc8647f4dea31603d19f4bab540ebc15fb8cdd978f33a0e7
7
- data.tar.gz: 5a5fc60562c8d5b48acb9f9b880fd484c503d3e1a4b1bd84cae6434cfe609acb232a1bf7a9bc90e0370f01441385bf70d58a4e60316fdf5f2fcfd0fbbc3f5133
6
+ metadata.gz: b3b9fc1ed504ce56778d9c5fa5da79ab88a216694cb396e385fa15f99ad757fa2f5d68db720660160caae59ee4c23cb3130feaa44e63b08dc0d12926129864be
7
+ data.tar.gz: d31664b26ba554f2e7263beb970c59bb6fa851b3665fc2004a8b3f2a34fa4d8438986a684854dffd028999b1fdc6b53f7925aca2398bada572042109e3ea212a
data/cert/lib/cert.rb CHANGED
@@ -1,18 +1,4 @@
1
- require 'cert/runner'
2
- require 'cert/options'
1
+ require_relative 'cert/runner'
2
+ require_relative 'cert/options'
3
3
 
4
- require 'fastlane_core'
5
- require 'spaceship'
6
-
7
- module Cert
8
- # Use this to just setup the configuration attribute and set it later somewhere else
9
- class << self
10
- attr_accessor :config
11
- end
12
-
13
- Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
14
- UI = FastlaneCore::UI
15
- ROOT = Pathname.new(File.expand_path('../..', __FILE__))
16
-
17
- ENV['FASTLANE_TEAM_ID'] ||= ENV["CERT_TEAM_ID"]
18
- end
4
+ require_relative 'cert/module'
@@ -1,5 +1,10 @@
1
1
  require 'commander'
2
2
  require 'fastlane/version'
3
+ require 'fastlane_core/configuration/configuration'
4
+ require 'fastlane_core/globals'
5
+
6
+ require_relative 'options'
7
+ require_relative 'runner'
3
8
 
4
9
  HighLine.track_eof = false
5
10
 
@@ -0,0 +1,14 @@
1
+ require 'fastlane_core/helper'
2
+
3
+ module Cert
4
+ # Use this to just setup the configuration attribute and set it later somewhere else
5
+ class << self
6
+ attr_accessor :config
7
+ end
8
+
9
+ Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
10
+ UI = FastlaneCore::UI
11
+ ROOT = Pathname.new(File.expand_path('../../..', __FILE__))
12
+
13
+ ENV['FASTLANE_TEAM_ID'] ||= ENV["CERT_TEAM_ID"]
14
+ end
@@ -1,5 +1,7 @@
1
- require 'fastlane_core'
2
- require 'credentials_manager'
1
+ require 'credentials_manager/appfile_config'
2
+ require 'fastlane_core/configuration/config_item'
3
+
4
+ require_relative 'module'
3
5
 
4
6
  module Cert
5
7
  class Options
@@ -1,4 +1,11 @@
1
1
  require 'fileutils'
2
+ require 'fastlane_core/globals'
3
+ require 'fastlane_core/cert_checker'
4
+ require 'fastlane_core/keychain_importer'
5
+ require 'fastlane_core/print_table'
6
+ require 'spaceship'
7
+
8
+ require_relative 'module'
2
9
 
3
10
  module Cert
4
11
  class Runner
@@ -1,12 +1,6 @@
1
- require 'fastlane/version'
2
- require 'credentials_manager/account_manager'
3
- require 'credentials_manager/cli'
4
- require 'credentials_manager/appfile_config'
5
-
6
- # Third Party code
7
- require 'colored'
8
- require 'security'
9
- require 'highline/import' # to hide the entered password
1
+ require_relative 'credentials_manager/account_manager'
2
+ require_relative 'credentials_manager/cli'
3
+ require_relative 'credentials_manager/appfile_config'
10
4
 
11
5
  module CredentialsManager
12
6
  ROOT = Pathname.new(File.expand_path('../..', __FILE__))
@@ -1,6 +1,8 @@
1
1
  require 'security'
2
2
  require 'highline/import' # to hide the entered password
3
3
 
4
+ require_relative 'appfile_config'
5
+
4
6
  module CredentialsManager
5
7
  class AccountManager
6
8
  DEFAULT_PREFIX = "deliver"
@@ -1,3 +1,5 @@
1
+ require 'fastlane_core/globals'
2
+
1
3
  module CredentialsManager
2
4
  # Access the content of the app file (e.g. app identifier and Apple ID)
3
5
  class AppfileConfig
@@ -1,5 +1,7 @@
1
1
  require 'commander'
2
2
 
3
+ require_relative 'account_manager'
4
+
3
5
  module CredentialsManager
4
6
  class CLI
5
7
  include Commander::Methods
@@ -1,31 +1,15 @@
1
- require 'json'
2
- require 'deliver/options'
3
- require 'deliver/commands_generator'
4
- require 'deliver/detect_values'
5
- require 'deliver/runner'
6
- require 'deliver/upload_metadata'
7
- require 'deliver/upload_screenshots'
8
- require 'deliver/upload_price_tier'
9
- require 'deliver/upload_assets'
10
- require 'deliver/submit_for_review'
11
- require 'deliver/app_screenshot'
12
- require 'deliver/html_generator'
13
- require 'deliver/generate_summary'
14
- require 'deliver/loader'
15
-
16
- require 'spaceship'
17
- require 'fastlane_core'
18
-
19
- module Deliver
20
- class << self
21
- end
22
-
23
- Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
24
- UI = FastlaneCore::UI
25
-
26
- # Constant that captures the root Pathname for the project. Should be used for building paths to assets or other
27
- # resources that code needs to locate locally
28
- ROOT = Pathname.new(File.expand_path('../..', __FILE__))
29
-
30
- DESCRIPTION = 'Upload screenshots, metadata and your app to the App Store using a single command'
31
- end
1
+ require_relative 'deliver/loader'
2
+ require_relative 'deliver/options'
3
+ require_relative 'deliver/commands_generator'
4
+ require_relative 'deliver/detect_values'
5
+ require_relative 'deliver/runner'
6
+ require_relative 'deliver/upload_metadata'
7
+ require_relative 'deliver/upload_screenshots'
8
+ require_relative 'deliver/upload_price_tier'
9
+ require_relative 'deliver/upload_assets'
10
+ require_relative 'deliver/submit_for_review'
11
+ require_relative 'deliver/app_screenshot'
12
+ require_relative 'deliver/html_generator'
13
+ require_relative 'deliver/generate_summary'
14
+
15
+ require_relative 'deliver/module'
@@ -1,5 +1,7 @@
1
1
  require 'fastimage'
2
2
 
3
+ require_relative 'module'
4
+
3
5
  module Deliver
4
6
  # AppScreenshot represents one screenshots for one specific locale and
5
7
  # device type.
@@ -1,7 +1,12 @@
1
1
  require 'commander'
2
- require 'deliver/download_screenshots'
3
2
  require 'fastlane/version'
4
3
 
4
+ require_relative 'download_screenshots'
5
+ require_relative 'options'
6
+ require_relative 'module'
7
+ require_relative 'generate_summary'
8
+ require_relative 'runner'
9
+
5
10
  HighLine.track_eof = false
6
11
 
7
12
  module Deliver
@@ -1,3 +1,11 @@
1
+ require 'fastlane_core/fastlane_folder'
2
+ require 'fastlane_core/ipa_file_analyser'
3
+ require 'fastlane_core/pkg_file_analyser'
4
+ require 'spaceship/tunes/tunes'
5
+ require 'spaceship/tunes/application'
6
+
7
+ require_relative 'module'
8
+
1
9
  module Deliver
2
10
  class DetectValues
3
11
  def run!(options, skip_params = {})
@@ -30,7 +38,7 @@ module Deliver
30
38
  def find_app(options)
31
39
  search_by = options[:app_identifier]
32
40
  search_by = options[:app] if search_by.to_s.length == 0
33
- app = Spaceship::Application.find(search_by, mac: options[:platform] == "osx")
41
+ app = Spaceship::Tunes::Application.find(search_by, mac: options[:platform] == "osx")
34
42
  if app
35
43
  options[:app] = app
36
44
  else
@@ -1,3 +1,5 @@
1
+ require_relative 'module'
2
+
1
3
  module Deliver
2
4
  class DownloadScreenshots
3
5
  def self.run(options, path)
@@ -1,3 +1,7 @@
1
+ require_relative 'upload_metadata'
2
+ require_relative 'html_generator'
3
+ require_relative 'upload_screenshots'
4
+
1
5
  module Deliver
2
6
  class GenerateSummary
3
7
  def run(options)
@@ -1,3 +1,5 @@
1
+ require_relative 'module'
2
+
1
3
  module Deliver
2
4
  class HtmlGenerator
3
5
  # Splits keywords supporting:
@@ -1,4 +1,8 @@
1
1
  require 'fastlane_core/languages'
2
+ require 'spaceship/tunes/tunes'
3
+
4
+ require_relative 'module'
5
+ require_relative 'upload_metadata'
2
6
 
3
7
  module Deliver
4
8
  module Loader
@@ -0,0 +1,16 @@
1
+ require 'fastlane_core/helper'
2
+ require 'fastlane_core/ui/ui'
3
+
4
+ module Deliver
5
+ class << self
6
+ end
7
+
8
+ Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
9
+ UI = FastlaneCore::UI
10
+
11
+ # Constant that captures the root Pathname for the project. Should be used for building paths to assets or other
12
+ # resources that code needs to locate locally
13
+ ROOT = Pathname.new(File.expand_path('../../..', __FILE__))
14
+
15
+ DESCRIPTION = 'Upload screenshots, metadata and your app to the App Store using a single command'
16
+ end
@@ -1,5 +1,8 @@
1
- require 'fastlane_core'
2
- require 'credentials_manager'
1
+ require 'fastlane_core/configuration/config_item'
2
+ require 'credentials_manager/appfile_config'
3
+
4
+ require_relative 'module'
5
+ require_relative 'upload_assets'
3
6
 
4
7
  module Deliver
5
8
  # rubocop:disable Metrics/ClassLength
@@ -1,4 +1,17 @@
1
- require 'precheck'
1
+ require 'precheck/options'
2
+ require 'precheck/runner'
3
+ require 'fastlane_core/configuration/configuration'
4
+ require 'fastlane_core/crash_reporter/crash_reporter'
5
+ require 'fastlane_core/ipa_upload_package_builder'
6
+ require 'fastlane_core/pkg_upload_package_builder'
7
+ require 'fastlane_core/itunes_transporter'
8
+ require_relative 'html_generator'
9
+ require_relative 'submit_for_review'
10
+ require_relative 'upload_assets'
11
+ require_relative 'upload_price_tier'
12
+ require_relative 'upload_metadata'
13
+ require_relative 'upload_screenshots'
14
+ require_relative 'detect_values'
2
15
 
3
16
  module Deliver
4
17
  class Runner
@@ -1,11 +1,15 @@
1
- require 'fastlane_core'
1
+ require 'spaceship/tunes/tunes'
2
+
3
+ require_relative 'module'
4
+ require_relative 'download_screenshots'
5
+ require_relative 'upload_metadata'
2
6
 
3
7
  module Deliver
4
8
  class Setup
5
9
  attr_accessor :is_swift
6
10
 
7
11
  def run(options, is_swift: false)
8
- containing = FastlaneCore::Helper.fastlane_enabled_folder_path
12
+ containing = Helper.fastlane_enabled_folder_path
9
13
  self.is_swift = is_swift
10
14
 
11
15
  if is_swift
@@ -1,3 +1,5 @@
1
+ require_relative 'module'
2
+
1
3
  module Deliver
2
4
  class SubmitForReview
3
5
  def submit!(options)
@@ -1,3 +1,5 @@
1
+ require_relative 'module'
2
+
1
3
  module Deliver
2
4
  class UploadAssets
3
5
  SUPPORTED_ICON_EXTENSIONS = [".png", ".jpg", ".jpeg"]
@@ -1,3 +1,5 @@
1
+ require_relative 'module'
2
+
1
3
  module Deliver
2
4
  # upload description, rating, etc.
3
5
  class UploadMetadata
@@ -59,6 +61,8 @@ module Deliver
59
61
 
60
62
  # rubocop:disable Metrics/PerceivedComplexity
61
63
 
64
+ require_relative 'loader'
65
+
62
66
  # Make sure to call `load_from_filesystem` before calling upload
63
67
  def upload(options)
64
68
  return if options[:skip_metadata]
@@ -1,3 +1,5 @@
1
+ require_relative 'module'
2
+
1
3
  module Deliver
2
4
  # Set the app's pricing
3
5
  class UploadPriceTier
@@ -1,3 +1,9 @@
1
+ require 'spaceship/tunes/tunes'
2
+
3
+ require_relative 'app_screenshot'
4
+ require_relative 'module'
5
+ require_relative 'loader'
6
+
1
7
  module Deliver
2
8
  # upload screenshots to iTunes Connect
3
9
  class UploadScreenshots
@@ -22,29 +22,34 @@ module Fastlane
22
22
  require 'slack-notifier'
23
23
 
24
24
  options[:message] = self.trim_message(options[:message].to_s || '')
25
- options[:message] = Slack::Notifier::LinkFormatter.format(options[:message])
25
+ options[:message] = Slack::Notifier::Util::LinkFormatter.format(options[:message])
26
26
 
27
- notifier = Slack::Notifier.new(options[:slack_url])
27
+ if options[:channel].to_s.length > 0
28
+ channel = options[:channel]
29
+ channel = ('#' + notifier.channel) unless ['#', '@'].include?(channel[0]) # send message to channel by default
30
+ end
28
31
 
29
- notifier.username = options[:use_webhook_configured_username_and_icon] ? nil : options[:username]
30
- icon_url = options[:use_webhook_configured_username_and_icon] ? nil : options[:icon_url]
32
+ username = options[:use_webhook_configured_username_and_icon] ? nil : options[:username]
31
33
 
32
- if options[:channel].to_s.length > 0
33
- notifier.channel = options[:channel]
34
- notifier.channel = ('#' + notifier.channel) unless ['#', '@'].include?(notifier.channel[0]) # send message to channel by default
34
+ notifier = Slack::Notifier.new(options[:slack_url]) do
35
+ defaults channel: channel,
36
+ username: username
35
37
  end
36
38
 
39
+ icon_url = options[:use_webhook_configured_username_and_icon] ? nil : options[:icon_url]
40
+
37
41
  slack_attachment = generate_slack_attachments(options)
38
42
 
39
43
  return [notifier, slack_attachment] if Helper.is_test? # tests will verify the slack attachments and other properties
40
44
 
41
45
  begin
42
- result = notifier.ping '',
43
- icon_url: icon_url,
44
- attachments: [slack_attachment]
46
+ results = notifier.ping '',
47
+ icon_url: icon_url,
48
+ attachments: [slack_attachment]
45
49
  rescue => exception
46
50
  UI.error("Exception: #{exception}")
47
51
  ensure
52
+ result = results.first
48
53
  if !result.nil? && result.code.to_i == 200
49
54
  UI.success('Successfully sent Slack notification')
50
55
  else
@@ -186,7 +191,7 @@ module Fastlane
186
191
  slack_attachment[:fields] += options[:payload].map do |k, v|
187
192
  {
188
193
  title: k.to_s,
189
- value: Slack::Notifier::LinkFormatter.format(v.to_s),
194
+ value: Slack::Notifier::Util::LinkFormatter.format(v.to_s),
190
195
  short: false
191
196
  }
192
197
  end
@@ -261,3 +261,6 @@ Style/IfInsideElse:
261
261
  # Sometimes we just want to 'collect'
262
262
  Style/CollectionMethods:
263
263
  Enabled: false
264
+
265
+ Lint/UnneededDisable:
266
+ Enabled: false
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.74.0.beta.20180106010004'.freeze
2
+ VERSION = '2.74.0.beta.20180107010004'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze