tebako-runtime 0.5.3 → 0.5.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: 55d42da9bcdd1ffbcf8102951cd270c07ed0408e9c135b4fb6d1c06bc3e9f601
4
- data.tar.gz: ff544cf2dad24760b3ff71672c91fc74aec415f912bfce948acb22abc137b7eb
3
+ metadata.gz: fc9473e24e5664578ca501587c6a55dfcdc8852c3872f2e26d310201f738fa2c
4
+ data.tar.gz: 95e8bfc075a6e97461e495675a268b8fdc877f0ef7643c2a4fda00b97a41517c
5
5
  SHA512:
6
- metadata.gz: 52c8b58193ec9bf05a003079c184149c270582fae74b4df87bf05dde8bb837d3311e6e2ebf5908211a499f3fdd3ab23c0a97da9091d9efaade384308d1fcd8dd
7
- data.tar.gz: '082b88d3712b7bfbfa451939e0cc881b5a20835f4856fc854cb72a39b31787d26df8d50bdc754360a556974a61f67f4ab719eb86ef187f4cb25986f1730e47d5'
6
+ metadata.gz: d1c0fdd8a3c0c08cbad7d4acf833ecaf7bb7e05672eb153efe3750c495c7edfbd57959119ba5fffe66a25521dd7332e796d37494f2115bc2ecd4a3b10c23b826
7
+ data.tar.gz: 610f4432bcf2a0c1f292cf9e833598217a4c9e1ce51d72b7de8092e6558eec0e4e57cf5fc5e68855d444ce9eb647ed37beffa712904d1b68e5bf04b88e2683d2
@@ -28,7 +28,7 @@
28
28
  # Unpack jing.jar
29
29
  class Jing
30
30
  tmp = DEFAULT_JAR
31
- remove_const("DEFAULT_JAR")
31
+ remove_const("DEFAULT_JAR") if const_defined?("DEFAULT_JAR")
32
32
  DEFAULT_JAR = TebakoRuntime.extract_memfs(tmp)
33
33
 
34
34
  alias original_initialize initialize
@@ -26,10 +26,27 @@
26
26
  # POSSIBILITY OF SUCH DAMAGE.
27
27
 
28
28
  # Unpack mn2pdf.jar
29
- module Mn2pdf
30
- remove_const("MN2PDF_JAR_PATH")
31
- MN2PDF_JAR_PATH = TebakoRuntime.extract_memfs(File.join(TebakoRuntime.full_gem_path("mn2pdf"), "bin", "mn2pdf.jar"))
32
29
 
30
+ module TebakoRuntime
31
+ MN2PDF_J_PATH = TebakoRuntime.extract_memfs(File.join(TebakoRuntime.full_gem_path("mn2pdf"), "bin",
32
+ "mn2pdf.jar"))
33
+ end
34
+
35
+ if Mn2pdf.const_defined?("MN2PDF_JAR_PATH")
36
+ module Mn2pdf
37
+ remove_const("MN2PDF_JAR_PATH")
38
+ MN2PDF_JAR_PATH = TebakoRuntime::MN2PDF_J_PATH
39
+ end
40
+ end
41
+
42
+ if Jvm.const_defined?("MN2PDF_JAR_PATH")
43
+ module Jvm
44
+ remove_const("MN2PDF_JAR_PATH")
45
+ MN2PDF_JAR_PATH = TebakoRuntime::MN2PDF_J_PATH
46
+ end
47
+ end
48
+
49
+ module Mn2pdf
33
50
  singleton_class.send(:alias_method, :convert_orig, :convert)
34
51
  singleton_class.send(:remove_method, :convert)
35
52
 
@@ -27,7 +27,7 @@
27
27
 
28
28
  # Unpack mn2pdf.jar
29
29
  module MnConvert
30
- remove_const("MNCONVERT_JAR_PATH")
30
+ remove_const("MNCONVERT_JAR_PATH") if const_defined?("MNCONVERT_JAR_PATH")
31
31
  MNCONVERT_JAR_PATH = TebakoRuntime.extract_memfs(File.join(TebakoRuntime.full_gem_path("mnconvert"), "bin",
32
32
  "mnconvert.jar"))
33
33
 
@@ -26,5 +26,5 @@
26
26
  # POSSIBILITY OF SUCH DAMAGE.
27
27
 
28
28
  module TebakoRuntime
29
- VERSION = "0.5.3"
29
+ VERSION = "0.5.4"
30
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tebako-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-10 00:00:00.000000000 Z
11
+ date: 2024-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec