markdown_views 3.0.0 → 3.1.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: 4bfc0f4474969a1bca917f425c0679cafea811519da5a5eff4739b9b82d24e10
4
+ data.tar.gz: ffa60b28850283d6c9a81311c1b96fa429dc8ff23989124cbdd3a074688e7528
5
5
  SHA512:
6
- metadata.gz: '030611799d4e21aa2a2b74b7db00071c45d731c492d492cdd3b6a648a1ad625b7eb12d396cee82f38b30e5ab4631bc809ff7f86b99868d610dda82aa9fa063d5'
7
- data.tar.gz: 2a6df42fd00278c2e92b2e049f7f4e03fd4089050fce90f36bded628b7e1b051ec51e668ee1873c59d90a0b2e29fac5d987bcfb025ebadd55282f88061895f82
6
+ metadata.gz: f81b58690564e04a796200bff60a320a5f33c4efeadfdd8b713a53a7072e33040829a3753b3048d86ddfcdb79ef4589ed9bfbe51d8f7dc581808b155b44af563
7
+ data.tar.gz: 59ceeed4dcec3f1a99c4ce512693385fda0a5deee6c4af82d5fdb5c4850d8a9a027ae648a8e41ead568a33fbbd4eba0d89a7e6e31a9ec6c2ddc47ff7cdbf6d36
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdown_views (3.0.0)
5
- commonmarker (~> 1.1)
4
+ markdown_views (3.1.0)
5
+ commonmarker (>= 1.1, < 3.0)
6
6
  rails (>= 6.1, < 8.1)
7
7
  rouge (~> 4)
8
8
  securerandom
@@ -10,66 +10,65 @@ PATH
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.1)
14
+ actionpack (= 8.0.1)
15
+ activesupport (= 8.0.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.1)
20
+ actionpack (= 8.0.1)
21
+ activejob (= 8.0.1)
22
+ activerecord (= 8.0.1)
23
+ activestorage (= 8.0.1)
24
+ activesupport (= 8.0.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.1)
27
+ actionpack (= 8.0.1)
28
+ actionview (= 8.0.1)
29
+ activejob (= 8.0.1)
30
+ activesupport (= 8.0.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.1)
34
+ actionview (= 8.0.1)
35
+ activesupport (= 8.0.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.1)
44
+ actionpack (= 8.0.1)
45
+ activerecord (= 8.0.1)
46
+ activestorage (= 8.0.1)
47
+ activesupport (= 8.0.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.1)
51
+ activesupport (= 8.0.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.1)
57
+ activesupport (= 8.0.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.1)
60
+ activesupport (= 8.0.1)
61
+ activerecord (8.0.1)
62
+ activemodel (= 8.0.1)
63
+ activesupport (= 8.0.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.1)
66
+ actionpack (= 8.0.1)
67
+ activejob (= 8.0.1)
68
+ activerecord (= 8.0.1)
69
+ activesupport (= 8.0.1)
71
70
  marcel (~> 1.0)
72
- activesupport (7.2.2)
71
+ activesupport (8.0.1)
73
72
  base64
74
73
  benchmark (>= 0.3)
75
74
  bigdecimal
@@ -81,29 +80,30 @@ 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
85
  base64 (0.2.0)
86
- benchmark (0.3.0)
87
- bigdecimal (3.1.8)
86
+ benchmark (0.4.0)
87
+ bigdecimal (3.1.9)
88
88
  builder (3.3.0)
89
- commonmarker (1.1.5)
89
+ commonmarker (2.0.2.1)
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.0)
93
93
  crass (1.0.6)
94
- date (3.4.0)
94
+ date (3.4.1)
95
95
  drb (2.2.1)
96
- erubi (1.13.0)
96
+ erubi (1.13.1)
97
97
  globalid (1.2.1)
98
98
  activesupport (>= 6.1)
99
99
  i18n (1.14.6)
100
100
  concurrent-ruby (~> 1.0)
101
- io-console (0.7.2)
102
- irb (1.14.1)
101
+ io-console (0.8.0)
102
+ irb (1.14.3)
103
103
  rdoc (>= 4.0.0)
104
104
  reline (>= 0.4.2)
105
- logger (1.6.1)
106
- loofah (2.23.1)
105
+ logger (1.6.5)
106
+ loofah (2.24.0)
107
107
  crass (~> 1.0.2)
108
108
  nokogiri (>= 1.12.0)
109
109
  mail (2.8.1)
@@ -113,80 +113,85 @@ GEM
113
113
  net-smtp
114
114
  marcel (1.0.4)
115
115
  mini_mime (1.1.5)
116
- mini_portile2 (2.8.7)
117
- minitest (5.25.1)
116
+ mini_portile2 (2.8.8)
117
+ minitest (5.25.4)
118
118
  minitest-reporters (1.7.1)
119
119
  ansi
120
120
  builder
121
121
  minitest (>= 5.0)
122
122
  ruby-progressbar
123
- net-imap (0.5.0)
123
+ net-imap (0.5.5)
124
124
  date
125
125
  net-protocol
126
126
  net-pop (0.1.2)
127
+ net-protocol
127
128
  net-protocol (0.2.2)
