prolog-services-markdown_to_html 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +46 -0
- data/README.md +2 -0
- data/Rakefile +1 -0
- data/lib/prolog/services/markdown_to_html.rb +1 -0
- data/lib/prolog/services/markdown_to_html/renderer.rb +1 -0
- data/lib/prolog/services/markdown_to_html/renderer/html_pipeline_converter.rb +3 -2
- data/lib/prolog/services/markdown_to_html/version.rb +2 -1
- data/prolog-services-markdown_to_html.gemspec +6 -6
- metadata +18 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 961101edc34b8d57ee2a3921a2419d1adb3d7ed9
|
4
|
+
data.tar.gz: 10f94d2bc7fce82f8d1d9faa5a699a6a7dd818b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 676b9c13e264973456aadc01d402a17ff7e3c62a94dc547a893b1f2fa0cf7dfd61ee4e58c5c5e685f5d51a08fb493bcc46315c159c0a2cc8d2fd04c3949e947c
|
7
|
+
data.tar.gz: 6e3f0d34adc2c7ab0f56f480476c8278b225de87cf1d3eefb4dd8aa4157d79134b933105f1f2fad43181f216a447e9049c22959a0f7fc79b1be3b6ba8761514a
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
|
2
|
+
# CodeClimate runs an older version of RuboCop, which apparently doesn't
|
3
|
+
# understand the `AllCops` setting. So we do it The Hard Way.
|
4
|
+
|
5
|
+
Metrics/LineLength:
|
6
|
+
Exclude:
|
7
|
+
- Rakefile
|
8
|
+
- prolog-services-replace_content.gemspec
|
9
|
+
|
10
|
+
Style/PercentLiteralDelimiters:
|
11
|
+
Exclude:
|
12
|
+
- prolog-services-replace_content.gemspec
|
13
|
+
|
14
|
+
Style/PercentQLiterals:
|
15
|
+
Exclude:
|
16
|
+
- prolog-services-replace_content.gemspec
|
17
|
+
|
18
|
+
Style/StringLiterals:
|
19
|
+
Exclude:
|
20
|
+
- Rakefile
|
21
|
+
- prolog-services-replace_content.gemspec
|
22
|
+
- bin/console
|
23
|
+
|
24
|
+
Style/UnneededPercentQ:
|
25
|
+
Exclude:
|
26
|
+
- prolog-services-replace_content.gemspec
|
27
|
+
|
28
|
+
Style/WordArray:
|
29
|
+
Exclude:
|
30
|
+
- Rakefile
|
31
|
+
|
32
|
+
# 'Real' settings follow. ###################################
|
33
|
+
|
34
|
+
AllCops:
|
35
|
+
TargetRubyVersion: 2.3
|
36
|
+
|
37
|
+
Metrics/AbcSize:
|
38
|
+
Exclude:
|
39
|
+
- test/prolog/use_cases/propose_edit_contribution_test.rb
|
40
|
+
|
41
|
+
Metrics/MethodLength:
|
42
|
+
Exclude:
|
43
|
+
- test/prolog/use_cases/propose_edit_contribution_test.rb
|
44
|
+
|
45
|
+
Style/Alias:
|
46
|
+
Enabled: false
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Prolog::Services::MarkdownToHtml
|
2
2
|
|
3
|
+
[ ![Codeship Status for TheProlog/prolog-services-markdown_to_html](https://codeship.com/projects/a6037340-dbee-0133-f020-32121d68b74a/status?branch=master)](https://codeship.com/projects/143979)
|
4
|
+
|
3
5
|
This Gem was extracted from a number of internally-developed applications, which should somewhat explain the namespacing and the initial version number being set to `1.0.0`.
|
4
6
|
|
5
7
|
The Gem provides an (extremely) simple API for converting valid Markdown content, including embedded HTML, to valid HTML that "just happens" to be well-formed XML. This means, *inter alia,* that
|
data/Rakefile
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
3
|
require 'html/pipeline'
|
3
4
|
|
@@ -23,8 +24,8 @@ module Prolog
|
|
23
24
|
# As per https://www.w3.org/TR/html-markup/syntax.html#void-element
|
24
25
|
def self.clean_void_elements(markup)
|
25
26
|
markup.gsub(/<br(.*?)>/, '<br\1/>')
|
26
|
-
|
27
|
-
|
27
|
+
.gsub(/<hr(.*?)>/, '<hr\1/>')
|
28
|
+
.gsub(/<img(.*?)>/, '<img\1/>')
|
28
29
|
end
|
29
30
|
|
30
31
|
def self.strip_lines_in(content)
|
@@ -35,21 +35,21 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_dependency "html-pipeline", "~> 2.3"
|
36
36
|
spec.add_dependency "gemoji", "~> 2.1"
|
37
37
|
spec.add_dependency "github-markdown", "0.6.9"
|
38
|
-
spec.add_dependency "rinku", "~>
|
38
|
+
spec.add_dependency "rinku", "~> 2.0"
|
39
39
|
|
40
40
|
spec.add_development_dependency "bundler", "~> 1.11"
|
41
|
-
spec.add_development_dependency "rake", "~>
|
41
|
+
spec.add_development_dependency "rake", "~> 11"
|
42
42
|
spec.add_development_dependency "minitest", "~> 5.0"
|
43
43
|
|
44
44
|
spec.add_development_dependency "minitest-matchers", "~> 1.4"
|
45
45
|
spec.add_development_dependency "minitest-reporters", "~> 1.0"
|
46
46
|
spec.add_development_dependency "minitest-tagz", "~> 1.2"
|
47
47
|
spec.add_development_dependency "flay", "~> 2.6"
|
48
|
-
spec.add_development_dependency "flog", "~> 4
|
49
|
-
spec.add_development_dependency "reek", "~>
|
50
|
-
spec.add_development_dependency "rubocop", "0.
|
48
|
+
spec.add_development_dependency "flog", "~> 4", ">= 4.4.0"
|
49
|
+
spec.add_development_dependency "reek", "~> 4.0"
|
50
|
+
spec.add_development_dependency "rubocop", "0.39.0"
|
51
51
|
spec.add_development_dependency "simplecov", "~> 0.10"
|
52
|
-
spec.add_development_dependency "pry-byebug", "~> 3.
|
52
|
+
spec.add_development_dependency "pry-byebug", "~> 3.4"
|
53
53
|
spec.add_development_dependency "pry-doc", "~> 0.8"
|
54
54
|
spec.add_development_dependency "colorize", "~> 0.7", ">= 0.7.7"
|
55
55
|
spec.add_development_dependency "awesome_print", "~> 1.6", ">= 1.6.1"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prolog-services-markdown_to_html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Dickey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ox
|
@@ -72,20 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
76
|
-
- - ">="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: 1.7.3
|
75
|
+
version: '2.0'
|
79
76
|
type: :runtime
|
80
77
|
prerelease: false
|
81
78
|
version_requirements: !ruby/object:Gem::Requirement
|
82
79
|
requirements:
|
83
80
|
- - "~>"
|
84
81
|
- !ruby/object:Gem::Version
|
85
|
-
version: '
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: 1.7.3
|
82
|
+
version: '2.0'
|
89
83
|
- !ruby/object:Gem::Dependency
|
90
84
|
name: bundler
|
91
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +100,14 @@ dependencies:
|
|
106
100
|
requirements:
|
107
101
|
- - "~>"
|
108
102
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
103
|
+
version: '11'
|
110
104
|
type: :development
|
111
105
|
prerelease: false
|
112
106
|
version_requirements: !ruby/object:Gem::Requirement
|
113
107
|
requirements:
|
114
108
|
- - "~>"
|
115
109
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
110
|
+
version: '11'
|
117
111
|
- !ruby/object:Gem::Dependency
|
118
112
|
name: minitest
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -190,48 +184,48 @@ dependencies:
|
|
190
184
|
requirements:
|
191
185
|
- - "~>"
|
192
186
|
- !ruby/object:Gem::Version
|
193
|
-
version: '4
|
187
|
+
version: '4'
|
194
188
|
- - ">="
|
195
189
|
- !ruby/object:Gem::Version
|
196
|
-
version: 4.
|
190
|
+
version: 4.4.0
|
197
191
|
type: :development
|
198
192
|
prerelease: false
|
199
193
|
version_requirements: !ruby/object:Gem::Requirement
|
200
194
|
requirements:
|
201
195
|
- - "~>"
|
202
196
|
- !ruby/object:Gem::Version
|
203
|
-
version: '4
|
197
|
+
version: '4'
|
204
198
|
- - ">="
|
205
199
|
- !ruby/object:Gem::Version
|
206
|
-
version: 4.
|
200
|
+
version: 4.4.0
|
207
201
|
- !ruby/object:Gem::Dependency
|
208
202
|
name: reek
|
209
203
|
requirement: !ruby/object:Gem::Requirement
|
210
204
|
requirements:
|
211
205
|
- - "~>"
|
212
206
|
- !ruby/object:Gem::Version
|
213
|
-
version: '
|
207
|
+
version: '4.0'
|
214
208
|
type: :development
|
215
209
|
prerelease: false
|
216
210
|
version_requirements: !ruby/object:Gem::Requirement
|
217
211
|
requirements:
|
218
212
|
- - "~>"
|
219
213
|
- !ruby/object:Gem::Version
|
220
|
-
version: '
|
214
|
+
version: '4.0'
|
221
215
|
- !ruby/object:Gem::Dependency
|
222
216
|
name: rubocop
|
223
217
|
requirement: !ruby/object:Gem::Requirement
|
224
218
|
requirements:
|
225
219
|
- - '='
|
226
220
|
- !ruby/object:Gem::Version
|
227
|
-
version: 0.
|
221
|
+
version: 0.39.0
|
228
222
|
type: :development
|
229
223
|
prerelease: false
|
230
224
|
version_requirements: !ruby/object:Gem::Requirement
|
231
225
|
requirements:
|
232
226
|
- - '='
|
233
227
|
- !ruby/object:Gem::Version
|
234
|
-
version: 0.
|
228
|
+
version: 0.39.0
|
235
229
|
- !ruby/object:Gem::Dependency
|
236
230
|
name: simplecov
|
237
231
|
requirement: !ruby/object:Gem::Requirement
|
@@ -252,14 +246,14 @@ dependencies:
|
|
252
246
|
requirements:
|
253
247
|
- - "~>"
|
254
248
|
- !ruby/object:Gem::Version
|
255
|
-
version: '3.
|
249
|
+
version: '3.4'
|
256
250
|
type: :development
|
257
251
|
prerelease: false
|
258
252
|
version_requirements: !ruby/object:Gem::Requirement
|
259
253
|
requirements:
|
260
254
|
- - "~>"
|
261
255
|
- !ruby/object:Gem::Version
|
262
|
-
version: '3.
|
256
|
+
version: '3.4'
|
263
257
|
- !ruby/object:Gem::Dependency
|
264
258
|
name: pry-doc
|
265
259
|
requirement: !ruby/object:Gem::Requirement
|
@@ -327,6 +321,7 @@ extensions: []
|
|
327
321
|
extra_rdoc_files: []
|
328
322
|
files:
|
329
323
|
- ".gitignore"
|
324
|
+
- ".rubocop.yml"
|
330
325
|
- ".travis.yml"
|
331
326
|
- CODE_OF_CONDUCT.md
|
332
327
|
- Gemfile
|
@@ -361,7 +356,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
361
356
|
version: '0'
|
362
357
|
requirements: []
|
363
358
|
rubyforge_project:
|
364
|
-
rubygems_version: 2.6.
|
359
|
+
rubygems_version: 2.6.4
|
365
360
|
signing_key:
|
366
361
|
specification_version: 4
|
367
362
|
summary: Converts Markdown content to HTML with minimal whitespace.
|