mini_racer 0.8.0 → 0.12.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: 40b19f82c2a9392b14470ee4000477539f6415a3cfa06220f0cb8e3ae0a8542b
4
- data.tar.gz: e6972a3b6190bf732bc8f8ba010e4c17b11316a3d3cf8d8870d085460a58fe55
3
+ metadata.gz: a8bec2c3c481bbf5f34345fc6f19fbc0321f606dadfc9857a4fc39c8ccb5415e
4
+ data.tar.gz: 7e0a43cc663ab8456653c26fa71d73271e7c6fe70d631ff716f04c58b61738da
5
5
  SHA512:
6
- metadata.gz: da39c5527dcf390de270a21377555e7a6b3ea38c2214717a06a64e745b7d2321075484df859b8d00d374c2b6c3da400dc605459a302ddf8e7cd8e0d49092e0d9
7
- data.tar.gz: 227c47a2db87cec7489fd45a3b4b6ddcb0168cda4c840391a7334175e01e3c3362ab7293931035326f64d2fed55438356a0ce9f9ee19288b073c5af18d473dcb
6
+ metadata.gz: 770dd09297b0930d6c54372130273e281e6428153d07c94a0cf46ad42048b333b231efa3475abb5957486ed4b90e83f031440888265a5883b44bce39084066f3
7
+ data.tar.gz: ad100d2718ded6cbc46d354bf3f04231a29956810f2ad93721790ba0f735f88ab92fbcb744c4935236f5a9db3e0583885dfcec13fbb3428cb3d55cb83a2a6ca2
data/CHANGELOG CHANGED
@@ -1,8 +1,13 @@
1
- - 0.8.0 - 29-05-2022
1
+ - 0.9.0 - 25-03-2024
2
+
3
+ - Target Node to 18.19.0.0
4
+
5
+ - 0.8.0 - 29-05-2023
2
6
 
3
7
  - Target Node to 18.16.0.0
8
+ - Drop supporting EOL'd Ruby 2.7
4
9
 
5
- - 0.7.0 - 29-05-2022
10
+ - 0.7.0 - 26-05-2023
6
11
 
7
12
  - Target Node to 17.9.1.0
8
13
 
@@ -17,7 +17,7 @@ $CXXFLAGS += " -Wall" unless $CXXFLAGS.split.include? "-Wall"
17
17
  $CXXFLAGS += " -g" unless $CXXFLAGS.split.include? "-g"
18
18
  $CXXFLAGS += " -rdynamic" unless $CXXFLAGS.split.include? "-rdynamic"
19
19
  $CXXFLAGS += " -fPIC" unless $CXXFLAGS.split.include? "-rdynamic" or IS_DARWIN
20
- $CXXFLAGS += " -std=c++14"
20
+ $CXXFLAGS += " -std=c++17"
21
21
  $CXXFLAGS += " -fpermissive"
22
22
  #$CXXFLAGS += " -DV8_COMPRESS_POINTERS"
23
23
  $CXXFLAGS += " -fvisibility=hidden "
@@ -965,6 +965,8 @@ static VALUE rb_isolate_low_memory_notification(VALUE self) {
965
965
 
966
966
  if (current_platform == NULL) return Qfalse;
967
967
 
968
+ Locker guard { isolate_info->isolate };
969
+
968
970
  isolate_info->isolate->LowMemoryNotification();
969
971
  return Qnil;
970
972
  }
@@ -975,6 +977,8 @@ static VALUE rb_isolate_pump_message_loop(VALUE self) {
975
977
 
976
978
  if (current_platform == NULL) return Qfalse;
977
979
 
980
+ Locker guard { isolate_info->isolate };
981
+
978
982
  if (platform::PumpMessageLoop(current_platform.get(), isolate_info->isolate)){
979
983
  return Qtrue;
980
984
  } else {
@@ -72,8 +72,7 @@ module MiniRacer
72
72
 
73
73
  unless Polyglot.languages.include? "js"
74
74
  raise "The language 'js' is not available, you likely need to `export TRUFFLERUBYOPT='--jvm --polyglot'`\n" \
75
- "You also need to install the 'js' component with 'gu install js' on GraalVM 22.2+\n" \
76
- "Note that you need TruffleRuby+GraalVM and not just the TruffleRuby standalone to use MiniRacer"
75
+ "You also need to install the 'js' component, see https://github.com/oracle/truffleruby/blob/master/doc/user/polyglot.md#installing-other-languages"
77
76
  end
78
77
 
79
78
  @context = Polyglot::InnerContext.new(on_cancelled: -> {
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniRacer
4
- VERSION = "0.8.0"
5
- LIBV8_NODE_VERSION = "~> 18.16.0.0"
4
+ VERSION = "0.12.0"
5
+ LIBV8_NODE_VERSION = "~> 21.7.2.0"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_racer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-28 00:00:00.000000000 Z
11
+ date: 2024-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 18.16.0.0
89
+ version: 21.7.2.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 18.16.0.0
96
+ version: 21.7.2.0
97
97
  description: Minimal embedded v8 engine for Ruby
98
98
  email:
99
99
  - sam.saffron@gmail.com
@@ -114,16 +114,14 @@ files:
114
114
  - lib/mini_racer.rb
115
115
  - lib/mini_racer/truffleruby.rb
116
116
  - lib/mini_racer/version.rb
117
- - lib/mini_racer_extension.so
118
- - lib/mini_racer_loader.so
119
117
  homepage: https://github.com/discourse/mini_racer
120
118
  licenses:
121
119
  - MIT
122
120
  metadata:
123
121
  bug_tracker_uri: https://github.com/discourse/mini_racer/issues
124
- changelog_uri: https://github.com/discourse/mini_racer/blob/v0.8.0/CHANGELOG
125
- documentation_uri: https://www.rubydoc.info/gems/mini_racer/0.8.0
126
- source_code_uri: https://github.com/discourse/mini_racer/tree/v0.8.0
122
+ changelog_uri: https://github.com/discourse/mini_racer/blob/v0.12.0/CHANGELOG
123
+ documentation_uri: https://www.rubydoc.info/gems/mini_racer/0.12.0
124
+ source_code_uri: https://github.com/discourse/mini_racer/tree/v0.12.0
127
125
  post_install_message:
128
126
  rdoc_options: []
129
127
  require_paths:
@@ -140,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
138
  - !ruby/object:Gem::Version
141
139
  version: '0'
142
140
  requirements: []
143
- rubygems_version: 3.4.6
141
+ rubygems_version: 3.5.6
144
142
  signing_key:
145
143
  specification_version: 4
146
144
  summary: Minimal embedded v8 for Ruby
Binary file
Binary file