jekyll-diagrams 0.4.1 → 0.4.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
  SHA256:
3
- metadata.gz: dc135c21bae95110bcd027381a6750e96ca22b938feda0e6549a077c3c0c4ed4
4
- data.tar.gz: cbe770a9ce89fe6d5bacaef082c049efe9d9fc39ec8eb8f6bbb5d68c5fb6c15b
3
+ metadata.gz: 2e7a08e5324e821b0b1958e73575be47055fb70eadb246fdf10ee026fdf86297
4
+ data.tar.gz: 717098d97341644e3c99bbd72b0e1aa71e6365267819731852d71e200aba7029
5
5
  SHA512:
6
- metadata.gz: '0281f4ae74b941e89481bf60aafb15d2518236452016518abada3b8e2bb5a72f0cf4d89862e000810a62a79a28b66aebc35ce1e414ef6fd1493034f926be726d'
7
- data.tar.gz: 308a7c43031c2b311ebbac3f73d81878d005814067624e03a73a8252af3d3fd29a6ced59b3cb71611c8cf79ee38d5375ba78b06a81e0694c030ce47089a14937
6
+ metadata.gz: 6e926f6a15028e3e903eb59ee2f30fc3e409402e7a87fe9e5ea63ae6010820e2e6a1ef1619c23b3759b1e9ca7bbbc7ac41c1e3d55eff15e4756bcbcbe1f991af
7
+ data.tar.gz: 358c0bb931fe98b75e153e5475375e7f65d199c0f9ad1541406bb3e481abdc4b98921812c9e4853d3cd2512c5a5ae747600f83f1d19d6d5b84a87706f84be241
data/.travis.yml CHANGED
@@ -4,4 +4,6 @@ rvm:
4
4
  - 2.4.4
5
5
  - 2.5.1
6
6
 
