coreutils-wasm 1.1.2 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65800d9d3ebb71f3402d59452228da0221924072355d28493541ea1ded51ebec
4
- data.tar.gz: 56fada4b8e4987674349278d6bfe9c1e3beef9811e81b463ca13d4919763f4eb
3
+ metadata.gz: eec07580ca3b78e783f161b3a6211a09299b4ddbf2cdbe6b0a90b93572c72b7c
4
+ data.tar.gz: 1daf807401613ead91f8f18a295f11f88c4c41adfdce6a59eed343878c0acb36
5
5
  SHA512:
6
- metadata.gz: 4c32c5f6118c5774df9308b738703876fcfd0764c80c8adfbe65f8a9dc0cfed0fbcecef3f8ce1dc5a748c094fa7c083d1cf574c2b2c93e4657079bf3ad33a802
7
- data.tar.gz: e2a4d442e39f50751ba075e2a2d3286fc36fa8e43b66227255e2712b6d501c291d071abedcb573242037452b335c7bd81d6e098ac94f1204b2ab12fd91bcc3d0
6
+ metadata.gz: 561c3904085fd9dc53e03a50efd4a760a00023953f151a1b62d6d2d986fe7d06f106d81dcfab47fdc801dd48435b517ce3abd149f2296ffd249415d6d58d25b5
7
+ data.tar.gz: 4bbfba46cecaaae8bec7d6ec73f41cd6148489ddb9c72dc1121109d454e9d8b5510b5c67d4f287de1fa18f40a758281278c4388de49146cca9fbd4dbf8675898
@@ -10,10 +10,12 @@ module CoreutilsWasm
10
10
 
11
11
  raise CoreutilsWasm::BinaryNotFound, "WASM binary not found at #{binary}" unless File.exist?(binary)
12
12
 
13
+ expanded_dir = File.expand_path(wasm_dir)
14
+
13
15
  cmd = [
14
16
  CoreutilsWasm.runtime,
15
17
  'run',
16
- '--dir', wasm_dir,
18
+ '--dir', "#{expanded_dir}::.",
17
19
  '--',
18
20
  binary,
19
21
  *args
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CoreutilsWasm
4
- VERSION = "1.1.2"
4
+ VERSION = "1.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coreutils-wasm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Himpens