maildown 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '01758860c9ca7fca23b95b27bd10a98976b52c325c0e34ad296af871b9bdc3ba'
4
- data.tar.gz: 14169956b1e4ca0f9cafb55b89785d4ba30e61e331f880fe32207434f6e30980
3
+ metadata.gz: 15216b9c3c117a02eb4b24b3f5c691054ce4303e2b46a86c19a05f712efc4bb6
4
+ data.tar.gz: 99bb1b84ac4125e38c96a257f9261270dd2fa35f118df07193c634bdac386823
5
5
  SHA512:
6
- metadata.gz: aed376205a32a77f541cf38f76f688442b32a973f0e6347c89f8f563df710018e8c7b95f6a9be5abd1cf913a0eaa1c81d62866a5674375a0e96c1cc590ed68a9
7
- data.tar.gz: 479863668fba294112810de76285007380749d8d82b6f35c3cb19b2cb7447f0ddf7d1a10bfe470eb35b3f7c783b7e6f0293b04de1537c9dc5ed16b70bd3d3039
6
+ metadata.gz: 34ec1dbcab97af0f7aa50603ddc113df11c9f8b4eccf42095193e038ac2b427aac44cfcc023842d18b6070487d007ca4dbe0a34875687a6ac271efdbf5a5832a
7
+ data.tar.gz: 86c864b03330f577406737517a5bd15afdb4cf496d2d07dafbc897b19047030ff9d1d8641ac176b365f8a9162717246060a3b39192eef2ca687a6cbd1b17f101
@@ -49,7 +49,7 @@ module Maildown
49
49
  end
50
50
 
51
51
  def self.default_html_block
52
- ->(string) { Kramdown::Document.new(string).to_html }
52
+ ->(string) { Kramdown::Document.new(string, input: "GFM").to_html }
53
53
  end
54
54
 
55
55
  def self.default_text_block
@@ -1,3 +1,3 @@
1
1
  module Maildown
2
- VERSION = "3.1.0"
2
+ VERSION = "3.2.0"
3
3
  end
@@ -30185,3 +30185,12 @@ Content-Transfer-Encoding: 7bit
30185
30185
 
30186
30186
  ----==_mimepart_5d95153d9e01a_1d8b3ff85f83c01023436--
30187
30187
 
30188
+ --------------------------------------------------
30189
+ MarkdownEngineTest: test_handles_code_fences_(GFM)
30190
+ --------------------------------------------------
30191
+ --------------------------------------------------
30192
+ MarkdownEngineTest: test_handles_code_fences_(GFM)
30193
+ --------------------------------------------------
30194
+ --------------------------------------------------
30195
+ MarkdownEngineTest: test_handles_code_fences_(GFM)
30196
+ --------------------------------------------------
@@ -3,7 +3,7 @@ ENV["RAILS_ENV"] = "test"
3
3
 
4
4
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
5
  require "rails/test_help"
6
- require "kramdown"
6
+ require "kramdown-parser-gfm"
7
7
 
8
8
  Rails.backtrace_cleaner.remove_silencers!
9
9
 
@@ -34,4 +34,11 @@ class MarkdownEngineTest < ActiveSupport::TestCase
34
34
  end
35
35
  thread.join
36
36
  end
37
+
38
+ test "handles code fences (GFM)" do
39
+ markdown = "```\nbar\n```"
40
+
41
+ actual = Maildown::MarkdownEngine.to_html(markdown)
42
+ assert_equal "<pre><code>bar\n</code></pre>\n", actual
43
+ end
37
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maildown
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - schneems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-02 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: kramdown
28
+ name: kramdown-parser-gfm
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: m
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: sqlite3
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -188,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
202
  - !ruby/object:Gem::Version
189
203
  version: '0'
190
204
  requirements: []
191
- rubygems_version: 3.0.3
205
+ rubygems_version: 3.1.2
192
206
  signing_key:
193
207
  specification_version: 4
194
208
  summary: Markdown in your mailbox