markdown_views 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82d69e29bd99ca8edec88eddfb8703b06caf81a348fe9b971a021eba28011f40
4
- data.tar.gz: 6f641457f1476765f1b44d0b426aba749dbd7f8f5905f96016cd3793bc48d372
3
+ metadata.gz: 55a7ec03821992c795ccafbc8b5a3f1a3238f9e4ab1a5943736f965fd86c6a4a
4
+ data.tar.gz: 72c7c2e36aef811e85b70408653aad41a5db36ac889833eb8e25d8713d74f836
5
5
  SHA512:
6
- metadata.gz: '030611799d4e21aa2a2b74b7db00071c45d731c492d492cdd3b6a648a1ad625b7eb12d396cee82f38b30e5ab4631bc809ff7f86b99868d610dda82aa9fa063d5'
7
- data.tar.gz: 2a6df42fd00278c2e92b2e049f7f4e03fd4089050fce90f36bded628b7e1b051ec51e668ee1873c59d90a0b2e29fac5d987bcfb025ebadd55282f88061895f82
6
+ metadata.gz: 825776abcf2dc6683c40e547e8c2bdd108de867aa9b1fa03a1cdb0d46da4eda829b22c591c7ca50269010845018bfba5e1fc4ca306bc1d739cb52fd38f4b3147
7
+ data.tar.gz: 69e97ca30cb0228c3b322a414658abdf5c9a3c46f25b887e01ad47a320f63de30cdfa9497e2d55f8c01cdcf3f7cb126e490fc42a982f8ea734e68ed65eca9e7d
data/Gemfile.lock CHANGED
@@ -1,75 +1,74 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdown_views (3.0.0)
5
- commonmarker (~> 1.1)
6
- rails (>= 6.1, < 8.1)
4
+ markdown_views (3.2.0)
5
+ commonmarker (>= 1.1, < 3.0)
6
+ rails (>= 6.1)
7
7
  rouge (~> 4)
8
8
  securerandom
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (7.2.2)
14
- actionpack (= 7.2.2)
15
- activesupport (= 7.2.2)
13
+ actioncable (8.0.2.1)
14
+ actionpack (= 8.0.2.1)
15
+ activesupport (= 8.0.2.1)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
18
  zeitwerk (~> 2.6)
19
- actionmailbox (7.2.2)
20
- actionpack (= 7.2.2)
21
- activejob (= 7.2.2)
22
- activerecord (= 7.2.2)
23
- activestorage (= 7.2.2)
24
- activesupport (= 7.2.2)
19
+ actionmailbox (8.0.2.1)
20
+ actionpack (= 8.0.2.1)
21
+ activejob (= 8.0.2.1)
22
+ activerecord (= 8.0.2.1)
23
+ activestorage (= 8.0.2.1)
24
+ activesupport (= 8.0.2.1)
25
25
  mail (>= 2.8.0)
26
- actionmailer (7.2.2)
27
- actionpack (= 7.2.2)
28
- actionview (= 7.2.2)
29
- activejob (= 7.2.2)
30
- activesupport (= 7.2.2)
26
+ actionmailer (8.0.2.1)
27
+ actionpack (= 8.0.2.1)
28
+ actionview (= 8.0.2.1)
29
+ activejob (= 8.0.2.1)
30
+ activesupport (= 8.0.2.1)
31
31
  mail (>= 2.8.0)
32
32
  rails-dom-testing (~> 2.2)
33
- actionpack (7.2.2)
34
- actionview (= 7.2.2)
35
- activesupport (= 7.2.2)
33
+ actionpack (8.0.2.1)
34
+ actionview (= 8.0.2.1)
35
+ activesupport (= 8.0.2.1)
36
36
  nokogiri (>= 1.8.5)
37
- racc
38
- rack (>= 2.2.4, < 3.2)
37
+ rack (>= 2.2.4)
39
38
  rack-session (>= 1.0.1)
40
39
  rack-test (>= 0.6.3)
41
40
  rails-dom-testing (~> 2.2)
42
41
  rails-html-sanitizer (~> 1.6)
43
42
  useragent (~> 0.16)
44
- actiontext (7.2.2)
45
- actionpack (= 7.2.2)
46
- activerecord (= 7.2.2)
47
- activestorage (= 7.2.2)
48
- activesupport (= 7.2.2)
43
+ actiontext (8.0.2.1)
44
+ actionpack (= 8.0.2.1)
45
+ activerecord (= 8.0.2.1)
46
+ activestorage (= 8.0.2.1)
47
+ activesupport (= 8.0.2.1)
49
48
  globalid (>= 0.6.0)
50
49
  nokogiri (>= 1.8.5)