128
129
  timeout
129
130
  net-smtp (0.5.0)
130
131
  net-protocol
131
132
  nio4r (2.7.4)
132
- nokogiri (1.16.7)
133
+ nokogiri (1.18.1)
133
134
  mini_portile2 (~> 2.8.2)
134
135
  racc (~> 1.4)
135
- psych (5.1.2)
136
+ psych (5.2.3)
137
+ date
136
138
  stringio
137
139
  racc (1.8.1)
138
140
  rack (3.1.8)
139
- rack-session (2.0.0)
141
+ rack-session (2.1.0)
142
+ base64 (>= 0.1.0)
140
143
  rack (>= 3.0.0)
141
- rack-test (2.1.0)
144
+ rack-test (2.2.0)
142
145
  rack (>= 1.3)
143
- rackup (2.2.0)
146
+ rackup (2.2.1)
144
147
  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)
148
+ rails (8.0.1)
149
+ actioncable (= 8.0.1)
150
+ actionmailbox (= 8.0.1)
151
+ actionmailer (= 8.0.1)
152
+ actionpack (= 8.0.1)
153
+ actiontext (= 8.0.1)
154
+ actionview (= 8.0.1)
155
+ activejob (= 8.0.1)
156
+ activemodel (= 8.0.1)
157
+ activerecord (= 8.0.1)
158
+ activestorage (= 8.0.1)
159
+ activesupport (= 8.0.1)
157
160
  bundler (>= 1.15.0)
158
- railties (= 7.2.2)
161
+ railties (= 8.0.1)
159
162
  rails-dom-testing (2.2.0)
160
163
  activesupport (>= 5.0.0)
161
164
  minitest
162
165
  nokogiri (>= 1.6)
163
- rails-html-sanitizer (1.6.0)
166
+ rails-html-sanitizer (1.6.2)
164
167
  loofah (~> 2.21)
165
- nokogiri (~> 1.14)
166
- railties (7.2.2)
167
- actionpack (= 7.2.2)
168
- activesupport (= 7.2.2)
168
+ 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)
169
+ railties (8.0.1)
170
+ actionpack (= 8.0.1)
171
+ activesupport (= 8.0.1)
169
172
  irb (~> 1.13)
170
173
  rackup (>= 1.0.0)
171
174
  rake (>= 12.2)
172
175
  thor (~> 1.0, >= 1.2.2)
173
176
  zeitwerk (~> 2.6)
174
177
  rake (13.2.1)
175
- rb_sys (0.9.102)
176
- rdoc (6.7.0)
178
+ rb_sys (0.9.108)
179
+ rdoc (6.11.0)
177
180
  psych (>= 4.0.0)
178
- reline (0.5.10)
181
+ reline (0.6.0)
179
182
  io-console (~> 0.5)
180
- rouge (4.4.0)
183
+ rouge (4.5.1)
181
184
  ruby-progressbar (1.13.0)
182
- securerandom (0.3.1)
183
- stringio (3.1.1)
185
+ securerandom (0.4.1)
186
+ stringio (3.1.2)
184
187
  thor (1.3.2)
185
- timeout (0.4.1)
188
+ timeout (0.4.3)
186
189
  tzinfo (2.0.6)
187
190
  concurrent-ruby (~> 1.0)
188
- useragent (0.16.10)
189
- websocket-driver (0.7.6)
191
+ uri (1.0.2)
192
+ useragent (0.16.11)
193
+ websocket-driver (0.7.7)
194
+ base64
190
195
  websocket-extensions (>= 0.1.0)
191
196
  websocket-extensions (0.1.5)
192
197
  zeitwerk (2.7.1)
@@ -200,4 +205,4 @@ DEPENDENCIES
200
205
  rake
201
206
 
202
207
  BUNDLED WITH
203
- 2.5.11
208
+ 2.5.22
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
@@ -1,3 +1,3 @@
1
1
  module MarkdownViews
2
- VERSION = '3.0.0'
2
+ VERSION = '3.1.0'
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = '~> 3.1'
22
22
 
23
- spec.add_dependency 'commonmarker', '~> 1.1'
23
+ spec.add_dependency 'commonmarker', '>= 1.1', '< 3.0'
24
24
  spec.add_dependency 'rails', '>= 6.1', '< 8.1'
25
25
  spec.add_dependency 'rouge', '~> 4'
26
26
  spec.add_dependency 'securerandom'
data/test/config_test.rb CHANGED
@@ -24,6 +24,7 @@ class ConfigTest < Minitest::Test
24
24
  underline: false,
25
25
  spoiler: false,
26
26
  greentext: false,
27
+ subscript: false,
27
28
  }
28
29
  assert_equal expected, processed
29
30
  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,35 @@
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.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-02 00:00:00.000000000 Z
11
+ date: 2025-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commonmarker
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rails
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -164,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
170
  - !ruby/object:Gem::Version
165
171
  version: '0'
166
172
  requirements: []
167
- rubygems_version: 3.5.11
173
+ rubygems_version: 3.5.22
168
174
  signing_key:
169
175
  specification_version: 4
170
176
  summary: Add .md template handler to Rails.