decode_www_form_component 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ decode_uri_changed(VALUE uri, unsigned i)
10
10
  int j;
11
11
  char *r;
12
12
  VALUE ret = rb_usascii_str_new(NULL, length);
13
- rb_str_resize(ret, 0);
13
+ rb_str_set_len(ret, 0);
14
14
  rb_str_cat(ret, u, i);
15
15
  r = StringValuePtr(ret);
16
16
  for (j = i; i < length; i++) {
@@ -31,7 +31,7 @@ decode_uri_changed(VALUE uri, unsigned i)
31
31
  r[j++] = u[i];
32
32
  }
33
33
  }
34
- rb_str_resize(ret, j);
34
+ rb_str_set_len(ret, j);
35
35
  return ret;
36
36
  }
37
37
 
@@ -1,7 +1,7 @@
1
1
  require 'decode_www_form_component.so'
2
2
 
3
3
  module DecodeWwwFormComponent
4
- VERSION = '0.2'
4
+ VERSION = '0.3'
5
5
  end
6
6
 
7
7
  module URI
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decode_www_form_component
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: