commonmarker-rouge 1.0.1 → 1.1.0

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
  SHA1:
3
- metadata.gz: 45a701bde4af066195349eafbf37b0acfe8962ac
4
- data.tar.gz: aa914b058f50d020a0e986e9ef262722838974ce
3
+ metadata.gz: d71f8505f1dabd01cb8c1a45b12242fdcff30882
4
+ data.tar.gz: a90f9683a0c5248d4e34004d27ab1f6c4b3413ec
5
5
  SHA512:
6
- metadata.gz: 5a35c40762d8c27ae33433960f01c2ce62dcad6a48c0f14879d335b00f25862bb748cbe145a8daf4e5cc839b897efdca6fe1cd86a8c5ce7f9b51dee3a7e0c613
7
- data.tar.gz: e7371c51d1b49a309cd9ceaeb753b89bb21052daa7b2783f6a85a697b65d21ac4aacd90d8ac8a6d8fe8e2fee0a76326b7b1a366062660ceed059e746dfe65779
6
+ metadata.gz: 534959c54af71b74d50e5fdeddec614141b5a27f35ead5831ad3f3a9e04bf3d4956535e79cb8d7b5c4111925fdc3d922a4748bd3b9b8b9342b6ee646afdc64ee
7
+ data.tar.gz: d3bab76c5ab5706eceecd6254413d9e3ce3ee65d8a6c4d7daccea14e0b7bca99d0101a1d947564ca834aa1d2b92ea6688f295e3396778b7f47f0c5a88f7327a7
data/README.md CHANGED
@@ -24,7 +24,7 @@ CommonMarker::Rouge.render_html(content)
24
24
  CommonMarker::Rouge.render_doc(content)
25
25
 
26
26
  # pass options to CommonMarker
27
- CommonMarker::Rouge.render_html(content, [:normalize, :sourcepos])
27
+ CommonMarker::Rouge.render_html(content, [:SAFE, :SOURCEPOS])
28
28
 
29
29
  # use custom CommonMarker wrapper (must provide compatible render_doc)
30
30
  CommonMarker::Rouge.render_html(content, cmark_class: CommonMarkerWrapper)
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = '>= 2.0.0'
22
22
 
23
- spec.add_dependency 'commonmarker', '> 0.8.0', '< 1.0'
23
+ spec.add_dependency 'commonmarker', '>= 0.14.5', '< 1.0'
24
24
  spec.add_dependency 'rouge', '~> 1.10'
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 1.11'
@@ -7,7 +7,7 @@ module CommonMarker
7
7
  module Rouge
8
8
  module_function
9
9
 
10
- def render_doc(text, cmark_options = :default, **highmark_options)
10
+ def render_doc(text, cmark_options = :DEFAULT, **highmark_options)
11
11
  cmark = highmark_options[:cmark_class] || ::CommonMarker
12
12
 
13
13
  ast = cmark.render_doc(text, cmark_options)
@@ -15,7 +15,7 @@ module CommonMarker
15
15
  ast
16
16
  end
17
17
 
18
- def render_html(text, cmark_options = :default)
18
+ def render_html(text, cmark_options = :DEFAULT)
19
19
  render_doc(text, cmark_options).to_html
20
20
  end
21
21
 
@@ -1,5 +1,5 @@
1
1
  module CommonMarker
2
2
  module Rouge
3
- VERSION = '1.0.1'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,22 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonmarker-rouge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Smirnov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-17 00:00:00.000000000 Z
11
+ date: 2017-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commonmarker
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.0
19
+ version: 0.14.5
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '1.0'
@@ -24,9 +24,9 @@ dependencies:
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.8.0
29
+ version: 0.14.5
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '1.0'
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  version: '0'
140
140
  requirements: []
141
141
  rubyforge_project:
142
- rubygems_version: 2.4.8
142
+ rubygems_version: 2.6.12
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: CommonMarker wrapper with Rouge syntax highlighter