markdown_views 2.4.1 → 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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +97 -91
  3. data/README.md +17 -11
  4. data/Rakefile +5 -5
  5. data/app/assets/stylesheets/rouge.base16.dark.css +43 -30
  6. data/app/assets/stylesheets/rouge.base16.light.css +42 -29
  7. data/app/assets/stylesheets/rouge.base16.monokai.dark.css +16 -3
  8. data/app/assets/stylesheets/rouge.base16.monokai.light.css +16 -3
  9. data/app/assets/stylesheets/rouge.base16.solarized.dark.css +16 -3
  10. data/app/assets/stylesheets/rouge.base16.solarized.light.css +16 -3
  11. data/app/assets/stylesheets/rouge.bw.css +70 -0
  12. data/app/assets/stylesheets/rouge.colorful.css +12 -4
  13. data/app/assets/stylesheets/rouge.github.dark.css +116 -0
  14. data/app/assets/stylesheets/rouge.github.light.css +116 -0
  15. data/app/assets/stylesheets/rouge.gruvbox.dark.css +16 -3
  16. data/app/assets/stylesheets/rouge.gruvbox.light.css +16 -3
  17. data/app/assets/stylesheets/rouge.igorpro.css +15 -2
  18. data/app/assets/stylesheets/rouge.molokai.css +8 -5
  19. data/app/assets/stylesheets/rouge.monokai.css +12 -5
  20. data/app/assets/stylesheets/rouge.monokai.sublime.css +23 -7
  21. data/app/assets/stylesheets/rouge.pastie.css +13 -5
  22. data/app/assets/stylesheets/rouge.thankful_eyes.css +13 -6
  23. data/app/assets/stylesheets/rouge.tulip.css +13 -6
  24. data/lib/markdown_views/config.rb +23 -7
  25. data/lib/markdown_views/handler.rb +0 -21
  26. data/lib/markdown_views/renderer.rb +24 -7
  27. data/lib/markdown_views/version.rb +1 -1
  28. data/lib/markdown_views.rb +2 -5
  29. data/markdown_views.gemspec +6 -3
  30. data/test/config_test.rb +70 -0
  31. data/test/render_test.rb +50 -0
  32. data/test/strip_comments_test.rb +0 -6
  33. data/test/test_helper.rb +16 -0
  34. metadata +34 -20
  35. data/app/assets/stylesheets/rouge.github.css +0 -209
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.4.1
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-01 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
@@ -16,27 +16,27 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.2
19
+ version: '1.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '0.24'
22
+ version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.2
29
+ version: '1.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '0.24'
32
+ version: '3.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rails
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '5.0'
39
+ version: '6.1'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '8.1'
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: '5.0'
49
+ version: '6.1'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '8.1'
@@ -54,22 +54,30 @@ dependencies:
54
54
  name: rouge
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: '3.3'
60
- - - "<"
57
+ - - "~>"
61
58
  - !ruby/object:Gem::Version
62
- version: '5.0'
59
+ version: '4'
63
60
  type: :runtime
64
61
  prerelease: false
65
62
  version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '4'
67
+ - !ruby/object:Gem::Dependency
68
+ name: securerandom
69
+ requirement: !ruby/object:Gem::Requirement
66
70
  requirements:
67
71
  - - ">="
68
72
  - !ruby/object:Gem::Version
69
- version: '3.3'
70
- - - "<"
73
+ version: '0'
74
+ type: :runtime
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
71
79
  - !ruby/object:Gem::Version
72
- version: '5.0'
80
+ version: '0'
73
81
  - !ruby/object:Gem::Dependency
74
82
  name: minitest-reporters
75
83
  requirement: !ruby/object:Gem::Requirement
@@ -118,8 +126,10 @@ files:
118
126
  - app/assets/stylesheets/rouge.base16.monokai.light.css
119
127
  - app/assets/stylesheets/rouge.base16.solarized.dark.css
