markdown_views 2.3.1 → 2.4.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: 5954cc908f2188862537f09d10266ddbf353da758970b3b74cf481f31061fceb
4
- data.tar.gz: 2b2fb03f3a66f06a6d8f7fce91eb71ecdf52439f8cd1eafce84dd2bf95fbb951
3
+ metadata.gz: dc67d3051ee0503e3ab4483ced8fb18d2602d4b6000fc228c2d7a80c1f110f85
4
+ data.tar.gz: 5b889a5614586c4536d8c01b055586efb91f508db3d2db0d14b3591c48576dd1
5
5
  SHA512:
6
- metadata.gz: abc089915f482e86998097411ef95b51fd5a22c223f9c28166f70842e476c600563958ba5b12b28b4d282e1e5be847dc9f4a35f6061605deb5467772ab73bb02
7
- data.tar.gz: ce0e5437d9b48bb13528643dc7e548e95a21dfb061aa5f85aadf89ec4cf0f06959234f092843581881c19fd79a9d0dfa365a4b503dd0d9c1fc85769d18c96bc4
6
+ metadata.gz: 9b17909f81d40beeeb3fc689ce40dd0c1c2645bf6ba187662a2867846b1331eb96d0c5f871905dd874e7d096b33096120af6da9900333b4928d3b5cf8de1a789
7
+ data.tar.gz: e7d67156ec3bdf53aa58610de538f7084206a6186b587cb1b98d911deeb9b70ee2c31a17f7c4e55f022b5e2eca14a4fd606f7ccfbcac1358ecad3a7994c374c9
data/Gemfile.lock CHANGED
@@ -1,37 +1,37 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdown_views (2.3.1)
5
- commonmarker (>= 0.18.2, < 0.24)
6
- rails (>= 5.0, < 7.3)
4
+ markdown_views (2.4.0)
5
+ commonmarker (>= 0.18.2, < 2)
6
+ rails (>= 5.0, < 8.1)
7
7
  rouge (>= 3.3, < 5.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (7.2.0)
13
- actionpack (= 7.2.0)
14
- activesupport (= 7.2.0)
12
+ actioncable (7.2.2)
13
+ actionpack (= 7.2.2)
14
+ activesupport (= 7.2.2)
15
15
  nio4r (~> 2.0)
16
16
  websocket-driver (>= 0.6.1)
17
17
  zeitwerk (~> 2.6)
18
- actionmailbox (7.2.0)
19
- actionpack (= 7.2.0)
20
- activejob (= 7.2.0)
21
- activerecord (= 7.2.0)
22
- activestorage (= 7.2.0)
23
- activesupport (= 7.2.0)
18
+ actionmailbox (7.2.2)
19
+ actionpack (= 7.2.2)
20
+ activejob (= 7.2.2)
21
+ activerecord (= 7.2.2)
22
+ activestorage (= 7.2.2)
23
+ activesupport (= 7.2.2)
24
24
  mail (>= 2.8.0)
25
- actionmailer (7.2.0)
26
- actionpack (= 7.2.0)
27
- actionview (= 7.2.0)
28
- activejob (= 7.2.0)
29
- activesupport (= 7.2.0)
25
+ actionmailer (7.2.2)
26
+ actionpack (= 7.2.2)
27
+ actionview (= 7.2.2)
28
+ activejob (= 7.2.2)
29
+ activesupport (= 7.2.2)
30
30
  mail (>= 2.8.0)
31
31
  rails-dom-testing (~> 2.2)
32
- actionpack (7.2.0)
33
- actionview (= 7.2.0)
34
- activesupport (= 7.2.0)
32
+ actionpack (7.2.2)
33
+ actionview (= 7.2.2)
34
+ activesupport (= 7.2.2)
35
35
  nokogiri (>= 1.8.5)
36
36
  racc
37
37
  rack (>= 2.2.4, < 3.2)
@@ -40,36 +40,37 @@ GEM
40
40
  rails-dom-testing (~> 2.2)
41
41
  rails-html-sanitizer (~> 1.6)
42
42
  useragent (~> 0.16)
43
- actiontext (7.2.0)
44
- actionpack (= 7.2.0)
45
- activerecord (= 7.2.0)
46
- activestorage (= 7.2.0)
47
- activesupport (= 7.2.0)
43
+ actiontext (7.2.2)
44
+ actionpack (= 7.2.2)
45
+ activerecord (= 7.2.2)
46
+ activestorage (= 7.2.2)
47
+ activesupport (= 7.2.2)
48
48
  globalid (>= 0.6.0)
49
49
  nokogiri (>= 1.8.5)
50
- actionview (7.2.0)
51
- activesupport (= 7.2.0)
50
+ actionview (7.2.2)
51
+ activesupport (= 7.2.2)
52
52
  builder (~> 3.1)
53
53
  erubi (~> 1.11)
54
54
  rails-dom-testing (~> 2.2)
55
55
  rails-html-sanitizer (~> 1.6)
56
- activejob (7.2.0)
57
- activesupport (= 7.2.0)
56
+ activejob (7.2.2)
57
+ activesupport (= 7.2.2)
58
58
  globalid (>= 0.3.6)
59
- activemodel (7.2.0)
60
- activesupport (= 7.2.0)
61
- activerecord (7.2.0)
62
- activemodel (= 7.2.0)
63
- activesupport (= 7.2.0)
59
+ activemodel (7.2.2)
60
+ activesupport (= 7.2.2)
61
+ activerecord (7.2.2)
62
+ activemodel (= 7.2.2)
63
+ activesupport (= 7.2.2)
64
64
  timeout (>= 0.4.0)
65
- activestorage (7.2.0)
66
- actionpack (= 7.2.0)
67
- activejob (= 7.2.0)
68
- activerecord (= 7.2.0)
69
- activesupport (= 7.2.0)
65
+ activestorage (7.2.2)
66
+ actionpack (= 7.2.2)
67
+ activejob (= 7.2.2)
68
+ activerecord (= 7.2.2)
69
+ activesupport (= 7.2.2)
70
70
  marcel (~> 1.0)
71
- activesupport (7.2.0)
71
+ activesupport (7.2.2)
72
72
  base64
73
+ benchmark (>= 0.3)
73
74
  bigdecimal
74
75
  concurrent-ruby (~> 1.0, >= 1.3.1)
75
76
  connection_pool (>= 2.2.5)
@@ -81,9 +82,11 @@ GEM
81
82
  tzinfo (~> 2.0, >= 2.0.5)
82
83
  ansi (1.5.0)
83
84
  base64 (0.2.0)
85
+ benchmark (0.3.0)
84
86
  bigdecimal (3.1.8)
85
87
  builder (3.3.0)
86
- commonmarker (0.23.10)
88
+ commonmarker (1.1.5)
89
+ rb_sys (~> 0.9)
87
90
  concurrent-ruby (1.3.4)
88
91
  connection_pool (2.4.1)
89
92
  crass (1.0.6)
@@ -92,14 +95,14 @@ GEM
92
95
  erubi (1.13.0)
93
96
  globalid (1.2.1)
94
97
  activesupport (>= 6.1)
95
- i18n (1.14.5)
98
+ i18n (1.14.6)
96
99
  concurrent-ruby (~> 1.0)
97
100
  io-console (0.7.2)
98
- irb (1.14.0)
101
+ irb (1.14.1)
99
102
  rdoc (>= 4.0.0)
100
103
  reline (>= 0.4.2)
101
- logger (1.6.0)
102
- loofah (2.22.0)
104
+ logger (1.6.1)
105
+ loofah (2.23.1)
103
106
  crass (~> 1.0.2)
104
107
  nokogiri (>= 1.12.0)
105
108
  mail (2.8.1)
@@ -110,13 +113,13 @@ GEM
110
113
  marcel (1.0.4)
111
114
  mini_mime (1.1.5)
112
115
  mini_portile2 (2.8.7)
113
- minitest (5.24.1)
116
+ minitest (5.25.1)
114
117
  minitest-reporters (1.7.1)
115
118
  ansi
116
119
  builder
117
120
  minitest (>= 5.0)
118
121
  ruby-progressbar
119
- net-imap (0.4.14)
122
+ net-imap (0.5.0)
120
123
  date
121
124
  net-protocol
122
125
  net-pop (0.1.2)
@@ -124,14 +127,14 @@ GEM
124
127
  timeout
125
128
  net-smtp (0.5.0)
126
129
  net-protocol
127
- nio4r (2.7.3)
130
+ nio4r (2.7.4)
128
131
  nokogiri (1.16.7)
129
132
  mini_portile2 (~> 2.8.2)
130
133
  racc (~> 1.4)
131
134
  psych (5.1.2)
132
135
  stringio
133
136
  racc (1.8.1)
134
- rack (3.1.7)
137
+ rack (3.1.8)
135
138
  rack-session (2.0.0)
136
139
  rack (>= 3.0.0)
137
140
  rack-test (2.1.0)
@@ -139,20 +142,20 @@ GEM
139
142
  rackup (2.1.0)
140
143
  rack (>= 3)
141
144
  webrick (~> 1.8)
142
- rails (7.2.0)
143
- actioncable (= 7.2.0)
144
- actionmailbox (= 7.2.0)
145
- actionmailer (= 7.2.0)
146
- actionpack (= 7.2.0)
147
- actiontext (= 7.2.0)
148
- actionview (= 7.2.0)
149
- activejob (= 7.2.0)
150
- activemodel (= 7.2.0)
151
- activerecord (= 7.2.0)
152
- activestorage (= 7.2.0)
153
- activesupport (= 7.2.0)
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)
154
157
  bundler (>= 1.15.0)