51
- actionview (7.2.2)
52
- activesupport (= 7.2.2)
50
+ actionview (8.0.2.1)
51
+ activesupport (= 8.0.2.1)
53
52
  builder (~> 3.1)
54
53
  erubi (~> 1.11)
55
54
  rails-dom-testing (~> 2.2)
56
55
  rails-html-sanitizer (~> 1.6)
57
- activejob (7.2.2)
58
- activesupport (= 7.2.2)
56
+ activejob (8.0.2.1)
57
+ activesupport (= 8.0.2.1)
59
58
  globalid (>= 0.3.6)
60
- activemodel (7.2.2)
61
- activesupport (= 7.2.2)
62
- activerecord (7.2.2)
63
- activemodel (= 7.2.2)
64
- activesupport (= 7.2.2)
59
+ activemodel (8.0.2.1)
60
+ activesupport (= 8.0.2.1)
61
+ activerecord (8.0.2.1)
62
+ activemodel (= 8.0.2.1)
63
+ activesupport (= 8.0.2.1)
65
64
  timeout (>= 0.4.0)
66
- activestorage (7.2.2)
67
- actionpack (= 7.2.2)
68
- activejob (= 7.2.2)
69
- activerecord (= 7.2.2)
70
- activesupport (= 7.2.2)
65
+ activestorage (8.0.2.1)
66
+ actionpack (= 8.0.2.1)
67
+ activejob (= 8.0.2.1)
68
+ activerecord (= 8.0.2.1)
69
+ activesupport (= 8.0.2.1)
71
70
  marcel (~> 1.0)
72
- activesupport (7.2.2)
71
+ activesupport (8.0.2.1)
73
72
  base64
74
73
  benchmark (>= 0.3)
75
74
  bigdecimal
@@ -81,29 +80,32 @@ GEM
81
80
  minitest (>= 5.1)
82
81
  securerandom (>= 0.3)
83
82
  tzinfo (~> 2.0, >= 2.0.5)
83
+ uri (>= 0.13.1)
84
84
  ansi (1.5.0)
85
- base64 (0.2.0)
86
- benchmark (0.3.0)
87
- bigdecimal (3.1.8)
85
+ base64 (0.3.0)
86
+ benchmark (0.4.1)
87
+ bigdecimal (3.2.2)
88
88
  builder (3.3.0)
89
- commonmarker (1.1.5)
89
+ commonmarker (2.3.2)
90
90
  rb_sys (~> 0.9)
91
- concurrent-ruby (1.3.4)
92
- connection_pool (2.4.1)
91
+ concurrent-ruby (1.3.5)
92
+ connection_pool (2.5.3)
93
93
  crass (1.0.6)
94
- date (3.4.0)
95
- drb (2.2.1)
96
- erubi (1.13.0)
94
+ date (3.4.1)
95
+ drb (2.2.3)
96
+ erb (5.0.2)
97
+ erubi (1.13.1)
97
98
  globalid (1.2.1)
98
99
  activesupport (>= 6.1)
99
- i18n (1.14.6)
100
+ i18n (1.14.7)
100
101
  concurrent-ruby (~> 1.0)
101
- io-console (0.7.2)
102
- irb (1.14.1)
102
+ io-console (0.8.1)
103
+ irb (1.15.2)
104
+ pp (>= 0.6.0)
103
105
  rdoc (>= 4.0.0)
104
106
  reline (>= 0.4.2)
105
- logger (1.6.1)
106
- loofah (2.23.1)
107
+ logger (1.7.0)
108
+ loofah (2.24.1)
107
109
  crass (~> 1.0.2)
108
110
  nokogiri (>= 1.12.0)
109
111
  mail (2.8.1)
@@ -113,83 +115,94 @@ GEM
113
115
  net-smtp
114
116
  marcel (1.0.4)
115
117
  mini_mime (1.1.5)
116
- mini_portile2 (2.8.7)
117
- minitest (5.25.1)
118
+ mini_portile2 (2.8.9)
119
+ minitest (5.25.5)
118
120
  minitest-reporters (1.7.1)
119
121
  ansi
120
122
  builder
121
123
  minitest (>= 5.0)
122
124
  ruby-progressbar
123
- net-imap (0.5.0)
125
+ net-imap (0.5.9)
124
126
  date
125
127
  net-protocol
126
128
  net-pop (0.1.2)
129
+ net-protocol
127
130
  net-protocol (0.2.2)
128
131
  timeout
129
- net-smtp (0.5.0)
132
+ net-smtp (0.5.1)
130
133
  net-protocol
131
134
  nio4r (2.7.4)
132
- nokogiri (1.16.7)
135
+ nokogiri (1.18.9)
133
136
  mini_portile2 (~> 2.8.2)