120
128
  - app/assets/stylesheets/rouge.base16.solarized.light.css
129
+ - app/assets/stylesheets/rouge.bw.css
121
130
  - app/assets/stylesheets/rouge.colorful.css
122
- - app/assets/stylesheets/rouge.github.css
131
+ - app/assets/stylesheets/rouge.github.dark.css
132
+ - app/assets/stylesheets/rouge.github.light.css
123
133
  - app/assets/stylesheets/rouge.gruvbox.dark.css
124
134
  - app/assets/stylesheets/rouge.gruvbox.light.css
125
135
  - app/assets/stylesheets/rouge.igorpro.css
@@ -137,6 +147,8 @@ files:
137
147
  - lib/markdown_views/renderer.rb
138
148
  - lib/markdown_views/version.rb
139
149
  - markdown_views.gemspec
150
+ - test/config_test.rb
151
+ - test/render_test.rb
140
152
  - test/strip_comments_test.rb
141
153
  - test/test_helper.rb
142
154
  homepage: https://github.com/zarqman/markdown_views
@@ -149,19 +161,21 @@ require_paths:
149
161
  - lib
150
162
  required_ruby_version: !ruby/object:Gem::Requirement
151
163
  requirements:
152
- - - ">="
164
+ - - "~>"
153
165
  - !ruby/object:Gem::Version
154
- version: '0'
166
+ version: '3.1'
155
167
  required_rubygems_version: !ruby/object:Gem::Requirement
156
168
  requirements:
157
169
  - - ">="
158
170
  - !ruby/object:Gem::Version
159
171
  version: '0'
160
172
  requirements: []
161
- rubygems_version: 3.5.11
173
+ rubygems_version: 3.5.22
162
174
  signing_key:
163
175
  specification_version: 4
164
176
  summary: Add .md template handler to Rails.
165
177
  test_files:
178
+ - test/config_test.rb
179
+ - test/render_test.rb
166
180
  - test/strip_comments_test.rb
167
181
  - test/test_helper.rb
