mongoid_markdown_extension 0.1.9 → 0.1.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7931a4b45d301e84a32199bdeb55c8b88354ab100e03343b471f133f67703efd
|
4
|
+
data.tar.gz: 8add6626be35350d1fb4017baf8239c9d60d31f8ffb9c5218d6f3caebe52d9ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ccc13b39c9a1fba48b6e5fb5baf136702dc0f1b9171206389b869be6fbfbc103e4f25c677ac3caefa945e6e28ed16adde1f12248a02f8f95500df49a996728c
|
7
|
+
data.tar.gz: 706bf6154f6c2833bf6da66a7bce54715167593f65e30e8432ff6a4b5194947d529b641e2bc299c41ed6406ecb10c9b07a332572f8e034f1b11efc45394b9a21
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.1.10
|
4
|
+
|
5
|
+
- FIX: pass configuration to `InlineRenderer` as well
|
6
|
+
|
3
7
|
## 0.1.9
|
4
8
|
|
5
|
-
|
9
|
+
- `#to_stripped_s` removes leading & trailing white-space (null, horizontal tab, line feed, vertical tab, form feed, carriage return, space) using Ruby's `#strip`
|
6
10
|
|
7
11
|
## 0.1.8
|
8
12
|
|
9
|
-
|
13
|
+
- Mongoid 7 compatibility
|
@@ -74,7 +74,11 @@ module MongoidMarkdownExtension
|
|
74
74
|
|
75
75
|
# TODO: how to combine custom render class with the InlineRenderer?
|
76
76
|
def markdown_inline_renderer
|
77
|
-
|
77
|
+
render_options = MongoidMarkdownExtension::Markdown.configuration.render_options
|
78
|
+
extensions = MongoidMarkdownExtension::Markdown.configuration.extensions
|
79
|
+
extensions[:tables] = false
|
80
|
+
|
81
|
+
Redcarpet::Markdown.new(InlineRenderer.new(render_options), extensions)
|
78
82
|
end
|
79
83
|
|
80
84
|
def markdown_stripdown_renderer
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_dependency 'redcarpet', '~> 3.4'
|
22
22
|
spec.add_dependency 'mongoid', '>= 4.0', '< 8'
|
23
23
|
|
24
|
-
spec.add_development_dependency 'bundler'
|
24
|
+
spec.add_development_dependency 'bundler'
|
25
25
|
spec.add_development_dependency 'coveralls'
|
26
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_markdown_extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Celizna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redcarpet
|
@@ -48,16 +48,16 @@ dependencies:
|
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: coveralls
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,8 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
|
-
|
132
|
-
rubygems_version: 2.7.6
|
131
|
+
rubygems_version: 3.0.3
|
133
132
|
signing_key:
|
134
133
|
specification_version: 4
|
135
134
|
summary: Custom field type for Mongoid that handles Markdown conversion via Redcarpet
|