jekyll-plantuml 1.3.1 → 1.3.2
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 +4 -4
- data/.0pdd.yml +5 -0
- data/.pdd +7 -0
- data/.rultor.yml +2 -2
- data/LICENSE.txt +1 -1
- data/README.md +22 -0
- data/Rakefile +1 -1
- data/lib/jekyll-plantuml.rb +16 -12
- data/lib/version.rb +2 -2
- metadata +5 -4
- data/PUZZLES.md +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d63420ba316babb20ffee3ff756de1bfcca1c03
|
4
|
+
data.tar.gz: 23eb7176b01b0c86bf61cfb8eb03665a985259c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e93b6a3ce2591f9cc6c21d318cde5e3a6b8059d18003d042946d76e9905577d9b63bd33df5bb03003147da9068d03d5a52e7c27be1d6ba105957710b29c54465
|
7
|
+
data.tar.gz: 5d7b0a0b1b88b042090ade9f90e359a687ae3b362fa6a54db29204d5481cc53488cac4603e6ee2584d651460a4fdfbaf2a3734ca91ad60108c39ba93f1f9c0b4
|
data/.0pdd.yml
ADDED
data/.pdd
ADDED
data/.rultor.yml
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
[](http://badge.fury.io/rb/jekyll-plantuml)
|
2
2
|
|
3
|
+
## Install Jekyll plugin
|
4
|
+
|
3
5
|
Install it first:
|
4
6
|
|
5
7
|
```
|
@@ -27,10 +29,30 @@ to your `Gemfile`:
|
|
27
29
|
gem "jekyll-plantuml"
|
28
30
|
```
|
29
31
|
|
32
|
+
## Install plantuml.jar
|
33
|
+
|
30
34
|
Then, make sure [PlantUML](http://plantuml.sourceforge.net/download.html)
|
31
35
|
is installed on your build machine, and can
|
32
36
|
be executed with a simple `plantuml` command.
|
33
37
|
|
38
|
+
For Linux user, you could create a `/usr/bin/plantuml` with contents:
|
39
|
+
|
40
|
+
```
|
41
|
+
#!/bin/bash
|
42
|
+
|
43
|
+
java -jar /home/user/Downloads/plantuml.jar "$1" "$2"
|
44
|
+
```
|
45
|
+
|
46
|
+
Remember to change the path to `plantuml.jar` file.
|
47
|
+
|
48
|
+
Then set executable permission.
|
49
|
+
|
50
|
+
```
|
51
|
+
chmod +x /usr/bin/plantuml
|
52
|
+
```
|
53
|
+
|
54
|
+
## Test
|
55
|
+
|
34
56
|
Now, it's time to create a diagram, in your Jekyll blog page:
|
35
57
|
|
36
58
|
```
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# (The MIT License)
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
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/lib/jekyll-plantuml.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# (The MIT License)
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
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
|
@@ -36,17 +36,21 @@ module Jekyll
|
|
36
36
|
if !File.exists?(File.join(site.dest, "uml/#{name}.svg"))
|
37
37
|
uml = File.join(site.source, "uml/#{name}.uml")
|
38
38
|
svg = File.join(site.source, "uml/#{name}.svg")
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
39
|
+
if File.exists?(svg)
|
40
|
+
puts "File #{svg} already exists (#{File.size(svg)} bytes)"
|
41
|
+
else
|
42
|
+
FileUtils.mkdir_p(File.dirname(uml))
|
43
|
+
File.open(uml, 'w') { |f|
|
44
|
+
f.write("@startuml\n")
|
45
|
+
f.write(super)
|
46
|
+
f.write("\n@enduml")
|
47
|
+
}
|
48
|
+
system("plantuml -tsvg #{uml}")
|
49
|
+
site.static_files << Jekyll::StaticFile.new(
|
50
|
+
site, site.source, 'uml', "#{name}.svg"
|
51
|
+
)
|
52
|
+
puts "File #{svg} created (#{File.size(svg)} bytes)"
|
53
|
+
end
|
50
54
|
end
|
51
55
|
"<p><img src='/uml/#{name}.svg' #{@html}
|
52
56
|
alt='PlantUML SVG diagram' class='plantuml'/></p>"
|
data/lib/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# (The MIT License)
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
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
|
@@ -21,5 +21,5 @@
|
|
21
21
|
# SOFTWARE.
|
22
22
|
|
23
23
|
module PlantUML
|
24
|
-
VERSION = '1.3.
|
24
|
+
VERSION = '1.3.2'
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-plantuml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -32,12 +32,13 @@ extra_rdoc_files:
|
|
32
32
|
- README.md
|
33
33
|
- LICENSE.txt
|
34
34
|
files:
|
35
|
+
- ".0pdd.yml"
|
35
36
|
- ".gitignore"
|
37
|
+
- ".pdd"
|
36
38
|
- ".rultor.yml"
|
37
39
|
- ".travis.yml"
|
38
40
|
- Gemfile
|
39
41
|
- LICENSE.txt
|
40
|
-
- PUZZLES.md
|
41
42
|
- README.md
|
42
43
|
- Rakefile
|
43
44
|
- TEAM.md
|
@@ -65,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
66
|
version: '0'
|
66
67
|
requirements: []
|
67
68
|
rubyforge_project:
|
68
|
-
rubygems_version: 2.4.5.
|
69
|
+
rubygems_version: 2.4.5.2
|
69
70
|
signing_key:
|
70
71
|
specification_version: 2
|
71
72
|
summary: Jekyll PlantUML Automation
|
data/PUZZLES.md
DELETED