ghazel-kdtree 0.1.1.1 → 0.1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/kdtree.c +11 -0
  2. metadata +5 -5
@@ -63,6 +63,9 @@ static void kdtree_free(struct kdtree_data *kdtreep)
63
63
  }
64
64
  }
65
65
 
66
+ // removed since it is not supported by rubinius yet
67
+ // https://github.com/rubinius/rubinius/issues/955
68
+ /*
66
69
  static void read_all(rb_io_t *fptr, char *buf, int len)
67
70
  {
68
71
  while (len > 0) {
@@ -74,6 +77,7 @@ static void read_all(rb_io_t *fptr, char *buf, int len)
74
77
  len -= n;
75
78
  }
76
79
  }
80
+ */
77
81
 
78
82
  /*
79
83
  * call-seq:
@@ -124,6 +128,9 @@ static VALUE kdtree_initialize(VALUE kdtree, VALUE arg)
124
128
 
125
129
  // now build the tree
126
130
  kdtreep->root = kdtree_build(kdtreep, 0, kdtreep->len, 0);
131
+ // removed since it is not supported by rubinius yet
132
+ // https://github.com/rubinius/rubinius/issues/955
133
+ /*
127
134
  } else if (rb_respond_to(arg, rb_intern("read"))) {
128
135
  VALUE io = arg;
129
136
  rb_io_t *fptr;
@@ -150,6 +157,10 @@ static VALUE kdtree_initialize(VALUE kdtree, VALUE arg)
150
157
  } else {
151
158
  rb_raise(rb_eTypeError, "array or IO required to init KDTree");
152
159
  }
160
+ */
161
+ } else {
162
+ rb_raise(rb_eTypeError, "array required to init KDTree");
163
+ }
153
164
 
154
165
  return kdtree;
155
166
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghazel-kdtree
3
3
  version: !ruby/object:Gem::Version
4
- hash: 65
4
+ hash: 71
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
9
  - 1
10
- - 1
11
- version: 0.1.1.1
10
+ - 2
11
+ version: 0.1.1.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Adam Doppelt
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-04-19 00:00:00 -07:00
19
+ date: 2011-07-16 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies: []
22
22
 
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  requirements: []
69
69
 
70
70
  rubyforge_project:
71
- rubygems_version: 1.4.2
71
+ rubygems_version: 1.5.2
72
72
  signing_key:
73
73
  specification_version: 3
74
74
  summary: Blazingly fast 2d kdtree.