mato 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75137834cf4deb0e342bdcbaa56f0cd67add1e9f
4
- data.tar.gz: 9176ae609252eb6c3f8ff03d54dad88e058a43b3
3
+ metadata.gz: 16e9c1e34a9de8097eac4c6dc8ac7483396840d3
4
+ data.tar.gz: c973f404428162926476f304f4065adf67a6c39e
5
5
  SHA512:
6
- metadata.gz: 0b12b22cb4b8af097567b69e1c6ac96a52771c60f843d0cb79ee0e41f21b49997f67ea37fe0e80773c607f483122540eee1af6b9e14dc259972782833b77dcc4
7
- data.tar.gz: 7d3cc6075697c57f5faf568feb7c7303c42782b9b7fdc784135e176578808e181912a41f30df7b4e000948b11d6a3c208a3a91eb9c9886ca6b3a62724d9a22cc
6
+ metadata.gz: 8b4ba43e301ce5acb9f64c30337492d7de2f826bcf84d129bac651f80dbc8a7d8af79e589397e85ccd904607f84d4841bd313a972e68f7b93b443c022025fc92
7
+ data.tar.gz: 1506a0cf205c34f83ce14965827c17fb3f7d660d4ea117df645846b5f9a51559756969b9dc494089ff2f94be5cd7072ed07ed4456ff890d8f0d555f041124a7b
@@ -1,10 +1,16 @@
1
1
  # The revision history of Mato
2
2
 
3
+ ## v1.3.3 - 2017/09/22
4
+
5
+ https://github.com/bitjourney/mato/compare/v1.2.2...1.2.3
6
+
7
+ * Requires rouge v3.0.0 or later with simpler code [#9](https://github.com/bitjourney/mato/pull/9)
8
+
3
9
  ## v1.2.2 - 2017/08/31
4
10
 
5
11
  https://github.com/bitjourney/mato/compare/v1.2.0...v1.2.2
6
12
 
7
- * Add hyphen(-) to MENTION_PATTERN [#8](https://github.com/bitjourney/mato/pull/8)
13
+ * Added hyphen(-) to MENTION_PATTERN [#8](https://github.com/bitjourney/mato/pull/8)
8
14
 
9
15
  ## v1.2.0 - 2017/08/28
10
16
 
data/Gemfile CHANGED
@@ -5,7 +5,6 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in mato.gemspec
6
6
  gemspec
7
7
 
8
- gem "rouge", ">= 2.0"
9
8
  gem "sanitize", ">= 3.0"
10
9
 
11
10
  gem "bundler", ">= 1.14"
@@ -24,13 +24,7 @@ module Mato
24
24
  return lexer.new
25
25
  end
26
26
 
27
- lexers = Rouge::Lexer.guesses(filename: filename, source: source)
28
-
29
- if lexers.empty?
30
- Rouge::Lexers::PlainText.new
31
- else
32
- lexers.first.new
33
- end
27
+ Rouge::Lexer.guess(filename: filename, source: source, &:first).new
34
28
  end
35
29
 
36
30
  # @param [String,nil] CSS class names, e.g. "foo.js" "ruby:foo.rb"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mato
4
- VERSION = "1.2.2"
4
+ VERSION = "1.2.3"
5
5
  end
@@ -24,4 +24,5 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_runtime_dependency "nokogiri", ">= 1.6"
26
26
  spec.add_runtime_dependency "commonmarker", ">= 0.14"
27
+ spec.add_runtime_dependency "rouge", ">= 3.0.0"
27
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mato
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - FUJI Goro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-31 00:00:00.000000000 Z
11
+ date: 2017-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.14'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rouge
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 3.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 3.0.0
41
55
  description: A pipeline-based markdown toolkit with CommonMark(er)
42
56
  email:
43
57
  - goro-fuj@bitjoureny.com