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 +4 -4
- data/ext/version_sorter/version_sorter.c +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04609f085e399b0ce0283f05932905d13f5a6b49
|
4
|
+
data.tar.gz: 44446e689a124c65c3772eaf0c1356bf6bd2b813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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(
|
239
|
-
struct version_number *version_b = parse_version_number(
|
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.
|
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-
|
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.
|