134
137
  racc (~> 1.4)
135
- psych (5.1.2)
138
+ pp (0.6.2)
139
+ prettyprint
140
+ prettyprint (0.2.0)
141
+ psych (5.2.6)
142
+ date
136
143
  stringio
137
144
  racc (1.8.1)
138
- rack (3.1.8)
139
- rack-session (2.0.0)
145
+ rack (3.2.0)
146
+ rack-session (2.1.1)
147
+ base64 (>= 0.1.0)
140
148
  rack (>= 3.0.0)
141
- rack-test (2.1.0)
149
+ rack-test (2.2.0)
142
150
  rack (>= 1.3)
143
- rackup (2.2.0)
151
+ rackup (2.2.1)
144
152
  rack (>= 3)
145
- rails (7.2.2)
146
- actioncable (= 7.2.2)
147
- actionmailbox (= 7.2.2)
148
- actionmailer (= 7.2.2)
149
- actionpack (= 7.2.2)
150
- actiontext (= 7.2.2)
151
- actionview (= 7.2.2)
152
- activejob (= 7.2.2)
153
- activemodel (= 7.2.2)
154
- activerecord (= 7.2.2)
155
- activestorage (= 7.2.2)
156
- activesupport (= 7.2.2)
153
+ rails (8.0.2.1)
154
+ actioncable (= 8.0.2.1)
155
+ actionmailbox (= 8.0.2.1)
156
+ actionmailer (= 8.0.2.1)
157
+ actionpack (= 8.0.2.1)
158
+ actiontext (= 8.0.2.1)
159
+ actionview (= 8.0.2.1)
160
+ activejob (= 8.0.2.1)
161
+ activemodel (= 8.0.2.1)
162
+ activerecord (= 8.0.2.1)
163
+ activestorage (= 8.0.2.1)
164
+ activesupport (= 8.0.2.1)
157
165
  bundler (>= 1.15.0)
158
- railties (= 7.2.2)
159
- rails-dom-testing (2.2.0)
166
+ railties (= 8.0.2.1)
167
+ rails-dom-testing (2.3.0)
160
168
  activesupport (>= 5.0.0)
161
169
  minitest
162
170
  nokogiri (>= 1.6)
163
- rails-html-sanitizer (1.6.0)
171
+ rails-html-sanitizer (1.6.2)
164
172
  loofah (~> 2.21)
165
- nokogiri (~> 1.14)
166
- railties (7.2.2)
167
- actionpack (= 7.2.2)
168
- activesupport (= 7.2.2)
173
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
174
+ railties (8.0.2.1)
175
+ actionpack (= 8.0.2.1)
176
+ activesupport (= 8.0.2.1)
169
177
  irb (~> 1.13)
170
178
  rackup (>= 1.0.0)
171
179
  rake (>= 12.2)
172
180
  thor (~> 1.0, >= 1.2.2)
173
181
  zeitwerk (~> 2.6)
174
- rake (13.2.1)
175
- rb_sys (0.9.102)
176
- rdoc (6.7.0)
182
+ rake (13.3.0)
183
+ rake-compiler-dock (1.9.1)
184
+ rb_sys (0.9.117)
185
+ rake-compiler-dock (= 1.9.1)
186
+ rdoc (6.14.2)
187
+ erb
177
188
  psych (>= 4.0.0)
178
- reline (0.5.10)
189
+ reline (0.6.2)
179
190
  io-console (~> 0.5)
180
- rouge (4.4.0)
191
+ rouge (4.6.0)
181
192
  ruby-progressbar (1.13.0)
182
- securerandom (0.3.1)
183
- stringio (3.1.1)
184
- thor (1.3.2)
185
- timeout (0.4.1)
193
+ securerandom (0.4.1)
194
+ stringio (3.1.7)
195
+ thor (1.4.0)
196
+ timeout (0.4.3)
186
197
  tzinfo (2.0.6)
187
198
  concurrent-ruby (~> 1.0)
188
- useragent (0.16.10)
189
- websocket-driver (0.7.6)
199
+ uri (1.0.3)
200
+ useragent (0.16.11)
201
+ websocket-driver (0.8.0)
202
+ base64
190
203
  websocket-extensions (>= 0.1.0)
191
204
  websocket-extensions (0.1.5)
192
- zeitwerk (2.7.1)
205
+ zeitwerk (2.7.3)
193
206
 
194
207
  PLATFORMS
195
208
  ruby
@@ -200,4 +213,4 @@ DEPENDENCIES
200
213
  rake
201
214
 
202
215
  BUNDLED WITH
203
- 2.5.11
216
+ 2.6.9
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2024 thomas morgan
1
+ Copyright 2014-2025 thomas morgan
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -81,7 +81,7 @@ And then execute:
81
81
 
