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: c6fa514c9fb252d09aa62c0d8b8a02b81674b674e859f96e5eed1e63affef6a7
4
- data.tar.gz: 89c54cdd6239871fca3f5c8a4eab3a142c181e7e922a662f9211ceb8fa9befc0
3
+ metadata.gz: 7931a4b45d301e84a32199bdeb55c8b88354ab100e03343b471f133f67703efd
4
+ data.tar.gz: 8add6626be35350d1fb4017baf8239c9d60d31f8ffb9c5218d6f3caebe52d9ff
5
5
  SHA512:
6
- metadata.gz: 33181047147b12cd3f2a847229879dc413aeff1a54af71fe78841bdbc45b76f5674e1ce154cac377680e4071c50a304e23a772aaf3d8705c5ba36171b18e80c0
7
- data.tar.gz: '03864db7acadfd5aa62eeb2cdeac117a2dd7565f3901b5d7efe5196d27b764cb900db36daa45c9bdf93437fddd8de054f5829db25cecd3a312ac1620de38c705'
6
+ metadata.gz: 9ccc13b39c9a1fba48b6e5fb5baf136702dc0f1b9171206389b869be6fbfbc103e4f25c677ac3caefa945e6e28ed16adde1f12248a02f8f95500df49a996728c
7
+ data.tar.gz: 706bf6154f6c2833bf6da66a7bce54715167593f65e30e8432ff6a4b5194947d529b641e2bc299c41ed6406ecb10c9b07a332572f8e034f1b11efc45394b9a21
@@ -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
- * `#to_stripped_s` removes leading & trailing white-space (null, horizontal tab, line feed, vertical tab, form feed, carriage return, space) using Ruby's `#strip`
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
- * Mongoid 7 compatibility
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
- Redcarpet::Markdown.new(InlineRenderer, tables: false)
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
@@ -1,3 +1,3 @@
1
1
  module MongoidMarkdownExtension
2
- VERSION = '0.1.9'.freeze
2
+ VERSION = '0.1.10'.freeze
3
3
  end
@@ -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', '~> 1.6'
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.9
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: 2018-12-10 00:00:00.000000000 Z
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: '1.6'
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: '1.6'
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
- rubyforge_project:
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