r_to_d2 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a378309f4ef3514564be96c91aa0db018edf786e22c043c56bcd8642a426f86
4
- data.tar.gz: d72638387117ea54f7526d0b79cc1c01da33a62112939aeb7d659f71e964c590
3
+ metadata.gz: a077f9c35354ea3efb9f9ec70e6cd0874f5e5bddcfdd82d147401b5ffc78fce5
4
+ data.tar.gz: cd354d8c501eb1f4e0fdf3cb8a82357fcd8045227e2db757f3d7ba0247e0d5fe
5
5
  SHA512:
6
- metadata.gz: 5ba9176e1a7672f4be1c87d68785b342b3b32fefe24433ca60f809e4b5f72d1133c581266b567c364c56dc24731726e271c8d539830750ff4e429b523c78d299
7
- data.tar.gz: 2461288c58c795f3462e363374e04988988ca18fb84865312847fc913718b9ebbd8a8cb132f82cc5a79f6967b65e7c4c430ada1435d9cb0a8bc882e424f66221
6
+ metadata.gz: a3d59b657cfcef7d9950564c895ab1269b895b1dc17ad18712174ebf75a7b973c51aaf9f0be520d488c2b9b8dd8854f4c11f44b71c4200ced3ffa3a2e0969d79
7
+ data.tar.gz: 21195b6d94f41fc3856b3f2b50afb7ca056b672063d796bed65c13b7c7e542f1c6afd9af669b54f53e060d085f581596b454525e40ca77ff811fca052c6a17c6
@@ -6,7 +6,7 @@ module RToD2
6
6
 
7
7
  class << self
8
8
  def to_svg(text)
9
- stdout_str, stderr_str, status = Open3.capture3(RToD2::D2Binary.absolute_path, '-', '-', stdin_data: text)
9
+ stdout_str, stderr_str, status = Open3.capture3(RToD2::D2Binary.absolute_path.to_s, '-', '-', stdin_data: text)
10
10
 
11
11
  if status.success?
12
12
  stdout_str
@@ -1,7 +1,7 @@
1
1
  module RToD2
2
2
  class D2Binary
3
3
  D2_VERSION = "0.7.1"
4
- PLATFORM = Gem::Platform.new(ENV.fetch("GEM_PLATFORM")).freeze
4
+ PLATFORM = (ENV.fetch("GEM_PLATFORM", nil) ? Gem::Platform.new(ENV.fetch("GEM_PLATFORM")) : Gem::Platform.local).freeze
5
5
 
6
6
  class UnsupportedPlatform < StandardError; end
7
7
 
@@ -1,3 +1,3 @@
1
1
  module RToD2
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r_to_d2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Klaus Weidinger