markdown_views 2.2.3 → 2.2.5

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: 2aa911de4b375bc8f7da813e782664e0af0235a355a333ca59511fb4ea02d4cd
4
- data.tar.gz: 050bfd78c2c8004ead3f42d75b4075648919c14cf62e30dea318feb78cd24591
3
+ metadata.gz: b2311da9f94a7bd73cb64a3e1d9f75d2829b6f90478e9e5d2d76c42a64abcf0c
4
+ data.tar.gz: ef7d4b653017197a0d1bcb2bed66ef1f22ab1cf15a1295319da66bcb447baed3
5
5
  SHA512:
6
- metadata.gz: c9194184934ea53ef35d6aa0c645d72eb41e117334552ba7e828d5d65a4d679a4b5fb4ee4d97cd929b06e6d2c9958196b3a1179e13b3b6edf7e2320788a4b797
7
- data.tar.gz: a905db8c31e6d311f56d22a6d2a10deb28ba825fcade95e4cf12e309ef79b349e3ed4b48d6c61c1cf5531bda81dcbfc4420f3094d7b2f1545f598c9fe2890a83
6
+ metadata.gz: a9cf0b19c8e7cdc97f5ccd5501439bb1e47697f6ca5878bada0836ea0be0ca1b9659ddaf0892873fc3f046eb260e437ecac743819cfa013b20d99756bb26d54a
7
+ data.tar.gz: 22787007ef813966910f09ffe958a7c3f296f0d53252b1b00b64e6d7d3120c67473d3da67e05e7a9bebcef693a74e6a2f05a2674d7b7a7448df8ef493f6419e8
data/.gitignore CHANGED
@@ -4,7 +4,6 @@
4
4
  .config
5
5
  .ruby-*
6
6
  .yardoc
7
- Gemfile.lock
8
7
  InstalledFiles
9
8
  _yardoc
10
9
  coverage
data/Gemfile.lock ADDED
@@ -0,0 +1,173 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ markdown_views (2.2.5)
5
+ commonmarker (>= 0.18.2, < 0.24)
6
+ rails (>= 5.0, < 7.1)
7
+ rouge (>= 3.3, < 5.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actioncable (7.0.4)
13
+ actionpack (= 7.0.4)
14
+ activesupport (= 7.0.4)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (>= 0.6.1)
17
+ actionmailbox (7.0.4)
18
+ actionpack (= 7.0.4)
19
+ activejob (= 7.0.4)
20
+ activerecord (= 7.0.4)
21
+ activestorage (= 7.0.4)
22
+ activesupport (= 7.0.4)
23
+ mail (>= 2.7.1)
24
+ net-imap
25
+ net-pop
26
+ net-smtp
27
+ actionmailer (7.0.4)
28
+ actionpack (= 7.0.4)
29
+ actionview (= 7.0.4)
30
+ activejob (= 7.0.4)
31
+ activesupport (= 7.0.4)
32
+ mail (~> 2.5, >= 2.5.4)
33
+ net-imap
34
+ net-pop
35
+ net-smtp
36
+ rails-dom-testing (~> 2.0)
37
+ actionpack (7.0.4)
38
+ actionview (= 7.0.4)
39
+ activesupport (= 7.0.4)
40
+ rack (~> 2.0, >= 2.2.0)
41
+ rack-test (>= 0.6.3)
42
+ rails-dom-testing (~> 2.0)
43
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
44
+ actiontext (7.0.4)
45
+ actionpack (= 7.0.4)
46
+ activerecord (= 7.0.4)
47
+ activestorage (= 7.0.4)
48
+ activesupport (= 7.0.4)
49
+ globalid (>= 0.6.0)
50
+ nokogiri (>= 1.8.5)
51
+ actionview (7.0.4)
52
+ activesupport (= 7.0.4)
53
+ builder (~> 3.1)
54
+ erubi (~> 1.4)
55
+ rails-dom-testing (~> 2.0)
56
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
57
+ activejob (7.0.4)
58
+ activesupport (= 7.0.4)
59
+ globalid (>= 0.3.6)
60
+ activemodel (7.0.4)
61
+ activesupport (= 7.0.4)
62
+ activerecord (7.0.4)
63
+ activemodel (= 7.0.4)
64
+ activesupport (= 7.0.4)
65
+ activestorage (7.0.4)
66
+ actionpack (= 7.0.4)
67
+ activejob (= 7.0.4)
68
+ activerecord (= 7.0.4)
69
+ activesupport (= 7.0.4)
70
+ marcel (~> 1.0)
71
+ mini_mime (>= 1.1.0)
72
+ activesupport (7.0.4)
73
+ concurrent-ruby (~> 1.0, >= 1.0.2)
74
+ i18n (>= 1.6, < 2)
75
+ minitest (>= 5.1)
76
+ tzinfo (~> 2.0)
77
+ ansi (1.5.0)
78
+ builder (3.2.4)
79
+ commonmarker (0.23.6)
80
+ concurrent-ruby (1.1.10)
81
+ crass (1.0.6)
82
+ digest (3.1.0)
83
+ erubi (1.11.0)
84
+ globalid (1.0.0)
85
+ activesupport (>= 5.0)
86
+ i18n (1.12.0)
87
+ concurrent-ruby (~> 1.0)
88
+ loofah (2.19.0)
89
+ crass (~> 1.0.2)
90
+ nokogiri (>= 1.5.9)
91
+ mail (2.7.1)
92
+ mini_mime (>= 0.1.1)
93
+ marcel (1.0.2)
94
+ method_source (1.0.0)
95
+ mini_mime (1.1.2)
96
+ mini_portile2 (2.8.0)
97
+ minitest (5.16.3)
98
+ minitest-reporters (1.5.0)
99
+ ansi
100
+ builder
101
+ minitest (>= 5.0)
102
+ ruby-progressbar
103
+ net-imap (0.2.3)
104
+ digest
105
+ net-protocol
106
+ strscan
107
+ net-pop (0.1.1)
108
+ digest
109
+ net-protocol
110
+ timeout
111
+ net-protocol (0.1.3)
112
+ timeout
113
+ net-smtp (0.3.1)
114
+ digest
115
+ net-protocol
116
+ timeout
117
+ nio4r (2.5.8)
118
+ nokogiri (1.13.8)
119
+ mini_portile2 (~> 2.8.0)
120
+ racc (~> 1.4)
121
+ racc (1.6.0)
122
+ rack (2.2.4)
123
+ rack-test (2.0.2)
124
+ rack (>= 1.3)
125
+ rails (7.0.4)
126
+ actioncable (= 7.0.4)
127
+ actionmailbox (= 7.0.4)
128
+ actionmailer (= 7.0.4)
129
+ actionpack (= 7.0.4)
130
+ actiontext (= 7.0.4)
131
+ actionview (= 7.0.4)
132
+ activejob (= 7.0.4)
133
+ activemodel (= 7.0.4)
134
+ activerecord (= 7.0.4)
135
+ activestorage (= 7.0.4)
136
+ activesupport (= 7.0.4)
137
+ bundler (>= 1.15.0)
138
+ railties (= 7.0.4)
139
+ rails-dom-testing (2.0.3)
140
+ activesupport (>= 4.2.0)
141
+ nokogiri (>= 1.6)
142
+ rails-html-sanitizer (1.4.3)
143
+ loofah (~> 2.3)
144
+ railties (7.0.4)
145
+ actionpack (= 7.0.4)
146
+ activesupport (= 7.0.4)
147
+ method_source
148
+ rake (>= 12.2)
149
+ thor (~> 1.0)
150
+ zeitwerk (~> 2.5)
151
+ rake (13.0.6)
152
+ rouge (4.0.0)
153
+ ruby-progressbar (1.11.0)
154
+ strscan (3.0.4)
155
+ thor (1.2.1)
156
+ timeout (0.3.0)
157
+ tzinfo (2.0.5)
158
+ concurrent-ruby (~> 1.0)
159
+ websocket-driver (0.7.5)
160
+ websocket-extensions (>= 0.1.0)
161
+ websocket-extensions (0.1.5)
162
+ zeitwerk (2.6.0)
163
+
164
+ PLATFORMS
165
+ ruby
166
+
167
+ DEPENDENCIES
168
+ markdown_views!
169
+ minitest-reporters
170
+ rake
171
+
172
+ BUNDLED WITH
173
+ 2.2.33
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2021 thomas morgan
1
+ Copyright (c) 2014-2022 thomas morgan
2
2
 
3
3
  MIT License
4
4
 
@@ -16,9 +16,6 @@ module MarkdownViews
16
16
  doc = CommonMarker.render_doc(input, MarkdownViews.parsing_opts, MarkdownViews.extensions)
17
17
 
18
18
  MarkdownViews.transformers.each {|name| send("transform_#{name}", doc) }
19
- # TODO: investigate using this for transformers instead:
20
- # https://github.com/gjtorikian/html-pipeline (same author as commonmarker gem)
21
- # **really interesting -- for a bunch of potential use cases
22
19
 
23
20
  doc.to_html(MarkdownViews.rendering_opts, MarkdownViews.extensions)
24
21
  end
@@ -1,3 +1,3 @@
1
1
  module MarkdownViews
2
- VERSION = '2.2.3'
2
+ VERSION = '2.2.5'
3
3
  end
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency 'commonmarker', '>= 0.18.2', '< 0.24'
22
- spec.add_dependency 'rails', '>= 5.0', '< 6.2'
23
- spec.add_dependency 'rouge', '~> 3.3'
22
+ spec.add_dependency 'rails', '>= 5.0', '< 7.1'
23
+ spec.add_dependency 'rouge', '>= 3.3', '< 5.0'
24
24
 
25
25
  # spec.add_development_dependency "bundler", "> 1.5"
26
26
  spec.add_development_dependency "minitest-reporters"
@@ -16,7 +16,6 @@ class StripCommentsTest < Minitest::Test
16
16
  assert_equal "a c", strip_comments("a <!-- b --> c"), 'double whitespace'
17
17
  assert_equal "ac", strip_comments("a<!--b-->c"), 'comment w/o whitespace'
18
18
  assert_equal "a \nc", strip_comments("a <!-- b -->\nc"), 'trailing comment'
19
- # could drop trailing space, but is unnecessary
20
19
  assert_equal "a\n c", strip_comments("a\n<!-- b --> c"), 'leading comment'
21
20
  end
22
21
 
@@ -25,11 +24,7 @@ class StripCommentsTest < Minitest::Test
25
24
  assert_equal "14", strip_comments("1<!-- 2\n3 -->4"), 'no whitespace'
26
25
  assert_equal "1 4", strip_comments("1 <!-- 2\n3 --> 4"), 'with whitespace'
27
26
  assert_equal "1\n 4", strip_comments("1\n <!-- 2\n3 --> 4"), 'leading whitespace on comment'
28
- # ^
29
- # should this absorb whitespace (preceeding line 2) on an otherwise empty line? ... debatable
30
27
  assert_equal "1 \n4", strip_comments("1 <!-- 2\n3 --> \n4"), 'trailing whitespace on comment'
31
- # ^
32
- # this one too (the space following 3)?
33
28
  assert_equal "1 \n 4", strip_comments("1 \n<!-- 2\n3 --> 4"), 'trailing whitespace on line'
34
29
  assert_equal "1 \n 4", strip_comments("1 <!-- 2\n3 -->\n 4"), 'leading whitespace on line'
35
30
  end
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.2.3
4
+ version: 2.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-11 00:00:00.000000000 Z
11
+ date: 2022-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commonmarker
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '5.0'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '6.2'
42
+ version: '7.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,21 +49,27 @@ dependencies:
49
49
  version: '5.0'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '6.2'
52
+ version: '7.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rouge
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: '3.3'
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '5.0'
60
63
  type: :runtime
61
64
  prerelease: false
62
65
  version_requirements: !ruby/object:Gem::Requirement
63
66
  requirements:
64
- - - "~>"
67
+ - - ">="
65
68
  - !ruby/object:Gem::Version
66
69
  version: '3.3'
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '5.0'
67
73
  - !ruby/object:Gem::Dependency
68
74
  name: minitest-reporters
69
75
  requirement: !ruby/object:Gem::Requirement
@@ -102,6 +108,7 @@ extra_rdoc_files: []
102
108
  files:
103
109
  - ".gitignore"
104
110
  - Gemfile
111
+ - Gemfile.lock
105
112
  - LICENSE.txt
106
113
  - README.md
107
114
  - Rakefile
@@ -151,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
158
  - !ruby/object:Gem::Version
152
159
  version: '0'
153
160
  requirements: []
154
- rubygems_version: 3.2.22
161
+ rubygems_version: 3.2.33
155
162
  signing_key:
156
163
  specification_version: 4
157
164
  summary: Add .md template handler to Rails.