rbtree 0.4.0 → 0.4.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README +3 -0
  3. data/rbtree.c +1 -1
  4. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2c9450418c5e8acbcf6dfe359cbd7f5495558ea
4
- data.tar.gz: 3cc9df43495129924dc06ef7571309dc604b99d9
3
+ metadata.gz: 42305188c5448bb5c684e198069f323816d32d5a
4
+ data.tar.gz: f1d5608adf7f2c1d142048d5abbe499d11cc83a6
5
5
  SHA512:
6
- metadata.gz: aba578f329b5ceb9dd07de643671d97ff16110bab46b1fbceec28424ec10a69898129f137bcfa382412f6d8580a31008fbb309e7e3098d50821b12881826937d
7
- data.tar.gz: 6cbef7d7032c04e4a2183c4346418ebe2220de66309b5e3d41c275eee9e091a542a8c51ebd81948e8fa39a5aeb71ad81b2ae1fe81c9f4e6b88f619836a82500d
6
+ metadata.gz: 892207ef1dc38a23044b15480bcd57a4ab722cc944131f1d56d1878aa668b539d0c10f6a0cdd6c52b7d3255e17c14fb466ed898a3bc56fbe0e15472da912a888
7
+ data.tar.gz: c2a3503fcc68622ab775d421843b25d07afa7f1702e870ad57a600f3c06b904179c86d62bc6dd3d6c86e5948af09f95e37998de35fb7c8e48e00c4478fae9e15
data/README CHANGED
@@ -57,6 +57,9 @@ Run the following command.
57
57
  $ sudo gem install rbtree
58
58
 
59
59
  == Changes
60
+ === 0.4.1
61
+ * Fixed a crash that could be triggered when GC happened.
62
+
60
63
  === 0.4.0
61
64
 
62
65
  * Fixed build failure with Ruby 2.0.0.
data/rbtree.c CHANGED
@@ -183,6 +183,7 @@ rbtree_alloc(VALUE klass)
183
183
  dict_t* dict;
184
184
  VALUE rbtree = Data_Wrap_Struct(klass, rbtree_mark, rbtree_free, 0);
185
185
  RBTREE(rbtree) = ALLOC(rbtree_t);
186
+ MEMZERO(RBTREE(rbtree), rbtree_t, 1);
186
187
 
187
188
  dict = ALLOC(dict_t);
188
189
  dict_init(dict, rbtree_cmp);
@@ -194,7 +195,6 @@ rbtree_alloc(VALUE klass)
194
195
  DICT(rbtree) = dict;
195
196
  IFNONE(rbtree) = Qnil;
196
197
  CMP_PROC(rbtree) = Qnil;
197
- ITER_LEV(rbtree) = 0;
198
198
  return rbtree;
199
199
  }
200
200
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbtree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OZAWA Takuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-11 00:00:00.000000000 Z
11
+ date: 2013-03-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  A RBTree is a sorted associative collection that is implemented with a
@@ -38,6 +38,8 @@ licenses:
38
38
  metadata: {}
39
39
  post_install_message:
40
40
  rdoc_options:
41
+ - --title
42
+ - Ruby/RBTree
41
43
  - --main
42
44
  - README
43
45
  - --exclude