mmap2 2.2.8 → 2.2.9alpha1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/ext/mmap/mmap.c +10 -0
  3. data/lib/mmap/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5943780c101dc464511646791710ef3023e84d80
4
- data.tar.gz: 4558621e4c126d6cb95331e3d0937211b8fd66a0
3
+ metadata.gz: 5c4ceefaaf148eafb43cfd6d899cd8a0ab5b862b
4
+ data.tar.gz: e633459d47e87ea68dd5182670febcc76e41a7bd
5
5
  SHA512:
6
- metadata.gz: 6f584c0cda7edaf63b43e9dc9ffe45f493cbb23d0983558d33f1c8e356bb457b034f330c273ba3cc8ddac5cfa72b04406c9e82cc83634ee3ede4f708099cd0e1
7
- data.tar.gz: 87c82050b6755abbc0eb40a6af1a7f87da40252d535cdff965d3c790aed3fefea70fbc34608960d0761b644b86474fc0cc217cd99d0bdea47a04c441a8a21e9b
6
+ metadata.gz: e82f7512595ebcc7799f8ae06b379ccde95ccf010f8d6a322c2234fc8a0a4148c7f59b6ba16dd3833d3207086e711e0fdedb8a213f334d944554f08706fdb87e
7
+ data.tar.gz: c1fc45a29ff3e240ad938b5ad292fb9935b174145547f19eef5a35f00b20f12cc173cf763c63f4b535ccbb80cc2474d662edc15c2b8be2a31d0853d15e4b2d2b
data/ext/mmap/mmap.c CHANGED
@@ -15,6 +15,13 @@
15
15
  #include <ruby/io.h>
16
16
  #include <ruby/re.h>
17
17
 
18
+ #ifdef 1
19
+ #include <stdio.h>
20
+ #define DEBUGF(format, ...) printf("%d: " format "\n", __LINE__, __VA_ARGS__)
21
+ #else
22
+ #define DEBUGF(format, ...)
23
+ #endif
24
+
18
25
  #ifndef StringValue
19
26
  #define StringValue(x) \
20
27
  do { \
@@ -329,6 +336,9 @@ static VALUE mm_str(VALUE obj, int modify) {
329
336
  RSTRING(ret)->as.heap.ptr = i_mm->t->addr;
330
337
  RSTRING(ret)->as.heap.aux.capa = i_mm->t->len;
331
338
  RSTRING(ret)->as.heap.len = i_mm->t->real;
339
+
340
+ DEBUGF("RString capa: %d, len: %d", RSTRING(ret)->as.heap.aux.capa, RSTRING(ret)->as.heap.len);
341
+
332
342
  if (modify & MM_ORIGIN) {
333
343
  #if HAVE_RB_DEFINE_ALLOC_FUNC
334
344
  RSTRING(ret)->as.heap.aux.shared = obj;
data/lib/mmap/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # Version of mmap2.
2
2
 
3
3
  class Mmap
4
- VERSION = '2.2.8'
4
+ VERSION = '2.2.9alpha1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mmap2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.8
4
+ version: 2.2.9alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guy Decoux
@@ -47,9 +47,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
47
  version: '0'
48
48
  required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  requirements:
50
- - - ">="
50
+ - - ">"
51
51
  - !ruby/object:Gem::Version
52
- version: '0'
52
+ version: 1.3.1
53
53
  requirements: []
54
54
  rubyforge_project:
55
55
  rubygems_version: 2.6.8