fast_combine 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/fast_combine/fast_combine.c +1 -0
- data/lib/fast_combine/version.rb +1 -1
- 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: 88917f8aeccaeba605c6f0b971d07db3a6e42c6a
|
4
|
+
data.tar.gz: 5a55fc96d7bced81b808e9f627984ed4809ca854
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beaacae1fc1d1fb028d083851c2c2dd76625114a9fb2ef683b5cc668d85db9214da4ce0f337056fbb0c55eeea493f3d553616ca7c8964c0626405a8a950c3930
|
7
|
+
data.tar.gz: 8fb069bf9a4501d7ddc091f78c4fe2285653b288264bbcbb952633a816446bc5960fdfaea3368a1b075a3b624639668c6c6130e1944f4dad52d10cc1f03e84ec
|
@@ -34,6 +34,7 @@ static VALUE combine(VALUE array, VALUE mappings)
|
|
34
34
|
nodes = rb_ary_entry(array, 1);
|
35
35
|
|
36
36
|
if(NIL_P(nodes) || RARRAY_LEN(nodes) == 0) return root;
|
37
|
+
if(TYPE(root) != T_ARRAY) root = rb_funcall(root, rb_intern("to_a"), 0);
|
37
38
|
|
38
39
|
VALUE grouped_nodes = group_nodes(nodes, mappings);
|
39
40
|
|
data/lib/fast_combine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fast_combine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Kukunin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|