tebako-runtime 0.2.1 → 0.3.0

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
  SHA256:
3
- metadata.gz: aca70d81faeb47520eb1a89d567e4fdb18ca37632a2afdda49c9f9c9ac98e7bb
4
- data.tar.gz: 23942a74c7fbd4689bef000ef339f1d5496fdcbe3097466453111530e93e5098
3
+ metadata.gz: fdc527ed0fd0427e155e79896af24308eaf556dee9ad64925f49a461613ddbab
4
+ data.tar.gz: 2c6604926cb1c26b9a4d1372790690f1d9d483ee0f8a4e453783b9fa022aada7
5
5
  SHA512:
6
- metadata.gz: 80b67091dcc7b434fe5cb47017c68afd894b2753de1046419abd0a4206ce3ebdd09899c5df2add9a40b1ac398e3337a83f1a3ee16207208244daff34bfd6f13e
7
- data.tar.gz: 937cd956a9d2c851a8f92c8b6e651dbc0fe57aba6d986a9dfc0ef88f4f908276f315d360702a2bf85bb1498bdab4e5113c3284bb5387ad798d14cf8f24034ae7
6
+ metadata.gz: 287017ccabfa0afad80ab47b5649c819e16c19b2b2aa0af80dd3522516c5fe4d386eb791f13a08f45f5bfd436ea794309ca2468d7eb663ef67972be81393ca7c
7
+ data.tar.gz: 15923f5ff3ca0d7f63ba34d49b098d58dfdee594601aec7bdfcc8e1a4d920de2f6ea1888df844ec8a27c8178663a3a676c44abe645ba0646425a835ad5ad234d
@@ -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
- FileUtils.cp(sevenz_path, sevenz_new_folder)
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.2.1"
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.2.1
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: 2023-08-11 00:00:00.000000000 Z
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.4.10
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