md2key 0.9.5 → 0.10.1

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: f3f2507bf59d5de3317e603cc333f23de9e4c022e881250f8577eb349e232c35
4
- data.tar.gz: 62f934e487e63bd750b611da012eea6de9284630d290354883939ddbc73ae1f9
3
+ metadata.gz: 333f3d44c403d90febb81f114a7ef8e17484dec402878cac957b2e627e94e498
4
+ data.tar.gz: a954aaf470e2a8ef4323e64bae5120580bc9cf4a1bad5d4b587dbdfd05d4449d
5
5
  SHA512:
6
- metadata.gz: 12f4764db23c38cd55344e70d2422bfd62bd7075e42975d52406d9593008777c7e348fc23381b8e08bb8ccd27e18a05849e5f8c4d1d939a972a336ee2b20b26f
7
- data.tar.gz: 2aaed63195590d65e5890b0580273045effa5ce7702a5aab4ab557ccb2d2d52dc9e13b21826b6b9fdf4d9c6012c46392dc38d20bcc9c0ac5f56c650751d73c80
6
+ metadata.gz: f3cb704e29d9b47afe25f11f23877aed73ff690db67e1989a269e26af744ac28471d5ef1b87e72ff862fc2dbcf07ad31dd372cc261e45d528dcf1922988ae84b
7
+ data.tar.gz: 248e01039697e05215365bdc5c1d409c1e9458edf48e58bed831ca81e2d85b7c272cb42e53dcc8a5def1d316016bd65f77d9963252f5bfbc392cd1bf852ce9b1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # v0.10.1
2
+
3
+ - Relax dependency version requirements
4
+
5
+ # v0.10.0
6
+
7
+ - Switch from `mermaid` to `mmdc` to support newer Mermaid
8
+ https://github.com/k0kubun/md2key/pull/48
9
+
1
10
  # v0.9.5
2
11
 
3
12
  - Fix keyword argument errors with slide theme selection for Ruby 3
data/Gemfile CHANGED
@@ -4,5 +4,5 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.2.5")
7
- gem 'listen', '~> 3.0'
7
+ gem 'listen', '>= 3.0'
8
8
  end
@@ -14,8 +14,9 @@ module Md2key
14
14
 
15
15
  output_dir = File.dirname(file.path)
16
16
  image_path = ""
17
- IO.popen("mermaid #{file.path} | grep 'saved png' | awk -F':' '\{print $2\}'", 'r+') do |info|
18
- image_path = info.read.strip
17
+ IO.popen("mmdc -i #{file.path} --output #{file.path}.png", 'r') do |info|
18
+ info.read
19
+ image_path = "#{file.path}.png"
19
20
  file.unlink
20
21
  end
21
22
 
@@ -25,9 +26,9 @@ module Md2key
25
26
  private
26
27
 
27
28
  def ensure_mermaid_availability
28
- return if system('which -s mermaid')
29
+ return if system('which -s mmdc')
29
30
 
30
- abort "`mermaid` is not available. Try `npm install -g phantomjs mermaid`."
31
+ abort "`mmdc` is not available. Try `npm install -g mermaid.cli`."
31
32
  end
32
33
  end
33
34
  end
@@ -1,3 +1,3 @@
1
1
  module Md2key
2
- VERSION = '0.9.5'
2
+ VERSION = '0.10.1'
3
3
  end
data/md2key.gemspec CHANGED
@@ -21,10 +21,10 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
- spec.add_dependency 'thor', '~> 0.19'
25
- spec.add_dependency 'redcarpet', '~> 3.3'
26
- spec.add_dependency 'oga', '~> 1.2'
27
- spec.add_development_dependency 'bundler', '>= 1.12'
28
- spec.add_development_dependency 'rake', '~> 10.0'
24
+ spec.add_dependency 'thor', '>= 0.19'
25
+ spec.add_dependency 'redcarpet', '>= 3.3'
26
+ spec.add_dependency 'oga', '>= 1.2'
27
+ spec.add_development_dependency 'bundler'
28
+ spec.add_development_dependency 'rake'
29
29
  spec.add_development_dependency 'pry'
30
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md2key
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
@@ -14,42 +14,42 @@ dependencies:
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.19'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.19'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redcarpet
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: oga
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.2'
55
55
  - !ruby/object:Gem::Dependency
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.12'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.12'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '10.0'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '10.0'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry
85
85
  requirement: !ruby/object:Gem::Requirement