82
82
  ## Gem versions
83
83
 
84
- The 3.x series uses CommonMarker 1.x and Rouge. It is compatible with Rails 6.1-8+.
84
+ The 3.x series uses CommonMarker 1.x or 2.x and Rouge. It is compatible with Rails 6.1-8+.
85
85
  The 2.x series uses CommonMarker 0.x and Rouge. It is compatible with Rails 5.0-8.0.
86
86
 
87
87
  #### Upgrading from 2.x to 3.x
@@ -14,6 +14,7 @@ module MarkdownViews
14
14
  tasklist: false,
15
15
  header_ids: nil,
16
16
  shortcodes: false,
17
+ cjk_friendly_emphasis: true,
17
18
  )
18
19
 
19
20
  mattr_accessor :transformers
@@ -1,3 +1,3 @@
1
1
  module MarkdownViews
2
- VERSION = '3.0.0'
2
+ VERSION = '3.2.0'
3
3
  end
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = '~> 3.1'
22
22
 
23
- spec.add_dependency 'commonmarker', '~> 1.1'
24
- spec.add_dependency 'rails', '>= 6.1', '< 8.1'
23
+ spec.add_dependency 'commonmarker', '>= 1.1', '< 3.0'
24
+ spec.add_dependency 'rails', '>= 6.1'
25
25
  spec.add_dependency 'rouge', '~> 4'
26
26
  spec.add_dependency 'securerandom'
27
27
 
data/test/config_test.rb CHANGED
@@ -24,6 +24,9 @@ class ConfigTest < Minitest::Test
24
24
  underline: false,
25
25
  spoiler: false,
26
26
  greentext: false,
27
+ subscript: false,
28
+ alerts: false,
29
+ cjk_friendly_emphasis: true,
27
30
  }
28
31
  assert_equal expected, processed
29
32
  end
@@ -62,6 +65,7 @@ class ConfigTest < Minitest::Test
62
65
  ignore_empty_links: false,
63
66
  gfm_quirks: false,
64
67
  prefer_fenced: false,
68
+ tasklist_classes: false,
65
69
  }
66
70
  assert_equal expected, processed
67
71
  end
data/test/render_test.rb CHANGED
@@ -35,9 +35,9 @@ class RenderTest < Minitest::Test
35
35
  ```
36
36
  MD
37
37
  o = <<~HTML
38
- <pre lang=\"ruby\"><code class=\"rouge-highlight\"><span class=\"k\">def</span> <span class=\"nf\">syntax_highlighting</span>
39
- <span class=\"s1\">'works too!'</span>
40
- <span class=\"k\">end</span></code></pre>
38
+ <pre lang="ruby"><code class="rouge-highlight"><span class="k">def</span> <span class="nf">syntax_highlighting</span>
39
+ <span class="s1">'works too!'</span>
40
+ <span class="k">end</span></code></pre>
41
41
  HTML
42
42
  assert_equal o, render(s)
43
43
  end
metadata CHANGED
@@ -1,29 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-11-02 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: commonmarker
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: '1.1'
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
- - - "~>"
26
+ - - ">="
25
27
  - !ruby/object:Gem::Version
26
28
  version: '1.1'
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '3.0'
27
32
  - !ruby/object:Gem::Dependency
28
33
  name: rails
29
34
  requirement: !ruby/object:Gem::Requirement
@@ -31,9 +36,6 @@ dependencies:
31
36
  - - ">="
32
37
  - !ruby/object:Gem::Version
33
38
  version: '6.1'
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '8.1'
37
39
  type: :runtime
38
40
  prerelease: false
39
41
  version_requirements: !ruby/object:Gem::Requirement
@@ -41,9 +43,6 @@ dependencies:
41
43
  - - ">="
42
44
  - !ruby/object:Gem::Version
43
45
  version: '6.1'
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '8.1'
47
46
  - !ruby/object:Gem::Dependency
48
47
  name: rouge
49
48
  requirement: !ruby/object:Gem::Requirement
@@ -149,7 +148,6 @@ homepage: https://github.com/zarqman/markdown_views
149
148
  licenses:
150
149
  - MIT
151
150
  metadata: {}
152
- post_install_message:
153
151
  rdoc_options: []
154
152
  require_paths:
155
153
  - lib
@@ -164,8 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
162
  - !ruby/object:Gem::Version
165
163
  version: '0'
166
164
  requirements: []
167
- rubygems_version: 3.5.11
168
- signing_key:
165
+ rubygems_version: 3.6.9
169
166
  specification_version: 4
170
167
  summary: Add .md template handler to Rails.
171
168
  test_files: