isorun 0.1.4.pre-x86_64-darwin → 0.1.6.pre-x86_64-darwin

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: b1b10bf928283b9d7ec747d69cfd6f80d7bd5eecbcde242f3a884046ca1560a1
4
- data.tar.gz: ca60cd163e2345c09775f95c0b494c4973ea2adc2dffb35ad74142d4b40d5f26
3
+ metadata.gz: 4b35798ccf95eb1f8e6ec527419b949e6addabf19927112e6608d763bcda9944
4
+ data.tar.gz: 2bfb8f9f35832d09b66186cd0a30909d91429915a19ed2b985cd4119e2c6107e
5
5
  SHA512:
6
- metadata.gz: 84eac04aedb090947882b8ff3ce67f5d73bc11b7251f28e8db79ef2a94f16bad8a581143c1f626d0708e0fe6e0a9353bbba12236934d24cd2b2381d84f5ffbbd
7
- data.tar.gz: 076df31bcf49eaf080791df8d9d0d6484722eee9b630be1f503a915a67ca88ef484f5d8240ad4e55840b3283380a5c80063701d9818d9f5a5560a0524ff955c1
6
+ metadata.gz: 45474d5583c3d5b878d7bffe65ea22dacf93d8678134f9d92ae2358b0cf3c8611d5b6b2e8eabd57aee5c732255f0c77da15c03b17323dffb3faa697a9607670d
7
+ data.tar.gz: b186dbae6efb8299075cd7336c41715e7b82dce20a0f749220911ced6901ecaa0de47d3d429493023a803bfcef9cf8f1b0399a0e5540ac2584e9da3fe00b5568
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "isorun"
3
- version = "0.1.4"
3
+ version = "0.1.6"
4
4
  edition = "2021"
5
5
  authors = ["Hannes Moser <box@hannesmoser.at>"]
6
6
  homepage = "https://github.com/eliias/isorun"
@@ -13,6 +13,7 @@ use magnus::{Error, Value};
13
13
  use std::borrow::BorrowMut;
14
14
  use std::cell::RefCell;
15
15
  use std::collections::{HashMap, HashSet};
16
+ use std::env;
16
17
  use std::path::Path;
17
18
  use std::rc::Rc;
18
19
  use std::string::ToString;
@@ -203,7 +204,11 @@ impl Default for Worker {
203
204
 
204
205
  // todo: we don't use the main module at all, but it could be used as an
205
206
  // entry point for "eval" JavaScript.
206
- let js_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("src/call.js");
207
+ let isorun_native_gem_path =
208
+ env::var("ISORUN_NATIVE_GEM_PATH").unwrap();
209
+ let js_path = Path::new(isorun_native_gem_path.as_str())
210
+ .join("ext/isorun/src/call.js");
211
+
207
212
  let main_module =
208
213
  deno_core::resolve_path(&js_path.to_string_lossy()).unwrap();
209
214
  let permissions = Permissions::allow_all();
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Isorun
4
- VERSION = "0.1.4.pre"
4
+ VERSION = "0.1.6.pre"
5
5
  end
data/lib/isorun.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # set environment variable to isorun gem path, we use this to request the main
4
+ # module in the native extension
5
+ ENV["ISORUN_NATIVE_GEM_PATH"] = File.expand_path("..", __dir__)
6
+
3
7
  # load native extension
4
8
  begin
5
9
  ruby_version = /(\d+\.\d+)/.match(::RUBY_VERSION)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isorun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.pre
4
+ version: 0.1.6.pre
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Hannes Moser