asciidoctor-diagram 1.3.0 → 1.3.1

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: 3a2f204cc0c29acb26136512bd4a8d50b94eb19d
4
- data.tar.gz: 0115d195b3546f4ab1a1967a45891769b4d28fb5
3
+ metadata.gz: 2aa855d0a4d2453cb80b237827e331367c52121f
4
+ data.tar.gz: 68ad84950f5592103d829ee8518d20aa2a7f0de2
5
5
  SHA512:
6
- metadata.gz: 8bedbbef25acb0ea9d0617b67521f8b92f57a66a730f58b35090e221936cc3ee3a1ff76af260f78f7ccec6e88467188744b048e9997701c46d667e37f2f142f6
7
- data.tar.gz: fc0668cb0299126c80f392efccba75c8eda819a835e69b3c27c99fd57c50d1d4b312271bba3cbae7cbebf34a23dbd56a7adfd470a7a48fe8079fb3b4ae210345
6
+ metadata.gz: ae3dc63dd88b9c307687505b0c7d6c41c127e8d25d9abd45683b0aa712753a5bee6d902df8b505b7a925c1557239309ff35c0f0b9a753e351044c5f0b8db6824
7
+ data.tar.gz: 8e2c8d867b1e1a91093305aa2d8cbbd3cdcb15c78279e1de99ee3833809ed0651e46bb7958953d3d145e1a151941356a10a8ba4f1e872cadeff260b1ed45b931
data/CHANGELOG.adoc CHANGED
@@ -1,5 +1,11 @@
1
1
  = Asciidoctor-diagram Changelog
2
2
 
3
+ == 1.3.1
4
+
5
+ Bug Fixes::
6
+
7
+ * Issue #78: Resolve Java launch issues when running in a Cygwin environment
8
+
3
9
  == 1.3.0
4
10
 
5
11
  Enhancements::
@@ -8,10 +14,11 @@ Enhancements::
8
14
  * Add support for Actdiag diagrams (requires Actdiag to be installed separately)
9
15
  * Add support for Seqdiag diagrams (requires Seqdiag to be installed separately)
10
16
  * Add support for Nwdiag diagrams (requires Nwdiag to be installed separately)
11
- * Updated PlantUML to revision 8021 (14/03/2015)
12
- * Remove dependency on RJB to simplify installation
13
- * Add diagram scaling support using the scale attribute
14
- * Add Ditaa command line option support using the options attribute
17
+ * Add support for Salt UI diagrams (issue #66)
18
+ * Updated PlantUML to revision 8028 (10/07/2015)
19
+ * Remove dependency on RJB to simplify installation (issue #48)
20
+ * Add diagram scaling support using the scale attribute (issue #58)
21
+ * Add Ditaa command line option support using the options attribute (issue #69)
15
22
 
16
23
  Bug Fixes::
17
24
 
@@ -90,4 +97,4 @@ Bug Fixes::
90
97
  Initial release::
91
98
 
92
99
  * Provides Asciidoctor extension for `ditaa` and `plantuml` blocks
93
- * PlantUML skin parameters can be injected from an external file using the `plantumlconfig` document attribute
100
+ * PlantUML skin parameters can be injected from an external file using the `plantumlconfig` document attribute
@@ -1,4 +1,5 @@
1
1
  require 'socket'
2
+ require 'rbconfig'
2
3
 
3
4
  require_relative 'which'
4
5
 
@@ -13,7 +14,18 @@ module Asciidoctor
13
14
  args = []
14
15
  args << '-Djava.awt.headless=true'
15
16
  args << '-cp'
16
- args << classpath.flatten.join(File::PATH_SEPARATOR)
17
+ # special case for cygwin, it requires path translation for java to work
18
+ if RbConfig::CONFIG['host_os'] =~ /cygwin/i
19
+ cygpath = ::Asciidoctor::Diagram.which('cygpath')
20
+ if(cygpath != nil)
21
+ args << classpath.flatten.map { |jar| `cygpath -w "#{jar}"`.strip }.join(";")
22
+ else
23
+ puts 'cygwin warning: cygpath not found'
24
+ args << classpath.flatten.join(File::PATH_SEPARATOR)
25
+ end
26
+ else
27
+ args << classpath.flatten.join(File::PATH_SEPARATOR)
28
+ end
17
29
  args << 'org.asciidoctor.diagram.CommandServer'
18
30
 
19
31
  @server = IO.popen([java, *args])
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Diagram
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-diagram
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pepijn Van Eeckhoudt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-04 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -144,3 +144,4 @@ test_files:
144
144
  - spec/plantuml_spec.rb
145
145
  - spec/shaape_spec.rb
146
146
  - spec/test_helper.rb
147
+ has_rdoc: