wordtriez 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/wordtriez.cc +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8006468978af919cac247d68b46533ff84461141
4
- data.tar.gz: a1b1cc4a7ff1aeaee6af7e6be38c95fc244f4a53
3
+ metadata.gz: 2d703337bf6fdd17a5ac29691d7cc22bc0aa94c2
4
+ data.tar.gz: 0ae1078629cf2e13ddf365575c5b271f32de2e32
5
5
  SHA512:
6
- metadata.gz: ecabfb5cd2767f95bb5c69d8f417c60f8c049a1a2196d67e65337296df4362a19e7ddc0d580de632b72e2fc0eae7a5b89572289d223e37da4296f7be8b6e2d73
7
- data.tar.gz: 56a46e9f54537062a419c39647f4149351f2e0f998eeab1123225a0148e538449d347924e8b1818911058d7d256ab24aeb36f68072d8631846986bb47b297d95
6
+ metadata.gz: 1356429e081fed8cdf8bc1cf893d9acc845e512c2a6a6bd444d180e0c9c15b2179b48aff350da11eb3f42b81f93a838d910c68c1f5218eeeb1ed19ef29917a50
7
+ data.tar.gz: c3eb416caf1b40b860c622300c81fae29430eeb576f1ae26bfca68189dbc3be812ee4a66f52a7e8784c3fe10cbaf5dfbd65dcce545e9873389c5ccc8b224e6fc
data/ext/wordtriez.cc CHANGED
@@ -283,14 +283,14 @@ static VALUE hat_add_text(VALUE self, VALUE text, VALUE ngrams, VALUE suffix, VA
283
283
  char* ctext = StringValueCStr(text);
284
284
  size_t new_length = text_clean(ctext);
285
285
 
286
- rb_str_resize(text, (long)new_length);
287
-
288
286
  add_ngrams_with_suffix(p,
289
287
  FIX2INT(ngrams),
290
288
  ctext,
291
289
  StringValueCStr(suffix),
292
290
  RTEST(incr_existing_keys_only));
293
291
 
292
+ rb_str_resize(text, (long)new_length);
293
+
294
294
  return self;
295
295
  // rb_str_substr
296
296
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordtriez
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zete Lui