jekyll-plantuml 1.3.1 → 1.3.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: 1726e27c605cc355da0809bfe2b86bbcbac2ac49
4
- data.tar.gz: 59192b4fc30262369771050d5f61261ef7c5eb8d
3
+ metadata.gz: 4d63420ba316babb20ffee3ff756de1bfcca1c03
4
+ data.tar.gz: 23eb7176b01b0c86bf61cfb8eb03665a985259c7
5
5
  SHA512:
6
- metadata.gz: 1dabbd40b8486921e8487c39065542c8253eea538592bf9600a975a06906bdc3007bf7e2a06bdeb2b13252ad960a77e54c4fe7817fe0a3cb590f3d94933613d2
7
- data.tar.gz: f70c708a02a27516119edb42c570f4ae1a0a6d72bd202268511754f83556442e63d0f436eb8af31032dc70d28e9c15cd2c539a32167e9628c45da0cbb61b6131
6
+ metadata.gz: e93b6a3ce2591f9cc6c21d318cde5e3a6b8059d18003d042946d76e9905577d9b63bd33df5bb03003147da9068d03d5a52e7c27be1d6ba105957710b29c54465
7
+ data.tar.gz: 5d7b0a0b1b88b042090ade9f90e359a687ae3b362fa6a54db29204d5481cc53488cac4603e6ee2584d651460a4fdfbaf2a3734ca91ad60108c39ba93f1f9c0b4
data/.0pdd.yml ADDED
@@ -0,0 +1,5 @@
1
+ errors:
2
+ - yegor256@gmail.com
3
+ # alerts:
4
+ # github:
5
+ # - yegor256
data/.pdd ADDED
@@ -0,0 +1,7 @@
1
+ --source=.
2
+ --verbose
3
+ --exclude target/**/*
4
+ --exclude src/main/resources/images/**/*
5
+ --rule min-words:20
6
+ --rule min-estimate:15
7
+ --rule max-estimate:90
data/.rultor.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  assets:
2
- rubygems.yml: yegor256/home#assets/rubygems.yml
3
- s3cfg: yegor256/home#assets/s3cfg
2
+ rubygems.yml: zerocracy/home#assets/rubygems.yml
3
+ s3cfg: zerocracy/home#assets/s3cfg
4
4
  release:
5
5
  script: |-
6
6
  sudo bundle install
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2014-2016 Yegor Bugayenko
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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/jekyll-plantuml.svg)](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-2016 Yegor Bugayenko
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
@@ -1,6 +1,6 @@
1
1
  # (The MIT License)
2
2
  #
3
- # Copyright (c) 2014-2016 Yegor Bugayenko
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
- FileUtils.mkdir_p(File.dirname(uml))
40
- File.open(uml, 'w') { |f|
41
- f.write("@startuml\n")
42
- f.write(super)
43
- f.write("\n@enduml")
44
- }
45
- system("plantuml -tsvg #{uml}")
46
- site.static_files << Jekyll::StaticFile.new(
47
- site, site.source, 'uml', "#{name}.svg"
48
- )
49
- puts "File #{svg} created (#{File.size(svg)} bytes)"
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-2016 Yegor Bugayenko
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.1'
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.1
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: 2016-08-30 00:00:00.000000000 Z
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.1
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
@@ -1,4 +0,0 @@
1
- ## Puzzles
2
-
3
- There are 0 active puzzles (0 total):
4
-