jekyll-docs 3.6.1.0 → 3.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll.rb +195 -0
  3. data/lib/jekyll/cleaner.rb +110 -0
  4. data/lib/jekyll/collection.rb +230 -0
  5. data/lib/jekyll/command.rb +78 -0
  6. data/lib/jekyll/commands/build.rb +102 -0
  7. data/lib/jekyll/commands/clean.rb +43 -0
  8. data/lib/jekyll/commands/doctor.rb +153 -0
  9. data/lib/jekyll/commands/help.rb +34 -0
  10. data/lib/jekyll/commands/new.rb +156 -0
  11. data/lib/jekyll/commands/new_theme.rb +40 -0
  12. data/lib/jekyll/commands/serve.rb +245 -0
  13. data/lib/jekyll/commands/serve/servlet.rb +62 -0
  14. data/lib/jekyll/configuration.rb +410 -0
  15. data/lib/jekyll/converter.rb +54 -0
  16. data/lib/jekyll/converters/identity.rb +23 -0
  17. data/lib/jekyll/converters/markdown.rb +104 -0
  18. data/lib/jekyll/converters/markdown/kramdown_parser.rb +123 -0
  19. data/lib/jekyll/converters/markdown/rdiscount_parser.rb +35 -0
  20. data/lib/jekyll/converters/markdown/redcarpet_parser.rb +108 -0
  21. data/lib/jekyll/converters/smartypants.rb +36 -0
  22. data/lib/jekyll/convertible.rb +251 -0
  23. data/lib/jekyll/deprecator.rb +52 -0
  24. data/lib/jekyll/document.rb +507 -0
  25. data/lib/jekyll/drops/collection_drop.rb +22 -0
  26. data/lib/jekyll/drops/document_drop.rb +69 -0
  27. data/lib/jekyll/drops/drop.rb +214 -0
  28. data/lib/jekyll/drops/excerpt_drop.rb +15 -0
  29. data/lib/jekyll/drops/jekyll_drop.rb +33 -0
  30. data/lib/jekyll/drops/site_drop.rb +47 -0
  31. data/lib/jekyll/drops/static_file_drop.rb +13 -0
  32. data/lib/jekyll/drops/unified_payload_drop.rb +25 -0
  33. data/lib/jekyll/drops/url_drop.rb +88 -0
  34. data/lib/jekyll/entry_filter.rb +123 -0
  35. data/lib/jekyll/errors.rb +20 -0
  36. data/lib/jekyll/excerpt.rb +126 -0
  37. data/lib/jekyll/external.rb +74 -0
  38. data/lib/jekyll/filters.rb +430 -0
  39. data/lib/jekyll/filters/grouping_filters.rb +65 -0
  40. data/lib/jekyll/filters/url_filters.rb +60 -0
  41. data/lib/jekyll/frontmatter_defaults.rb +197 -0
  42. data/lib/jekyll/generator.rb +5 -0
  43. data/lib/jekyll/hooks.rb +104 -0
  44. data/lib/jekyll/layout.rb +62 -0
  45. data/lib/jekyll/liquid_extensions.rb +24 -0
  46. data/lib/jekyll/liquid_renderer.rb +49 -0
  47. data/lib/jekyll/liquid_renderer/file.rb +56 -0
  48. data/lib/jekyll/liquid_renderer/table.rb +96 -0
  49. data/lib/jekyll/log_adapter.rb +147 -0
  50. data/lib/jekyll/mime.types +825 -0
  51. data/lib/jekyll/page.rb +187 -0
  52. data/lib/jekyll/plugin.rb +98 -0
  53. data/lib/jekyll/plugin_manager.rb +113 -0
  54. data/lib/jekyll/publisher.rb +23 -0
  55. data/lib/jekyll/reader.rb +134 -0
  56. data/lib/jekyll/readers/collection_reader.rb +22 -0
  57. data/lib/jekyll/readers/data_reader.rb +77 -0
  58. data/lib/jekyll/readers/layout_reader.rb +71 -0
  59. data/lib/jekyll/readers/page_reader.rb +25 -0
  60. data/lib/jekyll/readers/post_reader.rb +72 -0
  61. data/lib/jekyll/readers/static_file_reader.rb +25 -0
  62. data/lib/jekyll/readers/theme_assets_reader.rb +49 -0
  63. data/lib/jekyll/regenerator.rb +201 -0
  64. data/lib/jekyll/related_posts.rb +52 -0
  65. data/lib/jekyll/renderer.rb +269 -0
  66. data/lib/jekyll/site.rb +472 -0
  67. data/lib/jekyll/static_file.rb +162 -0
  68. data/lib/jekyll/stevenson.rb +61 -0
  69. data/lib/jekyll/tags/highlight.rb +141 -0
  70. data/lib/jekyll/tags/include.rb +215 -0
  71. data/lib/jekyll/tags/link.rb +37 -0
  72. data/lib/jekyll/tags/post_url.rb +103 -0
  73. data/lib/jekyll/theme.rb +68 -0
  74. data/lib/jekyll/theme_builder.rb +119 -0
  75. data/lib/jekyll/url.rb +161 -0
  76. data/lib/jekyll/utils.rb +340 -0
  77. data/lib/jekyll/utils/ansi.rb +59 -0
  78. data/lib/jekyll/utils/exec.rb +27 -0
  79. data/lib/jekyll/utils/platforms.rb +82 -0
  80. data/lib/jekyll/utils/rouge.rb +21 -0
  81. data/lib/jekyll/utils/win_tz.rb +75 -0
  82. data/lib/jekyll/version.rb +5 -0
  83. data/lib/site_template/404.html +24 -0
  84. data/lib/site_template/_config.yml +43 -0
  85. data/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb +25 -0
  86. data/lib/site_template/about.md +18 -0
  87. data/lib/site_template/index.md +6 -0
  88. data/lib/theme_template/CODE_OF_CONDUCT.md.erb +74 -0
  89. data/lib/theme_template/Gemfile +4 -0
  90. data/lib/theme_template/LICENSE.txt.erb +21 -0
  91. data/lib/theme_template/README.md.erb +52 -0
  92. data/lib/theme_template/_layouts/default.html +1 -0
  93. data/lib/theme_template/_layouts/page.html +5 -0
  94. data/lib/theme_template/_layouts/post.html +5 -0
  95. data/lib/theme_template/example/_config.yml.erb +1 -0
  96. data/lib/theme_template/example/_post.md +12 -0
  97. data/lib/theme_template/example/index.html +14 -0
  98. data/lib/theme_template/example/style.scss +7 -0
  99. data/lib/theme_template/gitignore.erb +5 -0
  100. data/lib/theme_template/theme.gemspec.erb +19 -0
  101. metadata +103 -156
  102. data/lib/jekyll-docs.rb +0 -31
  103. data/site/404.html +0 -153
  104. data/site/CNAME +0 -1
  105. data/site/community/index.html +0 -299
  106. data/site/conduct/index.html +0 -10
  107. data/site/css/screen.css +0 -1
  108. data/site/docs/assets/index.html +0 -724
  109. data/site/docs/code_of_conduct/index.html +0 -730
  110. data/site/docs/collections/index.html +0 -1097
  111. data/site/docs/conduct/index.html +0 -744
  112. data/site/docs/configuration/index.html +0 -1403
  113. data/site/docs/continuous-integration/buddyworks/index.html +0 -726
  114. data/site/docs/continuous-integration/circleci/index.html +0 -757
  115. data/site/docs/continuous-integration/index.html +0 -681
  116. data/site/docs/continuous-integration/travis-ci/index.html +0 -891
  117. data/site/docs/contributing/index.html +0 -863
  118. data/site/docs/datafiles/index.html +0 -780
  119. data/site/docs/deployment-methods/index.html +0 -875
  120. data/site/docs/drafts/index.html +0 -636
  121. data/site/docs/extras/index.html +0 -689
  122. data/site/docs/frontmatter/index.html +0 -821
  123. data/site/docs/github-pages/index.html +0 -819
  124. data/site/docs/history/index.html +0 -3955
  125. data/site/docs/home/index.html +0 -644
  126. data/site/docs/includes/index.html +0 -800
  127. data/site/docs/index.html +0 -10
  128. data/site/docs/installation/index.html +0 -732
  129. data/site/docs/maintaining/affinity-team-captain/index.html +0 -706
  130. data/site/docs/maintaining/avoiding-burnout/index.html +0 -709
  131. data/site/docs/maintaining/becoming-a-maintainer/index.html +0 -717
  132. data/site/docs/maintaining/index.html +0 -713
  133. data/site/docs/maintaining/merging-a-pull-request/index.html +0 -747
  134. data/site/docs/maintaining/reviewing-a-pull-request/index.html +0 -725
  135. data/site/docs/maintaining/special-labels/index.html +0 -705
  136. data/site/docs/maintaining/triaging-an-issue/index.html +0 -735
  137. data/site/docs/migrations/index.html +0 -647
  138. data/site/docs/pages/index.html +0 -695
  139. data/site/docs/pagination/index.html +0 -870
  140. data/site/docs/permalinks/index.html +0 -1035
  141. data/site/docs/plugins/index.html +0 -1800
  142. data/site/docs/posts/index.html +0 -858
  143. data/site/docs/quickstart/index.html +0 -650
  144. data/site/docs/resources/index.html +0 -769
  145. data/site/docs/sites/index.html +0 -702
  146. data/site/docs/static-files/index.html +0 -720
  147. data/site/docs/structure/index.html +0 -822
  148. data/site/docs/templates/index.html +0 -1208
  149. data/site/docs/themes/index.html +0 -935
  150. data/site/docs/troubleshooting/index.html +0 -916
  151. data/site/docs/upgrading/0-to-2/index.html +0 -826
  152. data/site/docs/upgrading/2-to-3/index.html +0 -824
  153. data/site/docs/upgrading/index.html +0 -693
  154. data/site/docs/usage/index.html +0 -705
  155. data/site/docs/variables/index.html +0 -1048
  156. data/site/docs/windows/index.html +0 -799
  157. data/site/favicon.ico +0 -0
  158. data/site/feed.xml +0 -372
  159. data/site/fonts/FontAwesome.eot +0 -0
  160. data/site/fonts/FontAwesome.svg +0 -12
  161. data/site/fonts/FontAwesome.ttf +0 -0
  162. data/site/fonts/FontAwesome.woff +0 -0
  163. data/site/github.html +0 -10
  164. data/site/help/index.html +0 -244
  165. data/site/icomoon-selection.json +0 -96
  166. data/site/img/article-footer.png +0 -0
  167. data/site/img/footer-arrow.png +0 -0
  168. data/site/img/footer-logo.png +0 -0
  169. data/site/img/jekyll-sticker.jpg +0 -0
  170. data/site/img/jekylllayoutconcept.png +0 -0
  171. data/site/img/logo-2x.png +0 -0
  172. data/site/img/logo-rss.png +0 -0
  173. data/site/img/octojekyll.png +0 -0
  174. data/site/index.html +0 -267
  175. data/site/issues.html +0 -10
  176. data/site/js/html5shiv.min.js +0 -4
  177. data/site/js/respond.min.js +0 -5
  178. data/site/latest_version.txt +0 -1
  179. data/site/news/2013/05/05/jekyll-1-0-0-released/index.html +0 -570
  180. data/site/news/2013/05/08/jekyll-1-0-1-released/index.html +0 -570
  181. data/site/news/2013/05/12/jekyll-1-0-2-released/index.html +0 -571
  182. data/site/news/2013/06/07/jekyll-1-0-3-released/index.html +0 -568
  183. data/site/news/2013/07/14/jekyll-1-1-0-released/index.html +0 -570
  184. data/site/news/2013/07/24/jekyll-1-1-1-released/index.html +0 -569
  185. data/site/news/2013/07/25/jekyll-1-0-4-released/index.html +0 -565
  186. data/site/news/2013/07/25/jekyll-1-1-2-released/index.html +0 -565
  187. data/site/news/2013/09/06/jekyll-1-2-0-released/index.html +0 -572
  188. data/site/news/2013/09/14/jekyll-1-2-1-released/index.html +0 -566
  189. data/site/news/2013/10/28/jekyll-1-3-0-rc1-released/index.html +0 -564
  190. data/site/news/2013/11/04/jekyll-1-3-0-released/index.html +0 -599
  191. data/site/news/2013/11/26/jekyll-1-3-1-released/index.html +0 -568
  192. data/site/news/2013/12/07/jekyll-1-4-0-released/index.html +0 -583
  193. data/site/news/2013/12/09/jekyll-1-4-1-released/index.html +0 -565
  194. data/site/news/2013/12/16/jekyll-1-4-2-released/index.html +0 -564
  195. data/site/news/2014/01/13/jekyll-1-4-3-released/index.html +0 -573
  196. data/site/news/2014/03/24/jekyll-1-5-0-released/index.html +0 -564
  197. data/site/news/2014/03/27/jekyll-1-5-1-released/index.html +0 -569
  198. data/site/news/2014/05/06/jekyll-turns-2-0-0/index.html +0 -585
  199. data/site/news/2014/05/08/jekyll-2-0-3-released/index.html +0 -565
  200. data/site/news/2014/06/04/jekyll-stickers-1-dollar-stickermule/index.html +0 -567
  201. data/site/news/2014/06/28/jekyll-turns-21-i-mean-2-1-0/index.html +0 -582
  202. data/site/news/2014/07/01/jekyll-2-1-1-released/index.html +0 -579
  203. data/site/news/2014/07/29/jekyll-2-2-0-released/index.html +0 -568
  204. data/site/news/2014/08/10/jekyll-2-3-0-released/index.html +0 -588
  205. data/site/news/2014/09/09/jekyll-2-4-0-released/index.html +0 -574
  206. data/site/news/2014/11/05/jekylls-midlife-crisis-jekyll-turns-2-5-0/index.html +0 -597
  207. data/site/news/2014/11/09/jekyll-2-5-1-released/index.html +0 -575
  208. data/site/news/2014/11/12/jekyll-2-5-2-released/index.html +0 -565
  209. data/site/news/2014/12/17/alfredxing-welcome-to-jekyll-core/index.html +0 -572
  210. data/site/news/2014/12/22/jekyll-2-5-3-released/index.html +0 -567
  211. data/site/news/2015/01/20/jekyll-meet-and-greet/index.html +0 -568
  212. data/site/news/2015/01/24/jekyll-3-0-0-beta1-released/index.html +0 -588
  213. data/site/news/2015/02/26/introducing-jekyll-talk/index.html +0 -563
  214. data/site/news/2015/10/26/jekyll-3-0-released/index.html +0 -592
  215. data/site/news/2015/11/17/jekyll-3-0-1-released/index.html +0 -576
  216. data/site/news/2016/01/20/jekyll-3-0-2-released/index.html +0 -566
  217. data/site/news/2016/01/24/jekyll-3-1-0-released/index.html +0 -599
  218. data/site/news/2016/01/28/jekyll-3-1-1-released/index.html +0 -583
  219. data/site/news/2016/02/08/jekyll-3-0-3-released/index.html +0 -578
  220. data/site/news/2016/02/19/jekyll-3-1-2-released/index.html +0 -569
  221. data/site/news/2016/03/10/making-it-easier-to-contribute-to-jekyll/index.html +0 -565
  222. data/site/news/2016/04/19/jekyll-3-0-4-released/index.html +0 -571
  223. data/site/news/2016/04/19/jekyll-3-1-3-released/index.html +0 -566
  224. data/site/news/2016/04/26/jekyll-3-0-5-released/index.html +0 -572
  225. data/site/news/2016/05/18/jekyll-3-1-4-released/index.html +0 -576
  226. data/site/news/2016/05/18/jekyll-3-1-5-released/index.html +0 -564
  227. data/site/news/2016/05/19/jekyll-3-1-6-released/index.html +0 -566
  228. data/site/news/2016/06/03/update-on-jekyll-s-google-summer-of-code-projects/index.html +0 -567
  229. data/site/news/2016/07/26/jekyll-3-2-0-released/index.html +0 -676
  230. data/site/news/2016/08/02/jekyll-3-2-1-released/index.html +0 -571
  231. data/site/news/2016/08/24/jekyll-admin-initial-release/index.html +0 -566
  232. data/site/news/2016/10/06/jekyll-3-3-is-here/index.html +0 -645
  233. data/site/news/2016/11/14/jekyll-3-3-1-released/index.html +0 -569
  234. data/site/news/2017/01/18/jekyll-3-4-0-released/index.html +0 -592
  235. data/site/news/2017/03/02/jekyll-3-4-1-released/index.html +0 -649
  236. data/site/news/2017/03/09/jekyll-3-4-2-released/index.html +0 -598
  237. data/site/news/2017/03/21/jekyll-3-4-3-released/index.html +0 -594
  238. data/site/news/2017/06/15/jekyll-3-5-0-released/index.html +0 -589
  239. data/site/news/2017/07/17/jekyll-3-5-1-released/index.html +0 -569
  240. data/site/news/2017/08/12/jekyll-3-5-2-released/index.html +0 -573
  241. data/site/news/2017/09/21/jekyll-3-6-0-released/index.html +0 -565
  242. data/site/news/index.html +0 -3609
  243. data/site/news/releases/index.html +0 -3344
  244. data/site/philosophy.html +0 -46
  245. data/site/readme.md +0 -23
  246. data/site/robots.txt +0 -1
  247. data/site/sitemap.xml +0 -485
  248. data/site/tutorials/convert-site-to-jekyll/index.html +0 -793
  249. data/site/tutorials/custom-404-page/index.html +0 -358
  250. data/site/tutorials/home/index.html +0 -323
  251. data/site/tutorials/index.html +0 -10
  252. data/site/tutorials/navigation/index.html +0 -872
  253. data/site/tutorials/orderofinterpretation/index.html +0 -441
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Jekyll
4
+ module LiquidExtensions
5
+
6
+ # Lookup a Liquid variable in the given context.
7
+ #
8
+ # context - the Liquid context in question.
9
+ # variable - the variable name, as a string.
10
+ #
11
+ # Returns the value of the variable in the context
12
+ # or the variable name if not found.
13
+ def lookup_variable(context, variable)
14
+ lookup = context
15
+
16
+ variable.split(".").each do |value|
17
+ lookup = lookup[value]
18
+ end
19
+
20
+ lookup || variable
21
+ end
22
+
23
+ end
24
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "jekyll/liquid_renderer/file"
4
+ require "jekyll/liquid_renderer/table"
5
+
6
+ module Jekyll
7
+ class LiquidRenderer
8
+ def initialize(site)
9
+ @site = site
10
+ Liquid::Template.error_mode = @site.config["liquid"]["error_mode"].to_sym
11
+ reset
12
+ end
13
+
14
+ def reset
15
+ @stats = {}
16
+ end
17
+
18
+ def file(filename)
19
+ filename = @site.in_source_dir(filename).sub(
20
+ %r!\A#{Regexp.escape(@site.source)}/!,
21
+ ""
22
+ )
23
+
24
+ LiquidRenderer::File.new(self, filename).tap do
25
+ @stats[filename] ||= {}
26
+ @stats[filename][:count] ||= 0
27
+ @stats[filename][:count] += 1
28
+ end
29
+ end
30
+
31
+ def increment_bytes(filename, bytes)
32
+ @stats[filename][:bytes] ||= 0
33
+ @stats[filename][:bytes] += bytes
34
+ end
35
+
36
+ def increment_time(filename, time)
37
+ @stats[filename][:time] ||= 0.0
38
+ @stats[filename][:time] += time
39
+ end
40
+
41
+ def stats_table(n = 50)
42
+ LiquidRenderer::Table.new(@stats).to_s(n)
43
+ end
44
+
45
+ def self.format_error(e, path)
46
+ "#{e.message} in #{path}"
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Jekyll
4
+ class LiquidRenderer
5
+ class File
6
+ def initialize(renderer, filename)
7
+ @renderer = renderer
8
+ @filename = filename
9
+ end
10
+
11
+ def parse(content)
12
+ measure_time do
13
+ @template = Liquid::Template.parse(content, :line_numbers => true)
14
+ end
15
+
16
+ self
17
+ end
18
+
19
+ def render(*args)
20
+ measure_time do
21
+ measure_bytes do
22
+ @template.render(*args)
23
+ end
24
+ end
25
+ end
26
+
27
+ def render!(*args)
28
+ measure_time do
29
+ measure_bytes do
30
+ @template.render!(*args)
31
+ end
32
+ end
33
+ end
34
+
35
+ def warnings
36
+ @template.warnings
37
+ end
38
+
39
+ private
40
+
41
+ def measure_bytes
42
+ yield.tap do |str|
43
+ @renderer.increment_bytes(@filename, str.bytesize)
44
+ end
45
+ end
46
+
47
+ def measure_time
48
+ before = Time.now
49
+ yield
50
+ ensure
51
+ after = Time.now
52
+ @renderer.increment_time(@filename, after - before)
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,96 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Jekyll
4
+ class LiquidRenderer::Table
5
+ def initialize(stats)
6
+ @stats = stats
7
+ end
8
+
9
+ def to_s(n = 50)
10
+ data = data_for_table(n)
11
+ widths = table_widths(data)
12
+ generate_table(data, widths)
13
+ end
14
+
15
+ private
16
+
17
+ def generate_table(data, widths)
18
+ str = String.new("\n")
19
+
20
+ table_head = data.shift
21
+ str << generate_row(table_head, widths)
22
+ str << generate_table_head_border(table_head, widths)
23
+
24
+ data.each do |row_data|
25
+ str << generate_row(row_data, widths)
26
+ end
27
+
28
+ str << "\n"
29
+ str
30
+ end
31
+
32
+ def generate_table_head_border(row_data, widths)
33
+ str = String.new("")
34
+
35
+ row_data.each_index do |cell_index|
36
+ str << "-" * widths[cell_index]
37
+ str << "-+-" unless cell_index == row_data.length - 1
38
+ end
39
+
40
+ str << "\n"
41
+ str
42
+ end
43
+
44
+ def generate_row(row_data, widths)
45
+ str = String.new("")
46
+
47
+ row_data.each_with_index do |cell_data, cell_index|
48
+ str << if cell_index.zero?
49
+ cell_data.ljust(widths[cell_index], " ")
50
+ else
51
+ cell_data.rjust(widths[cell_index], " ")
52
+ end
53
+
54
+ str << " | " unless cell_index == row_data.length - 1
55
+ end
56
+
57
+ str << "\n"
58
+ str
59
+ end
60
+
61
+ def table_widths(data)
62
+ widths = []
63
+
64
+ data.each do |row|
65
+ row.each_with_index do |cell, index|
66
+ widths[index] = [ cell.length, widths[index] ].compact.max
67
+ end
68
+ end
69
+
70
+ widths
71
+ end
72
+
73
+ def data_for_table(n)
74
+ sorted = @stats.sort_by { |_, file_stats| -file_stats[:time] }
75
+ sorted = sorted.slice(0, n)
76
+
77
+ table = [%w(Filename Count Bytes Time)]
78
+
79
+ sorted.each do |filename, file_stats|
80
+ row = []
81
+ row << filename
82
+ row << file_stats[:count].to_s
83
+ row << format_bytes(file_stats[:bytes])
84
+ row << format("%.3f", file_stats[:time])
85
+ table << row
86
+ end
87
+
88
+ table
89
+ end
90
+
91
+ def format_bytes(bytes)
92
+ bytes /= 1024.0
93
+ format("%.2fK", bytes)
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,147 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Jekyll
4
+ class LogAdapter
5
+ attr_reader :writer, :messages, :level
6
+
7
+ LOG_LEVELS = {
8
+ :debug => ::Logger::DEBUG,
9
+ :info => ::Logger::INFO,
10
+ :warn => ::Logger::WARN,
11
+ :error => ::Logger::ERROR,
12
+ }.freeze
13
+
14
+ # Public: Create a new instance of a log writer
15
+ #
16
+ # writer - Logger compatible instance
17
+ # log_level - (optional, symbol) the log level
18
+ #
19
+ # Returns nothing
20
+ def initialize(writer, level = :info)
21
+ @messages = []
22
+ @writer = writer
23
+ self.log_level = level
24
+ end
25
+
26
+ # Public: Set the log level on the writer
27
+ #
28
+ # level - (symbol) the log level
29
+ #
30
+ # Returns nothing
31
+ def log_level=(level)
32
+ writer.level = LOG_LEVELS.fetch(level)
33
+ @level = level
34
+ end
35
+
36
+ def adjust_verbosity(options = {})
37
+ # Quiet always wins.
38
+ if options[:quiet]
39
+ self.log_level = :error
40
+ elsif options[:verbose]
41
+ self.log_level = :debug
42
+ end
43
+ debug "Logging at level:", LOG_LEVELS.key(writer.level).to_s
44
+ end
45
+
46
+ # Public: Print a debug message
47
+ #
48
+ # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
49
+ # message - the message detail
50
+ #
51
+ # Returns nothing
52
+ def debug(topic, message = nil, &block)
53
+ write(:debug, topic, message, &block)
54
+ end
55
+
56
+ # Public: Print a message
57
+ #
58
+ # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
59
+ # message - the message detail
60
+ #
61
+ # Returns nothing
62
+ def info(topic, message = nil, &block)
63
+ write(:info, topic, message, &block)
64
+ end
65
+
66
+ # Public: Print a message
67
+ #
68
+ # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
69
+ # message - the message detail
70
+ #
71
+ # Returns nothing
72
+ def warn(topic, message = nil, &block)
73
+ write(:warn, topic, message, &block)
74
+ end
75
+
76
+ # Public: Print an error message
77
+ #
78
+ # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
79
+ # message - the message detail
80
+ #
81
+ # Returns nothing
82
+ def error(topic, message = nil, &block)
83
+ write(:error, topic, message, &block)
84
+ end
85
+
86
+ # Public: Print an error message and immediately abort the process
87
+ #
88
+ # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
89
+ # message - the message detail (can be omitted)
90
+ #
91
+ # Returns nothing
92
+ def abort_with(topic, message = nil, &block)
93
+ error(topic, message, &block)
94
+ abort
95
+ end
96
+
97
+ # Internal: Build a topic method
98
+ #
99
+ # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
100
+ # message - the message detail
101
+ #
102
+ # Returns the formatted message
103
+ def message(topic, message = nil)
104
+ raise ArgumentError, "block or message, not both" if block_given? && message
105
+
106
+ message = yield if block_given?
107
+ message = message.to_s.gsub(%r!\s+!, " ")
108
+ topic = formatted_topic(topic, block_given?)
109
+ out = topic + message
110
+ messages << out
111
+ out
112
+ end
113
+
114
+ # Internal: Format the topic
115
+ #
116
+ # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
117
+ # colon -
118
+ #
119
+ # Returns the formatted topic statement
120
+ def formatted_topic(topic, colon = false)
121
+ "#{topic}#{colon ? ": " : " "}".rjust(20)
122
+ end
123
+
124
+ # Internal: Check if the message should be written given the log level.
125
+ #
126
+ # level_of_message - the Symbol level of message, one of :debug, :info, :warn, :error
127
+ #
128
+ # Returns whether the message should be written.
129
+ def write_message?(level_of_message)
130
+ LOG_LEVELS.fetch(level) <= LOG_LEVELS.fetch(level_of_message)
131
+ end
132
+
133
+ # Internal: Log a message.
134
+ #
135
+ # level_of_message - the Symbol level of message, one of :debug, :info, :warn, :error
136
+ # topic - the String topic or full message
137
+ # message - the String message (optional)
138
+ # block - a block containing the message (optional)
139
+ #
140
+ # Returns false if the message was not written, otherwise returns the value of calling
141
+ # the appropriate writer method, e.g. writer.info.
142
+ def write(level_of_message, topic, message = nil, &block)
143
+ return false unless write_message?(level_of_message)
144
+ writer.public_send(level_of_message, message(topic, message, &block))
145
+ end
146
+ end
147
+ end
@@ -0,0 +1,825 @@
1
+ # Woah there. Do not edit this file directly.
2
+ # This file is generated automatically by script/vendor-mimes.
3
+
4
+ application/andrew-inset ez
5
+ application/applixware aw
6
+ application/atom+xml atom
7
+ application/atomcat+xml atomcat
8
+ application/atomsvc+xml atomsvc
9
+ application/bdoc bdoc
10
+ application/ccxml+xml ccxml
11
+ application/cdmi-capability cdmia
12
+ application/cdmi-container cdmic
13
+ application/cdmi-domain cdmid
14
+ application/cdmi-object cdmio
15
+ application/cdmi-queue cdmiq
16
+ application/cu-seeme cu
17
+ application/dash+xml mpd
18
+ application/davmount+xml davmount
19
+ application/docbook+xml dbk
20
+ application/dssc+der dssc
21
+ application/dssc+xml xdssc
22
+ application/ecmascript ecma
23
+ application/emma+xml emma
24
+ application/epub+zip epub
25
+ application/exi exi
26
+ application/font-tdpfr pfr
27
+ application/font-woff woff
28
+ application/font-woff2 woff2
29
+ application/geo+json geojson
30
+ application/gml+xml gml
31
+ application/gpx+xml gpx
32
+ application/gxf gxf
33
+ application/gzip gz
34
+ application/hyperstudio stk
35
+ application/inkml+xml ink inkml
36
+ application/ipfix ipfix
37
+ application/java-archive jar war ear
38
+ application/java-serialized-object ser
39
+ application/java-vm class
40
+ application/javascript js mjs
41
+ application/json json map
42
+ application/json5 json5
43
+ application/jsonml+json jsonml
44
+ application/ld+json jsonld
45
+ application/lost+xml lostxml
46
+ application/mac-binhex40 hqx
47
+ application/mac-compactpro cpt
48
+ application/mads+xml mads
49
+ application/manifest+json webmanifest
50
+ application/marc mrc
51
+ application/marcxml+xml mrcx
52
+ application/mathematica ma nb mb
53
+ application/mathml+xml mathml
54
+ application/mbox mbox
55
+ application/mediaservercontrol+xml mscml
56
+ application/metalink+xml metalink
57
+ application/metalink4+xml meta4
58
+ application/mets+xml mets
59
+ application/mods+xml mods
60
+ application/mp21 m21 mp21
61
+ application/mp4 mp4s m4p
62
+ application/msword doc dot
63
+ application/mxf mxf
64
+ application/octet-stream bin dms lrf mar so dist distz pkg bpk dump elc deploy exe dll deb dmg iso img msi msp msm buffer
65
+ application/oda oda
66
+ application/oebps-package+xml opf
67
+ application/ogg ogx
68
+ application/omdoc+xml omdoc
69
+ application/onenote onetoc onetoc2 onetmp onepkg
70
+ application/oxps oxps
71
+ application/patch-ops-error+xml xer
72
+ application/pdf pdf
73
+ application/pgp-encrypted pgp
74
+ application/pgp-signature asc sig
75
+ application/pics-rules prf
76
+ application/pkcs10 p10
77
+ application/pkcs7-mime p7m p7c
78
+ application/pkcs7-signature p7s
79
+ application/pkcs8 p8
80
+ application/pkix-attr-cert ac
81
+ application/pkix-cert cer
82
+ application/pkix-crl crl
83
+ application/pkix-pkipath pkipath
84
+ application/pkixcmp pki
85
+ application/pls+xml pls
86
+ application/postscript ai eps ps
87
+ application/prs.cww cww
88
+ application/pskc+xml pskcxml
89
+ application/rdf+xml rdf
90
+ application/reginfo+xml rif
91
+ application/relax-ng-compact-syntax rnc
92
+ application/resource-lists+xml rl
93
+ application/resource-lists-diff+xml rld
94
+ application/rls-services+xml rs
95
+ application/rpki-ghostbusters gbr
96
+ application/rpki-manifest mft
97
+ application/rpki-roa roa
98
+ application/rsd+xml rsd
99
+ application/rss+xml rss
100
+ application/rtf rtf
101
+ application/sbml+xml sbml
102
+ application/scvp-cv-request scq
103
+ application/scvp-cv-response scs
104
+ application/scvp-vp-request spq
105
+ application/scvp-vp-response spp
106
+ application/sdp sdp
107
+ application/set-payment-initiation setpay
108
+ application/set-registration-initiation setreg
109
+ application/shf+xml shf
110
+ application/smil+xml smi smil
111
+ application/sparql-query rq
112
+ application/sparql-results+xml srx
113
+ application/srgs gram
114
+ application/srgs+xml grxml
115
+ application/sru+xml sru
116
+ application/ssdl+xml ssdl
117
+ application/ssml+xml ssml
118
+ application/tei+xml tei teicorpus
119
+ application/thraud+xml tfi
120
+ application/timestamped-data tsd
121
+ application/vnd.3gpp.pic-bw-large plb
122
+ application/vnd.3gpp.pic-bw-small psb
123
+ application/vnd.3gpp.pic-bw-var pvb
124
+ application/vnd.3gpp2.tcap tcap
125
+ application/vnd.3m.post-it-notes pwn
126
+ application/vnd.accpac.simply.aso aso
127
+ application/vnd.accpac.simply.imp imp
128
+ application/vnd.acucobol acu
129
+ application/vnd.acucorp atc acutc
130
+ application/vnd.adobe.air-application-installer-package+zip air
131
+ application/vnd.adobe.formscentral.fcdt fcdt
132
+ application/vnd.adobe.fxp fxp fxpl
133
+ application/vnd.adobe.xdp+xml xdp
134
+ application/vnd.adobe.xfdf xfdf
135
+ application/vnd.ahead.space ahead
136
+ application/vnd.airzip.filesecure.azf azf
137
+ application/vnd.airzip.filesecure.azs azs
138
+ application/vnd.amazon.ebook azw
139
+ application/vnd.americandynamics.acc acc
140
+ application/vnd.amiga.ami ami
141
+ application/vnd.android.package-archive apk
142
+ application/vnd.anser-web-certificate-issue-initiation cii
143
+ application/vnd.anser-web-funds-transfer-initiation fti
144
+ application/vnd.antix.game-component atx
145
+ application/vnd.apple.installer+xml mpkg
146
+ application/vnd.apple.mpegurl m3u8
147
+ application/vnd.apple.pkpass pkpass
148
+ application/vnd.aristanetworks.swi swi
149
+ application/vnd.astraea-software.iota iota
150
+ application/vnd.audiograph aep
151
+ application/vnd.blueice.multipass mpm
152
+ application/vnd.bmi bmi
153
+ application/vnd.businessobjects rep
154
+ application/vnd.chemdraw+xml cdxml
155
+ application/vnd.chipnuts.karaoke-mmd mmd
156
+ application/vnd.cinderella cdy
157
+ application/vnd.claymore cla
158
+ application/vnd.cloanto.rp9 rp9
159
+ application/vnd.clonk.c4group c4g c4d c4f c4p c4u
160
+ application/vnd.cluetrust.cartomobile-config c11amc
161
+ application/vnd.cluetrust.cartomobile-config-pkg c11amz
162
+ application/vnd.commonspace csp
163
+ application/vnd.contact.cmsg cdbcmsg
164
+ application/vnd.cosmocaller cmc
165
+ application/vnd.crick.clicker clkx
166
+ application/vnd.crick.clicker.keyboard clkk
167
+ application/vnd.crick.clicker.palette clkp
168
+ application/vnd.crick.clicker.template clkt
169
+ application/vnd.crick.clicker.wordbank clkw
170
+ application/vnd.criticaltools.wbs+xml wbs
171
+ application/vnd.ctc-posml pml
172
+ application/vnd.cups-ppd ppd
173
+ application/vnd.curl.car car
174
+ application/vnd.curl.pcurl pcurl
175
+ application/vnd.dart dart
176
+ application/vnd.data-vision.rdz rdz
177
+ application/vnd.dece.data uvf uvvf uvd uvvd
178
+ application/vnd.dece.ttml+xml uvt uvvt
179
+ application/vnd.dece.unspecified uvx uvvx
180
+ application/vnd.dece.zip uvz uvvz
181
+ application/vnd.denovo.fcselayout-link fe_launch
182
+ application/vnd.dna dna
183
+ application/vnd.dolby.mlp mlp
184
+ application/vnd.dpgraph dpg
185
+ application/vnd.dreamfactory dfac
186
+ application/vnd.ds-keypoint kpxx
187
+ application/vnd.dvb.ait ait
188
+ application/vnd.dvb.service svc
189
+ application/vnd.dynageo geo
190
+ application/vnd.ecowin.chart mag
191
+ application/vnd.enliven nml
192
+ application/vnd.epson.esf esf
193
+ application/vnd.epson.msf msf
194
+ application/vnd.epson.quickanime qam
195
+ application/vnd.epson.salt slt
196
+ application/vnd.epson.ssf ssf
197
+ application/vnd.eszigno3+xml es3 et3
198
+ application/vnd.ezpix-album ez2
199
+ application/vnd.ezpix-package ez3
200
+ application/vnd.fdf fdf
201
+ application/vnd.fdsn.mseed mseed
202
+ application/vnd.fdsn.seed seed dataless
203
+ application/vnd.flographit gph
204
+ application/vnd.fluxtime.clip ftc
205
+ application/vnd.framemaker fm frame maker book
206
+ application/vnd.frogans.fnc fnc
207
+ application/vnd.frogans.ltf ltf
208
+ application/vnd.fsc.weblaunch fsc
209
+ application/vnd.fujitsu.oasys oas
210
+ application/vnd.fujitsu.oasys2 oa2
211
+ application/vnd.fujitsu.oasys3 oa3
212
+ application/vnd.fujitsu.oasysgp fg5
213
+ application/vnd.fujitsu.oasysprs bh2
214
+ application/vnd.fujixerox.ddd ddd
215
+ application/vnd.fujixerox.docuworks xdw
216
+ application/vnd.fujixerox.docuworks.binder xbd
217
+ application/vnd.fuzzysheet fzs
218
+ application/vnd.genomatix.tuxedo txd
219
+ application/vnd.geogebra.file ggb
220
+ application/vnd.geogebra.tool ggt
221
+ application/vnd.geometry-explorer gex gre
222
+ application/vnd.geonext gxt
223
+ application/vnd.geoplan g2w
224
+ application/vnd.geospace g3w
225
+ application/vnd.gmx gmx
226
+ application/vnd.google-apps.document gdoc
227
+ application/vnd.google-apps.presentation gslides
228
+ application/vnd.google-apps.spreadsheet gsheet
229
+ application/vnd.google-earth.kml+xml kml
230
+ application/vnd.google-earth.kmz kmz
231
+ application/vnd.grafeq gqf gqs
232
+ application/vnd.groove-account gac
233
+ application/vnd.groove-help ghf
234
+ application/vnd.groove-identity-message gim
235
+ application/vnd.groove-injector grv
236
+ application/vnd.groove-tool-message gtm
237
+ application/vnd.groove-tool-template tpl
238
+ application/vnd.groove-vcard vcg
239
+ application/vnd.hal+xml hal
240
+ application/vnd.handheld-entertainment+xml zmm
241
+ application/vnd.hbci hbci
242
+ application/vnd.hhe.lesson-player les
243
+ application/vnd.hp-hpgl hpgl
244
+ application/vnd.hp-hpid hpid
245
+ application/vnd.hp-hps hps
246
+ application/vnd.hp-jlyt jlt
247
+ application/vnd.hp-pcl pcl
248
+ application/vnd.hp-pclxl pclxl
249
+ application/vnd.hydrostatix.sof-data sfd-hdstx
250
+ application/vnd.ibm.minipay mpy
251
+ application/vnd.ibm.modcap afp listafp list3820
252
+ application/vnd.ibm.rights-management irm
253
+ application/vnd.ibm.secure-container sc
254
+ application/vnd.iccprofile icc icm
255
+ application/vnd.igloader igl
256
+ application/vnd.immervision-ivp ivp
257
+ application/vnd.immervision-ivu ivu
258
+ application/vnd.insors.igm igm
259
+ application/vnd.intercon.formnet xpw xpx
260
+ application/vnd.intergeo i2g
261
+ application/vnd.intu.qbo qbo
262
+ application/vnd.intu.qfx qfx
263
+ application/vnd.ipunplugged.rcprofile rcprofile
264
+ application/vnd.irepository.package+xml irp
265
+ application/vnd.is-xpr xpr
266
+ application/vnd.isac.fcs fcs
267
+ application/vnd.jam jam
268
+ application/vnd.jcp.javame.midlet-rms rms
269
+ application/vnd.jisp jisp
270
+ application/vnd.joost.joda-archive joda
271
+ application/vnd.kahootz ktz ktr
272
+ application/vnd.kde.karbon karbon
273
+ application/vnd.kde.kchart chrt
274
+ application/vnd.kde.kformula kfo
275
+ application/vnd.kde.kivio flw
276
+ application/vnd.kde.kontour kon
277
+ application/vnd.kde.kpresenter kpr kpt
278
+ application/vnd.kde.kspread ksp
279
+ application/vnd.kde.kword kwd kwt
280
+ application/vnd.kenameaapp htke
281
+ application/vnd.kidspiration kia
282
+ application/vnd.kinar kne knp
283
+ application/vnd.koan skp skd skt skm
284
+ application/vnd.kodak-descriptor sse
285
+ application/vnd.las.las+xml lasxml
286
+ application/vnd.llamagraphics.life-balance.desktop lbd
287
+ application/vnd.llamagraphics.life-balance.exchange+xml lbe
288
+ application/vnd.lotus-1-2-3 123
289
+ application/vnd.lotus-approach apr
290
+ application/vnd.lotus-freelance pre
291
+ application/vnd.lotus-notes nsf
292
+ application/vnd.lotus-organizer org
293
+ application/vnd.lotus-screencam scm
294
+ application/vnd.lotus-wordpro lwp
295
+ application/vnd.macports.portpkg portpkg
296
+ application/vnd.mcd mcd
297
+ application/vnd.medcalcdata mc1
298
+ application/vnd.mediastation.cdkey cdkey
299
+ application/vnd.mfer mwf
300
+ application/vnd.mfmp mfm
301
+ application/vnd.micrografx.flo flo
302
+ application/vnd.micrografx.igx igx
303
+ application/vnd.mif mif
304
+ application/vnd.mobius.daf daf
305
+ application/vnd.mobius.dis dis
306
+ application/vnd.mobius.mbk mbk
307
+ application/vnd.mobius.mqy mqy
308
+ application/vnd.mobius.msl msl
309
+ application/vnd.mobius.plc plc
310
+ application/vnd.mobius.txf txf
311
+ application/vnd.mophun.application mpn
312
+ application/vnd.mophun.certificate mpc
313
+ application/vnd.mozilla.xul+xml xul
314
+ application/vnd.ms-artgalry cil
315
+ application/vnd.ms-cab-compressed cab
316
+ application/vnd.ms-excel xls xlm xla xlc xlt xlw
317
+ application/vnd.ms-excel.addin.macroenabled.12 xlam
318
+ application/vnd.ms-excel.sheet.binary.macroenabled.12 xlsb
319
+ application/vnd.ms-excel.sheet.macroenabled.12 xlsm
320
+ application/vnd.ms-excel.template.macroenabled.12 xltm
321
+ application/vnd.ms-fontobject eot
322
+ application/vnd.ms-htmlhelp chm
323
+ application/vnd.ms-ims ims
324
+ application/vnd.ms-lrm lrm
325
+ application/vnd.ms-officetheme thmx
326
+ application/vnd.ms-outlook msg
327
+ application/vnd.ms-pki.seccat cat
328
+ application/vnd.ms-pki.stl stl
329
+ application/vnd.ms-powerpoint ppt pps pot
330
+ application/vnd.ms-powerpoint.addin.macroenabled.12 ppam
331
+ application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm
332
+ application/vnd.ms-powerpoint.slide.macroenabled.12 sldm
333
+ application/vnd.ms-powerpoint.slideshow.macroenabled.12 ppsm
334
+ application/vnd.ms-powerpoint.template.macroenabled.12 potm
335
+ application/vnd.ms-project mpp mpt
336
+ application/vnd.ms-word.document.macroenabled.12 docm
337
+ application/vnd.ms-word.template.macroenabled.12 dotm
338
+ application/vnd.ms-works wps wks wcm wdb
339
+ application/vnd.ms-wpl wpl
340
+ application/vnd.ms-xpsdocument xps
341
+ application/vnd.mseq mseq
342
+ application/vnd.musician mus
343
+ application/vnd.muvee.style msty
344
+ application/vnd.mynfc taglet
345
+ application/vnd.neurolanguage.nlu nlu
346
+ application/vnd.nitf ntf nitf
347
+ application/vnd.noblenet-directory nnd
348
+ application/vnd.noblenet-sealer nns
349
+ application/vnd.noblenet-web nnw
350
+ application/vnd.nokia.n-gage.data ngdat
351
+ application/vnd.nokia.n-gage.symbian.install n-gage
352
+ application/vnd.nokia.radio-preset rpst
353
+ application/vnd.nokia.radio-presets rpss
354
+ application/vnd.novadigm.edm edm
355
+ application/vnd.novadigm.edx edx
356
+ application/vnd.novadigm.ext ext
357
+ application/vnd.oasis.opendocument.chart odc
358
+ application/vnd.oasis.opendocument.chart-template otc
359
+ application/vnd.oasis.opendocument.database odb
360
+ application/vnd.oasis.opendocument.formula odf
361
+ application/vnd.oasis.opendocument.formula-template odft
362
+ application/vnd.oasis.opendocument.graphics odg
363
+ application/vnd.oasis.opendocument.graphics-template otg
364
+ application/vnd.oasis.opendocument.image odi
365
+ application/vnd.oasis.opendocument.image-template oti
366
+ application/vnd.oasis.opendocument.presentation odp
367
+ application/vnd.oasis.opendocument.presentation-template otp
368
+ application/vnd.oasis.opendocument.spreadsheet ods
369
+ application/vnd.oasis.opendocument.spreadsheet-template ots
370
+ application/vnd.oasis.opendocument.text odt
371
+ application/vnd.oasis.opendocument.text-master odm
372
+ application/vnd.oasis.opendocument.text-template ott
373
+ application/vnd.oasis.opendocument.text-web oth
374
+ application/vnd.olpc-sugar xo
375
+ application/vnd.oma.dd2+xml dd2
376
+ application/vnd.openofficeorg.extension oxt
377
+ application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
378
+ application/vnd.openxmlformats-officedocument.presentationml.slide sldx
379
+ application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
380
+ application/vnd.openxmlformats-officedocument.presentationml.template potx
381
+ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
382
+ application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
383
+ application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
384
+ application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
385
+ application/vnd.osgeo.mapguide.package mgp
386
+ application/vnd.osgi.dp dp
387
+ application/vnd.osgi.subsystem esa
388
+ application/vnd.palm pdb pqa oprc
389
+ application/vnd.pawaafile paw
390
+ application/vnd.pg.format str
391
+ application/vnd.pg.osasli ei6
392
+ application/vnd.picsel efif
393
+ application/vnd.pmi.widget wg
394
+ application/vnd.pocketlearn plf
395
+ application/vnd.powerbuilder6 pbd
396
+ application/vnd.previewsystems.box box
397
+ application/vnd.proteus.magazine mgz
398
+ application/vnd.publishare-delta-tree qps
399
+ application/vnd.pvi.ptid1 ptid
400
+ application/vnd.quark.quarkxpress qxd qxt qwd qwt qxl qxb
401
+ application/vnd.realvnc.bed bed
402
+ application/vnd.recordare.musicxml mxl
403
+ application/vnd.recordare.musicxml+xml musicxml
404
+ application/vnd.rig.cryptonote cryptonote
405
+ application/vnd.rim.cod cod
406
+ application/vnd.rn-realmedia rm
407
+ application/vnd.rn-realmedia-vbr rmvb
408
+ application/vnd.route66.link66+xml link66
409
+ application/vnd.sailingtracker.track st
410
+ application/vnd.seemail see
411
+ application/vnd.sema sema
412
+ application/vnd.semd semd
413
+ application/vnd.semf semf
414
+ application/vnd.shana.informed.formdata ifm
415
+ application/vnd.shana.informed.formtemplate itp
416
+ application/vnd.shana.informed.interchange iif
417
+ application/vnd.shana.informed.package ipk
418
+ application/vnd.simtech-mindmapper twd twds
419
+ application/vnd.smaf mmf
420
+ application/vnd.smart.teacher teacher
421
+ application/vnd.solent.sdkm+xml sdkm sdkd
422
+ application/vnd.spotfire.dxp dxp
423
+ application/vnd.spotfire.sfs sfs
424
+ application/vnd.stardivision.calc sdc
425
+ application/vnd.stardivision.draw sda
426
+ application/vnd.stardivision.impress sdd
427
+ application/vnd.stardivision.math smf
428
+ application/vnd.stardivision.writer sdw vor
429
+ application/vnd.stardivision.writer-global sgl
430
+ application/vnd.stepmania.package smzip
431
+ application/vnd.stepmania.stepchart sm
432
+ application/vnd.sun.wadl+xml wadl
433
+ application/vnd.sun.xml.calc sxc
434
+ application/vnd.sun.xml.calc.template stc
435
+ application/vnd.sun.xml.draw sxd
436
+ application/vnd.sun.xml.draw.template std
437
+ application/vnd.sun.xml.impress sxi
438
+ application/vnd.sun.xml.impress.template sti
439
+ application/vnd.sun.xml.math sxm
440
+ application/vnd.sun.xml.writer sxw
441
+ application/vnd.sun.xml.writer.global sxg
442
+ application/vnd.sun.xml.writer.template stw
443
+ application/vnd.sus-calendar sus susp
444
+ application/vnd.svd svd
445
+ application/vnd.symbian.install sis sisx
446
+ application/vnd.syncml+xml xsm
447
+ application/vnd.syncml.dm+wbxml bdm
448
+ application/vnd.syncml.dm+xml xdm
449
+ application/vnd.tao.intent-module-archive tao
450
+ application/vnd.tcpdump.pcap pcap cap dmp
451
+ application/vnd.tmobile-livetv tmo
452
+ application/vnd.trid.tpt tpt
453
+ application/vnd.triscape.mxs mxs
454
+ application/vnd.trueapp tra
455
+ application/vnd.ufdl ufd ufdl
456
+ application/vnd.uiq.theme utz
457
+ application/vnd.umajin umj
458
+ application/vnd.unity unityweb
459
+ application/vnd.uoml+xml uoml
460
+ application/vnd.vcx vcx
461
+ application/vnd.visio vsd vst vss vsw
462
+ application/vnd.visionary vis
463
+ application/vnd.vsf vsf
464
+ application/vnd.wap.wbxml wbxml
465
+ application/vnd.wap.wmlc wmlc
466
+ application/vnd.wap.wmlscriptc wmlsc
467
+ application/vnd.webturbo wtb
468
+ application/vnd.wolfram.player nbp
469
+ application/vnd.wordperfect wpd
470
+ application/vnd.wqd wqd
471
+ application/vnd.wt.stf stf
472
+ application/vnd.xara xar
473
+ application/vnd.xfdl xfdl
474
+ application/vnd.yamaha.hv-dic hvd
475
+ application/vnd.yamaha.hv-script hvs
476
+ application/vnd.yamaha.hv-voice hvp
477
+ application/vnd.yamaha.openscoreformat osf
478
+ application/vnd.yamaha.openscoreformat.osfpvg+xml osfpvg
479
+ application/vnd.yamaha.smaf-audio saf
480
+ application/vnd.yamaha.smaf-phrase spf
481
+ application/vnd.yellowriver-custom-menu cmp
482
+ application/vnd.zul zir zirz
483
+ application/vnd.zzazz.deck+xml zaz
484
+ application/voicexml+xml vxml
485
+ application/widget wgt
486
+ application/winhlp hlp
487
+ application/wsdl+xml wsdl
488
+ application/wspolicy+xml wspolicy
489
+ application/x-7z-compressed 7z
490
+ application/x-abiword abw
491
+ application/x-ace-compressed ace
492
+ application/x-arj arj
493
+ application/x-authorware-bin aab x32 u32 vox
494
+ application/x-authorware-map aam
495
+ application/x-authorware-seg aas
496
+ application/x-bcpio bcpio
497
+ application/x-bittorrent torrent
498
+ application/x-blorb blb blorb
499
+ application/x-bzip bz
500
+ application/x-bzip2 bz2 boz
501
+ application/x-cbr cbr cba cbt cbz cb7
502
+ application/x-cdlink vcd
503
+ application/x-cfs-compressed cfs
504
+ application/x-chat chat
505
+ application/x-chess-pgn pgn
506
+ application/x-chrome-extension crx
507
+ application/x-cocoa cco
508
+ application/x-conference nsc
509
+ application/x-cpio cpio
510
+ application/x-csh csh
511
+ application/x-debian-package udeb
512
+ application/x-dgc-compressed dgc
513
+ application/x-director dir dcr dxr cst cct cxt w3d fgd swa
514
+ application/x-doom wad
515
+ application/x-dtbncx+xml ncx
516
+ application/x-dtbook+xml dtb
517
+ application/x-dtbresource+xml res
518
+ application/x-dvi dvi
519
+ application/x-envoy evy
520
+ application/x-eva eva
521
+ application/x-font-bdf bdf
522
+ application/x-font-ghostscript gsf
523
+ application/x-font-linux-psf psf
524
+ application/x-font-otf otf
525
+ application/x-font-pcf pcf
526
+ application/x-font-snf snf
527
+ application/x-font-ttf ttf ttc
528
+ application/x-font-type1 pfa pfb pfm afm
529
+ application/x-freearc arc
530
+ application/x-futuresplash spl
531
+ application/x-gca-compressed gca
532
+ application/x-glulx ulx
533
+ application/x-gnumeric gnumeric
534
+ application/x-gramps-xml gramps
535
+ application/x-gtar gtar
536
+ application/x-hdf hdf
537
+ application/x-httpd-php php
538
+ application/x-install-instructions install
539
+ application/x-java-archive-diff jardiff
540
+ application/x-java-jnlp-file jnlp
541
+ application/x-latex latex
542
+ application/x-lua-bytecode luac
543
+ application/x-lzh-compressed lzh lha
544
+ application/x-makeself run
545
+ application/x-mie mie
546
+ application/x-mobipocket-ebook prc mobi
547
+ application/x-ms-application application
548
+ application/x-ms-shortcut lnk
549
+ application/x-ms-wmd wmd
550
+ application/x-ms-wmz wmz
551
+ application/x-ms-xbap xbap
552
+ application/x-msaccess mdb
553
+ application/x-msbinder obd
554
+ application/x-mscardfile crd
555
+ application/x-msclip clp
556
+ application/x-msdownload com bat
557
+ application/x-msmediaview mvb m13 m14
558
+ application/x-msmetafile wmf emf emz
559
+ application/x-msmoney mny
560
+ application/x-mspublisher pub
561
+ application/x-msschedule scd
562
+ application/x-msterminal trm
563
+ application/x-mswrite wri
564
+ application/x-netcdf nc cdf
565
+ application/x-ns-proxy-autoconfig pac
566
+ application/x-nzb nzb
567
+ application/x-perl pl pm
568
+ application/x-pkcs12 p12 pfx
569
+ application/x-pkcs7-certificates p7b spc
570
+ application/x-pkcs7-certreqresp p7r
571
+ application/x-rar-compressed rar
572
+ application/x-redhat-package-manager rpm
573
+ application/x-research-info-systems ris
574
+ application/x-sea sea
575
+ application/x-sh sh
576
+ application/x-shar shar
577
+ application/x-shockwave-flash swf
578
+ application/x-silverlight-app xap
579
+ application/x-sql sql
580
+ application/x-stuffit sit
581
+ application/x-stuffitx sitx
582
+ application/x-subrip srt
583
+ application/x-sv4cpio sv4cpio
584
+ application/x-sv4crc sv4crc
585
+ application/x-t3vm-image t3
586
+ application/x-tads gam
587
+ application/x-tar tar
588
+ application/x-tcl tcl tk
589
+ application/x-tex tex
590
+ application/x-tex-tfm tfm
591
+ application/x-texinfo texinfo texi
592
+ application/x-tgif obj
593
+ application/x-ustar ustar
594
+ application/x-virtualbox-hdd hdd
595
+ application/x-virtualbox-ova ova
596
+ application/x-virtualbox-ovf ovf
597
+ application/x-virtualbox-vbox vbox
598
+ application/x-virtualbox-vbox-extpack vbox-extpack
599
+ application/x-virtualbox-vdi vdi
600
+ application/x-virtualbox-vhd vhd
601
+ application/x-virtualbox-vmdk vmdk
602
+ application/x-wais-source src
603
+ application/x-web-app-manifest+json webapp
604
+ application/x-x509-ca-cert der crt pem
605
+ application/x-xfig fig
606
+ application/x-xliff+xml xlf
607
+ application/x-xpinstall xpi
608
+ application/x-xz xz
609
+ application/x-zmachine z1 z2 z3 z4 z5 z6 z7 z8
610
+ application/xaml+xml xaml
611
+ application/xcap-diff+xml xdf
612
+ application/xenc+xml xenc
613
+ application/xhtml+xml xhtml xht
614
+ application/xml xml xsl xsd rng
615
+ application/xml-dtd dtd
616
+ application/xop+xml xop
617
+ application/xproc+xml xpl
618
+ application/xslt+xml xslt
619
+ application/xspf+xml xspf
620
+ application/xv+xml mxml xhvml xvml xvm
621
+ application/yang yang
622
+ application/yin+xml yin
623
+ application/zip zip
624
+ audio/3gpp 3gpp
625
+ audio/adpcm adp
626
+ audio/basic au snd
627
+ audio/midi mid midi kar rmi
628
+ audio/mp3 mp3
629
+ audio/mp4 m4a mp4a
630
+ audio/mpeg mpga mp2 mp2a m2a m3a
631
+ audio/ogg oga ogg spx
632
+ audio/s3m s3m
633
+ audio/silk sil
634
+ audio/vnd.dece.audio uva uvva
635
+ audio/vnd.digital-winds eol
636
+ audio/vnd.dra dra
637
+ audio/vnd.dts dts
638
+ audio/vnd.dts.hd dtshd
639
+ audio/vnd.lucent.voice lvp
640
+ audio/vnd.ms-playready.media.pya pya
641
+ audio/vnd.nuera.ecelp4800 ecelp4800
642
+ audio/vnd.nuera.ecelp7470 ecelp7470
643
+ audio/vnd.nuera.ecelp9600 ecelp9600
644
+ audio/vnd.rip rip
645
+ audio/wav wav
646
+ audio/webm weba
647
+ audio/x-aac aac
648
+ audio/x-aiff aif aiff aifc
649
+ audio/x-caf caf
650
+ audio/x-flac flac
651
+ audio/x-matroska mka
652
+ audio/x-mpegurl m3u
653
+ audio/x-ms-wax wax
654
+ audio/x-ms-wma wma
655
+ audio/x-pn-realaudio ram ra
656
+ audio/x-pn-realaudio-plugin rmp
657
+ audio/xm xm
658
+ chemical/x-cdx cdx
659
+ chemical/x-cif cif
660
+ chemical/x-cmdf cmdf
661
+ chemical/x-cml cml
662
+ chemical/x-csml csml
663
+ chemical/x-xyz xyz
664
+ image/apng apng
665
+ image/bmp bmp
666
+ image/cgm cgm
667
+ image/g3fax g3
668
+ image/gif gif
669
+ image/ief ief
670
+ image/jpeg jpeg jpg jpe
671
+ image/ktx ktx
672
+ image/png png
673
+ image/prs.btif btif
674
+ image/sgi sgi
675
+ image/svg+xml svg svgz
676
+ image/tiff tiff tif
677
+ image/vnd.adobe.photoshop psd
678
+ image/vnd.dece.graphic uvi uvvi uvg uvvg
679
+ image/vnd.djvu djvu djv
680
+ image/vnd.dvb.subtitle sub
681
+ image/vnd.dwg dwg
682
+ image/vnd.dxf dxf
683
+ image/vnd.fastbidsheet fbs
684
+ image/vnd.fpx fpx
685
+ image/vnd.fst fst
686
+ image/vnd.fujixerox.edmics-mmr mmr
687
+ image/vnd.fujixerox.edmics-rlc rlc
688
+ image/vnd.ms-modi mdi
689
+ image/vnd.ms-photo wdp
690
+ image/vnd.net-fpx npx
691
+ image/vnd.wap.wbmp wbmp
692
+ image/vnd.xiff xif
693
+ image/webp webp
694
+ image/x-3ds 3ds
695
+ image/x-cmu-raster ras
696
+ image/x-cmx cmx
697
+ image/x-freehand fh fhc fh4 fh5 fh7
698
+ image/x-icon ico
699
+ image/x-jng jng
700
+ image/x-mrsid-image sid
701
+ image/x-pcx pcx
702
+ image/x-pict pic pct
703
+ image/x-portable-anymap pnm
704
+ image/x-portable-bitmap pbm
705
+ image/x-portable-graymap pgm
706
+ image/x-portable-pixmap ppm
707
+ image/x-rgb rgb
708
+ image/x-tga tga
709
+ image/x-xbitmap xbm
710
+ image/x-xpixmap xpm
711
+ image/x-xwindowdump xwd
712
+ message/rfc822 eml mime
713
+ model/gltf+json gltf
714
+ model/gltf-binary glb
715
+ model/iges igs iges
716
+ model/mesh msh mesh silo
717
+ model/vnd.collada+xml dae
718
+ model/vnd.dwf dwf
719
+ model/vnd.gdl gdl
720
+ model/vnd.gtw gtw
721
+ model/vnd.mts mts
722
+ model/vnd.vtu vtu
723
+ model/vrml wrl vrml
724
+ model/x3d+binary x3db x3dbz
725
+ model/x3d+vrml x3dv x3dvz
726
+ model/x3d+xml x3d x3dz
727
+ text/cache-manifest appcache manifest
728
+ text/calendar ics ifb
729
+ text/coffeescript coffee litcoffee
730
+ text/css css
731
+ text/csv csv
732
+ text/hjson hjson
733
+ text/html html htm shtml
734
+ text/jade jade
735
+ text/jsx jsx
736
+ text/less less
737
+ text/markdown markdown md
738
+ text/mathml mml
739
+ text/n3 n3
740
+ text/plain txt text conf def list log in ini
741
+ text/prs.lines.tag dsc
742
+ text/richtext rtx
743
+ text/sgml sgml sgm
744
+ text/slim slim slm
745
+ text/stylus stylus styl
746
+ text/tab-separated-values tsv
747
+ text/troff t tr roff man me ms
748
+ text/turtle ttl
749
+ text/uri-list uri uris urls
750
+ text/vcard vcard
751
+ text/vnd.curl curl
752
+ text/vnd.curl.dcurl dcurl
753
+ text/vnd.curl.mcurl mcurl
754
+ text/vnd.curl.scurl scurl
755
+ text/vnd.fly fly
756
+ text/vnd.fmi.flexstor flx
757
+ text/vnd.graphviz gv
758
+ text/vnd.in3d.3dml 3dml
759
+ text/vnd.in3d.spot spot
760
+ text/vnd.sun.j2me.app-descriptor jad
761
+ text/vnd.wap.wml wml
762
+ text/vnd.wap.wmlscript wmls
763
+ text/vtt vtt
764
+ text/x-asm s asm
765
+ text/x-c c cc cxx cpp h hh dic
766
+ text/x-component htc
767
+ text/x-fortran f for f77 f90
768
+ text/x-handlebars-template hbs
769
+ text/x-java-source java
770
+ text/x-lua lua
771
+ text/x-markdown mkd
772
+ text/x-nfo nfo
773
+ text/x-opml opml
774
+ text/x-pascal p pas
775
+ text/x-processing pde
776
+ text/x-sass sass
777
+ text/x-scss scss
778
+ text/x-setext etx
779
+ text/x-sfv sfv
780
+ text/x-suse-ymp ymp
781
+ text/x-uuencode uu
782
+ text/x-vcalendar vcs
783
+ text/x-vcard vcf
784
+ text/yaml yaml yml
785
+ video/3gpp 3gp
786
+ video/3gpp2 3g2
787
+ video/h261 h261
788
+ video/h263 h263
789
+ video/h264 h264
790
+ video/jpeg jpgv
791
+ video/jpm jpm jpgm
792
+ video/mj2 mj2 mjp2
793
+ video/mp2t ts
794
+ video/mp4 mp4 mp4v mpg4
795
+ video/mpeg mpeg mpg mpe m1v m2v
796
+ video/ogg ogv
797
+ video/quicktime qt mov
798
+ video/vnd.dece.hd uvh uvvh
799
+ video/vnd.dece.mobile uvm uvvm
800
+ video/vnd.dece.pd uvp uvvp
801
+ video/vnd.dece.sd uvs uvvs
802
+ video/vnd.dece.video uvv uvvv
803
+ video/vnd.dvb.file dvb
804
+ video/vnd.fvt fvt
805
+ video/vnd.mpegurl mxu m4u
806
+ video/vnd.ms-playready.media.pyv pyv
807
+ video/vnd.uvvu.mp4 uvu uvvu
808
+ video/vnd.vivo viv
809
+ video/webm webm
810
+ video/x-f4v f4v
811
+ video/x-fli fli
812
+ video/x-flv flv
813
+ video/x-m4v m4v
814
+ video/x-matroska mkv mk3d mks
815
+ video/x-mng mng
816
+ video/x-ms-asf asf asx
817
+ video/x-ms-vob vob
818
+ video/x-ms-wm wm
819
+ video/x-ms-wmv wmv
820
+ video/x-ms-wmx wmx
821
+ video/x-ms-wvx wvx
822
+ video/x-msvideo avi
823
+ video/x-sgi-movie movie
824
+ video/x-smv smv
825
+ x-conference/x-cooltalk ice