version_sorter 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a70fd7cdb6644724f9e56ec43763ab434869157e
4
- data.tar.gz: 158a5dca9eb719f7a70cfc31c4e25939869c2953
3
+ metadata.gz: 04609f085e399b0ce0283f05932905d13f5a6b49
4
+ data.tar.gz: 44446e689a124c65c3772eaf0c1356bf6bd2b813
5
5
  SHA512:
6
- metadata.gz: 7b129cf5ded38073805a6893b2dc1d9eb2c5d5ed18f5306dd277a042a7f3e6ce066e30b1ee9c181945acc93a4dfbf0a21349b5e29745915ab0879c46339547cb
7
- data.tar.gz: b827661988f7d51796a24b6e08d376b8a8e43477c02a81a19f1f5ab2373a4225243f430f3a85ffd767e4c5a61748b1509b751c6a3c7b5ef7486c5b75ebac7707
6
+ metadata.gz: 1921544821d3eaba6a539e4589683acf8fdee1462f8bffb2b66abd51cf11819d9bb64641876b615b241f7b7d391e5123ed3feef0b987466402f3db91d4ae0199
7
+ data.tar.gz: 106d3182b3dc8ec9121d5ed8b782845f7b491f431749301698a7c2860346576ce44be03c8b6b70ce71bfade15ec04878b135b97985fdf37a8ce7101595eb7fb0
@@ -193,7 +193,7 @@ rb_version_sort_1(VALUE rb_self, VALUE rb_version_array, compare_callback_t cmp)
193
193
  else
194
194
  rb_version_string = rb_version;
195
195
 
196
- versions[i] = parse_version_number(StringValuePtr(rb_version_string));
196
+ versions[i] = parse_version_number(StringValueCStr(rb_version_string));
197
197
  versions[i]->rb_version = rb_version;
198
198
  }
199
199
 
@@ -235,8 +235,8 @@ rb_version_sort_r_bang(VALUE rb_self, VALUE rb_versions)
235
235
  static VALUE
236
236
  rb_version_compare(VALUE rb_self, VALUE rb_version_a, VALUE rb_version_b)
237
237
  {
238
- struct version_number *version_a = parse_version_number(StringValuePtr(rb_version_a));
239
- struct version_number *version_b = parse_version_number(StringValuePtr(rb_version_b));
238
+ struct version_number *version_a = parse_version_number(StringValueCStr(rb_version_a));
239
+ struct version_number *version_b = parse_version_number(StringValueCStr(rb_version_b));
240
240
  return INT2NUM(version_compare_cb(&version_a, &version_b));
241
241
  }
242
242
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: version_sorter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-21 00:00:00.000000000 Z
12
+ date: 2017-10-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: VersionSorter is a C extension that does fast sorting of large sets of
15
15
  version strings.