tebako-runtime 0.2.1 → 0.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
  SHA256:
3
- metadata.gz: aca70d81faeb47520eb1a89d567e4fdb18ca37632a2afdda49c9f9c9ac98e7bb
4
- data.tar.gz: 23942a74c7fbd4689bef000ef339f1d5496fdcbe3097466453111530e93e5098
3
+ metadata.gz: 6f44219b114dff0523c1e93f2e7b582e9f27c03d4f61ae4174153c3c194d0f3c
4
+ data.tar.gz: 7d2910a4df314703a400237f0c356ad9e1745167fac0505389fb9de657193d1e
5
5
  SHA512:
6
- metadata.gz: 80b67091dcc7b434fe5cb47017c68afd894b2753de1046419abd0a4206ce3ebdd09899c5df2add9a40b1ac398e3337a83f1a3ee16207208244daff34bfd6f13e
7
- data.tar.gz: 937cd956a9d2c851a8f92c8b6e651dbc0fe57aba6d986a9dfc0ef88f4f908276f315d360702a2bf85bb1498bdab4e5113c3284bb5387ad798d14cf8f24034ae7
6
+ metadata.gz: 442c6e5430b75eedfb7c3f2631ca4303bcb0fc21f1d3478ac86fdabe1535016c9d797d4a3557cff64dfaeaf0f43de45c4c76b72127dd905757e1f20a1a4582b8
7
+ data.tar.gz: 55524bab695d5673294a3d2cf83630814fa1caf8fd31305f1f83670ff17ae775581333534d36c5d8cac861616d6803f3fdc71f4abf8defe1d7f62704ea5fd94b
@@ -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.1"
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.1
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