@@ -1,209 +0,0 @@
1
- .rouge-highlight table td { padding: 5px; }
2
- .rouge-highlight table pre { margin: 0; }
3
- .rouge-highlight .cm {
4
- color: #999988;
5
- font-style: italic;
6
- }
7
- .rouge-highlight .cp {
8
- color: #999999;
9
- font-weight: bold;
10
- }
11
- .rouge-highlight .c1 {
12
- color: #999988;
13
- font-style: italic;
14
- }
15
- .rouge-highlight .cs {
16
- color: #999999;
17
- font-weight: bold;
18
- font-style: italic;
19
- }
20
- .rouge-highlight .c, .rouge-highlight .cd {
21
- color: #999988;
22
- font-style: italic;
23
- }
24
- .rouge-highlight .err {
25
- color: #a61717;
26
- background-color: #e3d2d2;
27
- }
28
- .rouge-highlight .gd {
29
- color: #000000;
30
- background-color: #ffdddd;
31
- }
32
- .rouge-highlight .ge {
33
- color: #000000;
34
- font-style: italic;
35
- }
36
- .rouge-highlight .gr {
37
- color: #aa0000;
38
- }
39
- .rouge-highlight .gh {
40
- color: #999999;
41
- }
42
- .rouge-highlight .gi {
43
- color: #000000;
44
- background-color: #ddffdd;
45
- }
46
- .rouge-highlight .go {
47
- color: #888888;
48
- }
49
- .rouge-highlight .gp {
50
- color: #555555;
51
- }
52
- .rouge-highlight .gs {
53
- font-weight: bold;
54
- }
55
- .rouge-highlight .gu {
56
- color: #aaaaaa;
57
- }
58
- .rouge-highlight .gt {
59
- color: #aa0000;
60
- }
61
- .rouge-highlight .kc {
62
- color: #000000;
63
- font-weight: bold;
64
- }
65
- .rouge-highlight .kd {
66
- color: #000000;
67
- font-weight: bold;
68
- }
69
- .rouge-highlight .kn {
70
- color: #000000;
71
- font-weight: bold;
72
- }
73
- .rouge-highlight .kp {
74
- color: #000000;
75
- font-weight: bold;
76
- }
77
- .rouge-highlight .kr {
78
- color: #000000;
79
- font-weight: bold;
80
- }
81
- .rouge-highlight .kt {
82
- color: #445588;
83
- font-weight: bold;
84
- }
85
- .rouge-highlight .k, .rouge-highlight .kv {
86
- color: #000000;
87
- font-weight: bold;
88
- }
89
- .rouge-highlight .mf {
90
- color: #009999;
91
- }
92
- .rouge-highlight .mh {
93
- color: #009999;
94
- }
95
- .rouge-highlight .il {
96
- color: #009999;
97
- }
98
- .rouge-highlight .mi {
99
- color: #009999;
100
- }
101
- .rouge-highlight .mo {
102
- color: #009999;
103
- }
104
- .rouge-highlight .m, .rouge-highlight .mb, .rouge-highlight .mx {
105
- color: #009999;
106
- }
107
- .rouge-highlight .sb {
108
- color: #d14;
109
- }
110
- .rouge-highlight .sc {
111
- color: #d14;
112
- }
113
- .rouge-highlight .sd {
114
- color: #d14;
115
- }
116
- .rouge-highlight .s2 {
117
- color: #d14;
118
- }
119
- .rouge-highlight .se {
120
- color: #d14;
121
- }
122
- .rouge-highlight .sh {
123
- color: #d14;
124
- }
125
- .rouge-highlight .si {
126
- color: #d14;
127
- }
128
- .rouge-highlight .sx {
129
- color: #d14;
130
- }
131
- .rouge-highlight .sr {
132
- color: #009926;
133
- }
134
- .rouge-highlight .s1 {
135
- color: #d14;
136
- }
137
- .rouge-highlight .ss {
138
- color: #990073;
139
- }
140
- .rouge-highlight .s {
141
- color: #d14;
142
- }
143
- .rouge-highlight .na {
144
- color: #008080;
145
- }
146
- .rouge-highlight .bp {
147
- color: #999999;
148
- }
149
- .rouge-highlight .nb {
150
- color: #0086B3;
151
- }
152
- .rouge-highlight .nc {
153
- color: #445588;
154
- font-weight: bold;
155
- }
156
- .rouge-highlight .no {
157
- color: #008080;
158
- }
159
- .rouge-highlight .nd {
160
- color: #3c5d5d;
161
- font-weight: bold;
162
- }
163
- .rouge-highlight .ni {
164
- color: #800080;
165
- }
166
- .rouge-highlight .ne {
167
- color: #990000;
168
- font-weight: bold;
169
- }
170
- .rouge-highlight .nf {
171
- color: #990000;
172
- font-weight: bold;
173
- }
174
- .rouge-highlight .nl {
175
- color: #990000;
176
- font-weight: bold;
177
- }
178
- .rouge-highlight .nn {
179
- color: #555555;
180
- }
181
- .rouge-highlight .nt {
182
- color: #000080;
183
- }
184
- .rouge-highlight .vc {
185
- color: #008080;
186
- }
187
- .rouge-highlight .vg {
188
- color: #008080;
189
- }
190
- .rouge-highlight .vi {
191
- color: #008080;
192
- }
193
- .rouge-highlight .nv {
194
- color: #008080;
195
- }
196
- .rouge-highlight .ow {
197
- color: #000000;
198
- font-weight: bold;
199
- }
200
- .rouge-highlight .o {
201
- color: #000000;
202
- font-weight: bold;
203
- }
204
- .rouge-highlight .w {
205
- color: #bbbbbb;
206
- }
207
- .rouge-highlight {
208
- background-color: #f8f8f8;
209
- }