7
- before_install: gem install bundler
7
+ before_install:
8
+ - gem update --system
9
+ - gem install bundler
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem 'coveralls', require: false
4
+
3
5
  gemspec
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 farkasity
3
+ Copyright (c) 2019 zhustec
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Jekyll Diagrams
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/jekyll-diagrams.svg)](https://badge.fury.io/rb/jekyll-diagrams)
3
+ [![Travis](https://img.shields.io/travis/zhustec/jekyll-diagrams.svg?style=flat-square)](https://travis-ci.com/zhustec/jekyll-diagrams)
4
+ [![Gem](https://img.shields.io/gem/v/jekyll-diagrams.svg?style=flat-square)](https://rubygems.org/gems/jekyll-diagrams)
5
+ [![Coveralls github](https://img.shields.io/coveralls/github/zhustec/jekyll-diagrams/master.svg?style=flat-square)](https://coveralls.io/github/zhustec/jekyll-diagrams)
6
+ [![Depfu](https://img.shields.io/depfu/zhustec/jekyll-diagrams.svg?style=flat-square)](https://depfu.com/repos/zhustec/jekyll-diagrams)
7
+ [![license](https://img.shields.io/github/license/zhustec/jekyll-diagrams.svg?style=flat-square)](https://github.com/zhustec/jekyll-diagrams/blob/master/LICENSE)
4
8
 
5
9
  Jekyll Diagrams is a jekyll plugins for creating amazing diagrams, including:
6
10
 
@@ -34,7 +38,7 @@ $ gem install jekyll-diagrams
34
38
  And then add this line to your application's `_config.yml` file:
35
39
 
36
40
  ```yaml
37
- gems:
41
+ plugins:
38
42
  - jekyll-diagrams
39
43
  ```
40
44
 
@@ -83,9 +87,9 @@ B -> D [label=d];
83
87
  {% endgraphviz %}
84
88
  ```
85
89
 
86
- ### Diag
90
+ ### Blockdiag
87
91
 
88
- Diag contains:
92
+ Blockdiag contains:
89
93
 
90
94
  * `blockdiag` : simple block-diagram image generator
91
95
  * `seqdiag` : simple sequence-diagram image generator
@@ -168,7 +172,7 @@ digraph {
168
172
 
169
173
  ## Contributing
170
174
 
171
- Bug reports and pull requests are welcome on GitHub at https://github.com/farkasity/jekyll-diagrams. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
175
+ Bug reports and pull requests are welcome on GitHub at https://github.com/zhustec/jekyll-diagrams. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
172
176
 
173
177
  ## License
174
178
 
@@ -1,26 +1,30 @@
1
- $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
2
3
 
3
4
  require 'jekyll/diagrams/version'
4
5
 
5
6
  Gem::Specification.new do |spec|
6
- spec.required_ruby_version = ">= 2.3.7"
7
+ spec.required_ruby_version = '>= 2.3.7'
7
8
 
8
- spec.name = "jekyll-diagrams"
9
+ spec.name = 'jekyll-diagrams'
9
10
  spec.version = Jekyll::Diagrams::VERSION
10
- spec.authors = ["zhustec"]
11
- spec.email = "zhustec@foxmail.com"
11
+ spec.authors = ['zhustec']
12
+ spec.email = ['zhustec@foxmail.com']
12
13
 
13
- spec.summary = "Jekyll plugins for diagrams support"
14
- spec.description = "Jekyll plugins for diagrams support, including Graphviz, Blockdiag, Seqdiag and so on."
15
- spec.homepage = "https://github.com/zhustec/jekyll-diagrams"
16
- spec.license = "MIT"
14
+ spec.summary = 'Jekyll plugins for diagrams support'
15
+ spec.description = 'Jekyll plugins for diagrams support, including Graphviz, Blockdiag, Seqdiag and so on.'
16
+ spec.homepage = 'https://github.com/zhustec/jekyll-diagrams'
17
+ spec.license = 'MIT'
17
18
 
18
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
- spec.require_paths = ["lib"]
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
20
22
 
21
- spec.add_dependency "jekyll", "~> 3.6"
23
+ spec.require_paths = ['lib']
22
24
 
23
- spec.add_development_dependency "bundler", "~> 1.15"
24
- spec.add_development_dependency "rake", "~> 12.1"
25
- spec.add_development_dependency "minitest", "~> 5.1"
25
+ spec.add_dependency 'jekyll', '~> 3.6'
26
+
27
+ spec.add_development_dependency 'bundler', '~> 1.16'
28
+ spec.add_development_dependency 'rake', '~> 12.3'
29
+ spec.add_development_dependency 'minitest', '~> 5.1'
26
30
  end
@@ -55,6 +55,7 @@ module Jekyll
55
55
  raise "Non-zero exit status '#{cmd}': #{status}"
56
56
  end
57
57
 
58
+ svg.sub! /^<!DOCTYPE(([^>]|\n)*)>(\n?)/, ''
58
59
  svg.force_encoding 'UTF-8'
59
60
 
60
61
  "<div class='graphviz'>#{svg}</div>"
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Diagrams
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
@@ -1,4 +1,3 @@
1
1
  require 'jekyll'
2
- require 'jekyll/diagrams/version'
3
2
  require 'jekyll/diagrams/graphviz'
4
3
  require 'jekyll/diagrams/blockdiag'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-diagrams
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhustec
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-11 00:00:00.000000000 Z
11
+ date: 2019-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.15'
33
+ version: '1.16'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.15'
40
+ version: '1.16'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '12.1'
47
+ version: '12.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '12.1'
54
+ version: '12.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -68,7 +68,8 @@ dependencies:
68
68
  version: '5.1'
69
69
  description: Jekyll plugins for diagrams support, including Graphviz, Blockdiag, Seqdiag
70
70
  and so on.
71
- email: zhustec@foxmail.com
71
+ email:
72
+ - zhustec@foxmail.com
72
73
  executables: []
73
74
  extensions: []
74
75
  extra_rdoc_files: []