Skip to content

Commit

Permalink
chore: upgrade magnus and related dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
eliias committed Jan 23, 2024
1 parent 519669f commit 8870aa5
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 410 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/rails-d3-app/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PATH
isorun (0.1.13)
railties (>= 6.0.0)
rake (~> 13.0)
rb_sys (~> 0.9.81)
rb_sys (~> 0.9.87)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -169,7 +169,7 @@ GEM
thor (~> 1.0)
zeitwerk (~> 2.5)
rake (13.0.6)
rb_sys (0.9.81)
rb_sys (0.9.87)
redis (4.8.0)
regexp_parser (2.6.1)
reline (0.3.1)
Expand Down
4 changes: 2 additions & 2 deletions examples/rails-react-app/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PATH
isorun (0.1.13)
railties (>= 6.0.0)
rake (~> 13.0)
rb_sys (~> 0.9.81)
rb_sys (~> 0.9.87)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -193,7 +193,7 @@ GEM
thor (~> 1.0)
zeitwerk (~> 2.5)
rake (13.0.6)
rb_sys (0.9.86)
rb_sys (0.9.87)
redis (4.8.1)
regexp_parser (2.7.0)
reline (0.3.3)
Expand Down
393 changes: 0 additions & 393 deletions examples/rails-react-app/yarn-error.log

This file was deleted.

6 changes: 4 additions & 2 deletions examples/rails-react-vite-app/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PATH
isorun (0.1.13)
railties (>= 6.0.0)
rake (~> 13.0)
rb_sys (~> 0.9.81)
rb_sys (~> 0.9.87)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -176,7 +176,7 @@ GEM
thor (~> 1.0)
zeitwerk (~> 2.5)
rake (13.0.6)
rb_sys (0.9.86)
rb_sys (0.9.87)
redis (4.8.0)
regexp_parser (2.6.1)
reline (0.3.2)
Expand Down Expand Up @@ -210,6 +210,8 @@ GEM
railties (>= 6.0.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
tzinfo-data (1.2023.4)
tzinfo (>= 1.0.0)
vite_rails (3.0.15)
railties (>= 5.1, < 8)
vite_ruby (~> 3.0, >= 3.2.2)
Expand Down
4 changes: 2 additions & 2 deletions ext/isorun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ deno_url = "0.121.0"
deno_web = "0.149.0"
deno_webidl = "0.121.0"
lazy_static = "1.4.0"
magnus = { git = "https://github.com/eliias/magnus", rev = "fdfc70bdb52ea614f6823e55a7fda3122e83d1d4" }
magnus = { git = "https://github.com/eliias/magnus", rev = "4aef03adf7396a52155ad2ce56ed0f43cdfee040" }
tokio = { version = "1.32.0", features = ["full"] }
v8 = "0.74.3"

[dev-dependencies]
magnus = { git = "https://github.com/eliias/magnus", rev = "fdfc70bdb52ea614f6823e55a7fda3122e83d1d4", features = ["embed"] }
magnus = { git = "https://github.com/eliias/magnus", rev = "4aef03adf7396a52155ad2ce56ed0f43cdfee040", features = ["embed"] }
protoc = "2.28.0"

[lib]
Expand Down
2 changes: 0 additions & 2 deletions ext/isorun/src/ext/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pub(crate) mod isorun;

pub use crate::*;
4 changes: 2 additions & 2 deletions ext/isorun/src/isorun/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ pub fn convert_ruby_to_v8<'s>(
arr = Array::new(scope, v.len() as i32);
}

for (i, val) in v.each().enumerate() {
for (i, val) in v.into_iter().enumerate() {
let v8_value;
{
v8_value = convert_ruby_to_v8(val.unwrap(), scope).unwrap();
v8_value = convert_ruby_to_v8(val, scope).unwrap();
}
arr.set_index(scope, i as u32, v8_value);
}
Expand Down
2 changes: 1 addition & 1 deletion isorun.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "railties", ">= 6.0.0"
spec.add_dependency "rake", "~> 13.0"
spec.add_dependency "rb_sys", "~> 0.9.81"
spec.add_dependency "rb_sys", "~> 0.9.87"

spec.add_development_dependency "rails"
spec.add_development_dependency "rake-compiler"
Expand Down

0 comments on commit 8870aa5

Please sign in to comment.