tebako-runtime 0.2.1 → 0.3.0
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/lib/tebako-runtime/memfs.rb +2 -2
- data/lib/tebako-runtime/pre/seven-zip.rb +3 -1
- data/lib/tebako-runtime/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fdc527ed0fd0427e155e79896af24308eaf556dee9ad64925f49a461613ddbab
|
|
4
|
+
data.tar.gz: 2c6604926cb1c26b9a4d1372790690f1d9d483ee0f8a4e453783b9fa022aada7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 287017ccabfa0afad80ab47b5649c819e16c19b2b2aa0af80dd3522516c5fe4d386eb791f13a08f45f5bfd436ea794309ca2468d7eb663ef67972be81393ca7c
|
|
7
|
+
data.tar.gz: 15923f5ff3ca0d7f63ba34d49b098d58dfdee594601aec7bdfcc8e1a4d920de2f6ea1888df844ec8a27c8178663a3a676c44abe645ba0646425a835ad5ad234d
|
data/lib/tebako-runtime/memfs.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2023 [Ribose Inc](https://www.ribose.com).
|
|
3
|
+
# Copyright (c) 2023-2024 [Ribose Inc](https://www.ribose.com).
|
|
4
4
|
# All rights reserved.
|
|
5
5
|
# This file is a part of tebako
|
|
6
6
|
#
|
|
@@ -35,7 +35,7 @@ require_relative "string"
|
|
|
35
35
|
# Module TebakoRuntime
|
|
36
36
|
# Methods to extract files from memfs to temporary folder
|
|
37
37
|
module TebakoRuntime
|
|
38
|
-
COMPILER_MEMFS = "/__tebako_memfs__"
|
|
38
|
+
COMPILER_MEMFS = RUBY_PLATFORM =~ /msys|mingw|cygwin/ ? "A:/__tebako_memfs__" : "/__tebako_memfs__"
|
|
39
39
|
COMPILER_MEMFS_LIB_CACHE = Pathname.new(Dir.mktmpdir("tebako-runtime-"))
|
|
40
40
|
|
|
41
41
|
class << self
|
|
@@ -34,6 +34,8 @@ module TebakoRuntime
|
|
|
34
34
|
sevenz_path = File.join(full_gem_path("seven-zip"), "lib", "seven_zip_ruby", sevenz_lib)
|
|
35
35
|
sevenz_new_folder = COMPILER_MEMFS_LIB_CACHE / "seven_zip_ruby"
|
|
36
36
|
FileUtils.mkdir_p(sevenz_new_folder)
|
|
37
|
-
|
|
37
|
+
Dir.glob(sevenz_path).each do |file|
|
|
38
|
+
FileUtils.cp(file, sevenz_new_folder)
|
|
39
|
+
end
|
|
38
40
|
$LOAD_PATH.unshift(COMPILER_MEMFS_LIB_CACHE)
|
|
39
41
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2023 [Ribose Inc](https://www.ribose.com).
|
|
3
|
+
# Copyright (c) 2023-2024 [Ribose Inc](https://www.ribose.com).
|
|
4
4
|
# All rights reserved.
|
|
5
5
|
# This file is a part of tebako
|
|
6
6
|
#
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
27
27
|
|
|
28
28
|
module TebakoRuntime
|
|
29
|
-
VERSION = "0.
|
|
29
|
+
VERSION = "0.3.0"
|
|
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.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-03-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
183
183
|
- !ruby/object:Gem::Version
|
|
184
184
|
version: '0'
|
|
185
185
|
requirements: []
|
|
186
|
-
rubygems_version: 3.
|
|
186
|
+
rubygems_version: 3.5.3
|
|
187
187
|
signing_key:
|
|
188
188
|
specification_version: 4
|
|
189
189
|
summary: Run-time support of tebako executable packager
|