mini_racer 0.2.0 → 0.2.1

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: b2bb1ce568e44bcf3f6fcc469942ee12bd418cb21faaedbf1ed60a1b89e4ee47
4
- data.tar.gz: 4a38af517388189628e22c7f9bf6b8129489847ff1b4d79b741e248b0f88fc6d
3
+ metadata.gz: 984efcfd27c4d0ef160fb551d9ab0f90f52eade1d88be6f194d0dde113e77364
4
+ data.tar.gz: a467a5d1664556dfa801afecd736d1937109350a1d5ff1ab3428211d37f7e72d
5
5
  SHA512:
6
- metadata.gz: 9e8f42aad8b92fc27e9d430edea330fd583743ea7c81c6bbb5097de797af02b2905b87006798559e61e95ab2a0a9fb667e4d0758a3021876c81be138bc890e3d
7
- data.tar.gz: 5e17012b06081f0b3f303f549908c348bed54ef9151069c1a6efcfb778708fde80fe2108a6f5f9f9908a9aec52449ad65a85fd2f0ae49892d89dfba59cc568c2
6
+ metadata.gz: 698337441ba8d662e000d4b597c2440da78ed4ecd7c68dac02e8af0b542c8b3861e13bd7df45efa9fece2e20c7a4c1243a3c3c1fc0b0730eb30516ccca4aa04f
7
+ data.tar.gz: d7c62ccb1ece943ff1c04e608552c76c1de392accff4067e60ace04047b8236d7526b3c0c9764d1c790c62c0c3196cc1e9cc853b3137a00a7a156422f39d1ad9
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  - 06-07-2018
2
2
 
3
+ - 0.2.1
4
+
5
+ - FEATURE: Mojave macOS support
6
+
3
7
  - 0.2.0
4
8
  - FEATURE: context#call to allow for cheaper invocation of functions
5
9
  - FIX: rare memory leak when terminating a long running attached function
@@ -11,7 +11,7 @@ $CPPFLAGS += " -std=c++0x"
11
11
  $CPPFLAGS += " -fpermissive"
12
12
  $CPPFLAGS += " -Wno-reserved-user-defined-literal" if RUBY_PLATFORM =~ /darwin/
13
13
 
14
- $LDFLAGS.insert 0, " -stdlib=libstdc++ " if RUBY_PLATFORM =~ /darwin/
14
+ $LDFLAGS.insert 0, $1.to_i < 18 ? " -stdlib=libstdc++ " : " -stdlib=libc++ " if RUBY_PLATFORM =~ /darwin(\d+)/
15
15
 
16
16
  if ENV['CXX']
17
17
  puts "SETTING CXX"
@@ -562,6 +562,13 @@ static VALUE rb_snapshot_load(VALUE self, VALUE str) {
562
562
  return Qnil;
563
563
  }
564
564
 
565
+ static VALUE rb_snapshot_dump(VALUE self, VALUE str) {
566
+ SnapshotInfo* snapshot_info;
567
+ Data_Get_Struct(self, SnapshotInfo, snapshot_info);
568
+
569
+ return rb_str_new(snapshot_info->data, snapshot_info->raw_size);
570
+ }
571
+
565
572
  static VALUE rb_snapshot_warmup_unsafe(VALUE self, VALUE str) {
566
573
  SnapshotInfo* snapshot_info;
567
574
  Data_Get_Struct(self, SnapshotInfo, snapshot_info);
@@ -1382,6 +1389,7 @@ extern "C" {
1382
1389
  rb_define_alloc_func(rb_cExternalFunction, allocate_external_function);
1383
1390
 
1384
1391
  rb_define_method(rb_cSnapshot, "size", (VALUE(*)(...))&rb_snapshot_size, 0);
1392
+ rb_define_method(rb_cSnapshot, "dump", (VALUE(*)(...))&rb_snapshot_dump, 0);
1385
1393
  rb_define_method(rb_cSnapshot, "warmup_unsafe!", (VALUE(*)(...))&rb_snapshot_warmup_unsafe, 1);
1386
1394
  rb_define_private_method(rb_cSnapshot, "load", (VALUE(*)(...))&rb_snapshot_load, 1);
1387
1395
 
@@ -1,3 +1,3 @@
1
1
  module MiniRacer
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-06 00:00:00.000000000 Z
11
+ date: 2018-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler