isorun 0.1.4.pre-arm64-darwin → 0.1.6.pre-arm64-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: 303a32646dc5a4c6536830b90b5a2958c024d12876368a2ac6cb8e84697782f2
4
- data.tar.gz: 1abc0921a99ae15853a6bf2426254f4acecc2c6957159053a089de36253bb52c
3
+ metadata.gz: 728e85ec14783a4e1df04bdfde425e5edd0dcda0ed888b5c9cb63846dcf54db5
4
+ data.tar.gz: 236a0956a5654d4e8a2dd5f6d5b3ff34db693b5c23ec024c69663750150e31b7
5
5
  SHA512:
6
- metadata.gz: 6beb29cfb692736ff75606ccb0721d41576e7cb01bba57ba413ec27428ef575366a33128e6c40b8795813f57a14b6d104cf67ce0de58e871aa1e84941008e45b
7
- data.tar.gz: 4e87d714aa5351f959c2a9f4e9b1fa1a3b33a87c7f254d33c2d3233f2704764796f269e28b7aff133dfdb28c552fd34dd96b5c5b58748895dc3858250ababdcd
6
+ metadata.gz: 7e0f4e9f0e58480210c3972d7bd46ae5199ca9c7b90caf5e9c7624540c3dff738cc0cb017b3aa05b33e17891784bfb1b93b4e84a78353480baf9389b7e180c26
7
+ data.tar.gz: dfb127e45f6bc304397bfc41f354ad403885e65b895fb157b236db0d16f5955d1e773008c4b5af9e434ee86110c495c13b514aa733fee10b5c81f925d90a4ece
@@ -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: arm64-darwin
6
6
  authors:
7
7
  - Hannes Moser