mermaid-publisher 0.0.1 → 0.0.2

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: f248652a3ce5c5d69326e7f1ff64cc2efc79e512
4
- data.tar.gz: 2eea76c973c63cbe1494c8ab592cd1c8e10762c7
3
+ metadata.gz: 837c507197fd338ca9edb9d11a4a4dfc672d2291
4
+ data.tar.gz: 3e454c257a4b78dc549ccc4a00a3fc7cf585ff1d
5
5
  SHA512:
6
- metadata.gz: ba83345da537ce647c32ede021d1a8babc44288ab8a8f4ef03aea883d01d247da667a051af3ad116488f1a44b2ebcc8ecb80443db7d710096a6e407571f31116
7
- data.tar.gz: 4e3ed2204eb1832c6bca67f1c58ec9a8cbe22ca8fc13013412968ca19d0f277c79e4236d8a13d044cea3cabbc0c6f8e791417771af0ee770e918d5000d3d86b7
6
+ metadata.gz: 42684fa5672459cb904445e054e96bab860539cb8e209e341a06497bf4fdae253542cfde590c46293f7293df0691534f3747a7e4d0c0c172d1990646a5c69877
7
+ data.tar.gz: bf8687c15b5ab810f42b9552ad76d2c09fec4ef824022332c989bfeed610185a201403a3dd4f00e06e0320670d2d7639d512cf8f4aa86f7575bd2a6935a9f990
data/lib/mermaid_cli.rb CHANGED
@@ -55,6 +55,7 @@ class MermaidCLI
55
55
  "-i", src_path,
56
56
  "-C", css_path,
57
57
  "-c", config_path,
58
+ "-p", puppeteer_config_path,
58
59
  "-o", dest_pdf_path
59
60
  ].map { |part| Shellwords.escape(part) }
60
61
 
@@ -72,4 +73,9 @@ class MermaidCLI
72
73
  def config_path
73
74
  File.expand_path("../mermaid.json", __dir__)
74
75
  end
76
+
77
+ def puppeteer_config_path
78
+ File.expand_path("../puppeteer.json", __dir__)
79
+ end
80
+
75
81
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "mermaid-publisher"
7
- spec.version = "0.0.1"
7
+ spec.version = "0.0.2"
8
8
  spec.authors = ["Phuong Nguyen"]
9
9
  spec.email = ["phuongnd08@gmail.com"]
10
10
  spec.summary = %q{Publish mermaid to gdrive}
data/puppeteer.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "headless": true,
3
+ "args": ["--no-sandbox"]
4
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mermaid-publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phuong Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-28 00:00:00.000000000 Z
11
+ date: 2019-08-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Publish mermaid to gdrive
14
14
  email:
@@ -28,6 +28,7 @@ files:
28
28
  - mermaid.css
29
29
  - mermaid.json
30
30
  - package.json
31
+ - puppeteer.json
31
32
  - sample/flowchart.mmd
32
33
  - yarn.lock
33
34
  homepage: https://github.com/remitano/mermaid-publisher