155
- railties (= 7.2.0)
158
+ railties (= 7.2.2)
156
159
  rails-dom-testing (2.2.0)
157
160
  activesupport (>= 5.0.0)
158
161
  minitest
@@ -160,33 +163,34 @@ GEM
160
163
  rails-html-sanitizer (1.6.0)
161
164
  loofah (~> 2.21)
162
165
  nokogiri (~> 1.14)
163
- railties (7.2.0)
164
- actionpack (= 7.2.0)
165
- activesupport (= 7.2.0)
166
+ railties (7.2.2)
167
+ actionpack (= 7.2.2)
168
+ activesupport (= 7.2.2)
166
169
  irb (~> 1.13)
167
170
  rackup (>= 1.0.0)
168
171
  rake (>= 12.2)
169
172
  thor (~> 1.0, >= 1.2.2)
170
173
  zeitwerk (~> 2.6)
171
174
  rake (13.2.1)
175
+ rb_sys (0.9.102)
172
176
  rdoc (6.7.0)
173
177
  psych (>= 4.0.0)
174
- reline (0.5.9)
178
+ reline (0.5.10)
175
179
  io-console (~> 0.5)
176
- rouge (4.3.0)
180
+ rouge (4.4.0)
177
181
  ruby-progressbar (1.13.0)
