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 +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -1
- data/lib/md2key/diagram.rb +5 -4
- data/lib/md2key/version.rb +1 -1
- data/md2key.gemspec +5 -5
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 333f3d44c403d90febb81f114a7ef8e17484dec402878cac957b2e627e94e498
|
4
|
+
data.tar.gz: a954aaf470e2a8ef4323e64bae5120580bc9cf4a1bad5d4b587dbdfd05d4449d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/md2key/diagram.rb
CHANGED
@@ -14,8 +14,9 @@ module Md2key
|
|
14
14
|
|
15
15
|
output_dir = File.dirname(file.path)
|
16
16
|
image_path = ""
|
17
|
-
IO.popen("
|
18
|
-
|
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
|
29
|
+
return if system('which -s mmdc')
|
29
30
|
|
30
|
-
abort "`
|
31
|
+
abort "`mmdc` is not available. Try `npm install -g mermaid.cli`."
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
data/lib/md2key/version.rb
CHANGED
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', '
|
25
|
-
spec.add_dependency 'redcarpet', '
|
26
|
-
spec.add_dependency 'oga', '
|
27
|
-
spec.add_development_dependency 'bundler'
|
28
|
-
spec.add_development_dependency 'rake'
|
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.
|
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: '
|
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: '
|
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: '
|
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: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: pry
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|