10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/cocoapods/user_interface/error_report.rb', line 10
def report(exception)
"\n\#{'\u2015\u2015\u2015 MARKDOWN TEMPLATE \u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015'.reversed}\n\n### Command\n\n```\n\#{original_command}\n```\n\n### Report\n\n* What did you do?\n\n* What did you expect to happen?\n\n* What happened instead?\n\n\n### Stack\n\n```\n CocoaPods : \#{Pod::VERSION}\nRuby : \#{RUBY_DESCRIPTION}\n RubyGems : \#{Gem::VERSION}\nHost : \#{host_information}\n Xcode : \#{xcode_information}\n Git : \#{git_information}\nRuby lib dir : \#{RbConfig::CONFIG['libdir']}\nRepositories : \#{repo_information.join(\"\\n \")}\n```\n\n### Plugins\n\n```\n\#{plugins_string}\n```\n\#{markdown_podfile}\n### Error\n\n```\n\#{exception.class} - \#{exception.message}\n\#{exception.backtrace.join(\"\\n\")}\n```\n\n\#{'\u2015\u2015\u2015 TEMPLATE END \u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015'.reversed}\n\n\#{'[!] Oh no, an error occurred.'.red}\n\#{error_from_podfile(exception)}\n\#{'Search for existing GitHub issues similar to yours:'.yellow}\n\#{issues_url(exception)}\n\n\#{'If none exists, create a ticket, with the template displayed above, on:'.yellow}\nhttps://github.com/CocoaPods/CocoaPods/issues/new\n\n\#{'Be sure to first read the contributing guide for details on how to properly submit a ticket:'.yellow}\nhttps://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md\n\nDon't forget to anonymize any private data!\n\n"
end
|