178
182
  securerandom (0.3.1)
179
183
  stringio (3.1.1)
180
- thor (1.3.1)
184
+ thor (1.3.2)
181
185
  timeout (0.4.1)
182
186
  tzinfo (2.0.6)
183
187
  concurrent-ruby (~> 1.0)
184
188
  useragent (0.16.10)
185
- webrick (1.8.1)
189
+ webrick (1.8.2)
186
190
  websocket-driver (0.7.6)
187
191
  websocket-extensions (>= 0.1.0)
188
192
  websocket-extensions (0.1.5)
189
- zeitwerk (2.6.17)
193
+ zeitwerk (2.7.1)
190
194
 
191
195
  PLATFORMS
192
196
  ruby
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MarkdownViews
2
2
 
3
- MarkdownViews enables Rails 5-7+ to process .md templates as part of `app/views/`, with optional preprocessing of ERB, HAML, etc. A `markdown()` helper is also provided for when you need Markdown for only part of a view.
3
+ MarkdownViews enables Rails 5-8+ to process .md templates as part of `app/views/`, with optional preprocessing of ERB, HAML, etc. A `markdown()` helper is also provided for when you need Markdown for only part of a view.
4
4
 
5
5
  It uses CommonMarker for markdown processing and Rouge for syntax highlighting.
6
6
 
@@ -10,9 +10,9 @@ It uses CommonMarker for markdown processing and Rouge for syntax highlighting.
10
10
  Just create views as `some_action.html.md` instead of `some_action.html.erb` and write them with Markdown instead of HTML. You can still use ERB (or HAML, etc -- see below).
11
11
 
12
12
  # My page title
13
-
13
+
14
14
  Hello, **<%= current_user.first_name %>**.
15
-
15
+
16
16
  ```ruby
17
17
  def syntax_highlighting
18
18
  'works too!'
@@ -1,3 +1,3 @@
1
1
  module MarkdownViews
2
- VERSION = '2.3.1'
2
+ VERSION = '2.4.0'
3
3
  end
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency 'commonmarker', '>= 0.18.2', '< 0.24'
22
- spec.add_dependency 'rails', '>= 5.0', '< 7.3'
21
+ spec.add_dependency 'commonmarker', '>= 0.18.2', '< 2'
22
+ spec.add_dependency 'rails', '>= 5.0', '< 8.1'
23
23
  spec.add_dependency 'rouge', '>= 3.3', '< 5.0'
24
24
 
25
25
  spec.add_development_dependency "minitest-reporters"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.4.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-08-13 00:00:00.000000000 Z
11
+ date: 2024-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commonmarker
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 0.18.2
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '0.24'
22
+ version: '2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 0.18.2
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '0.24'
32
+ version: '2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rails
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '5.0'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '7.3'
42
+ version: '8.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '5.0'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '7.3'
52
+ version: '8.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rouge
55
55
  requirement: !ruby/object:Gem::Requirement