rowx 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -1
- data.tar.gz.sig +0 -0
- data/lib/rowx.rb +2 -8
- metadata +17 -17
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db79381fe9f8b61dab56089fad6a6cac6824249a
|
4
|
+
data.tar.gz: 7152bc15515b7404bf677b6609dd7cb0ccf0435e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1053567dcd6f150ab58857c515c5f0d49c68fd73ed7101a7f079c4dd026cb6dccb2cecf015de1cf722009ceac1579f493c276b4ab25f20970074d5ffccc14ad7
|
7
|
+
data.tar.gz: c9ae686b89f81613db565e2aa931c7eca216ae3a179e17e41f2aabe48182f456bffe515e253dfdef8ad8396d8f3f6e8681f147d40856f0ddfb83de72c2550084
|
checksums.yaml.gz.sig
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rowx.rb
CHANGED
@@ -1,10 +1,3 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# file: rowx.rb
|
4
|
-
|
5
|
-
require 'line-tree'
|
6
|
-
|
7
|
-
|
8
1
|
class Array
|
9
2
|
def collate(pattern=nil)
|
10
3
|
a = self.inject([[]]) do |r,x|
|
@@ -42,6 +35,7 @@ class RowX
|
|
42
35
|
end
|
43
36
|
|
44
37
|
keyfield = a[0][0][/\w+/] if i == a.length - 1
|
38
|
+
i = 0 if a.flatten(1).grep(/^#{keyfield}/).length == 1 # only 1 record
|
45
39
|
records = a[i..-1].collate { |x| x.first =~ /^#{keyfield }/ }
|
46
40
|
summary = scan_a a.slice!(0,i)
|
47
41
|
|
@@ -90,4 +84,4 @@ class RowX
|
|
90
84
|
|
91
85
|
end
|
92
86
|
|
93
|
-
end
|
87
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rowx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE1MTIxMzE4MDQ1NVoXDTE2MTIxMjE4MDQ1NVowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBALzY3eoqozM2HDpy5nDSLck7Lc0YRKt3gavwsXNGnunLsL8KOyZ42SNSOImm
|
19
|
+
HnrHrXLY8lRf/RwtFIcDtKH42WplDbsU2XexW2yqteOAHrGviS+agKZtzAVZ/qaD
|
20
|
+
h5PeBfgL1FwCyJvniLh8xHsQGnK8m8f42Cwl+8+ioseyISIitMCzEvsUEwA7Jpsk
|
21
|
+
6QHlSqyAgi0V35D4uSixm5fKrqC6oHa6BneBtMH7VPMycGmprz4HvhQmgJBW/PC2
|
22
|
+
PjRuDzuCC5ycVevRbSO/qLdJJRDukfxrjx/0rETsnju3PISLj5DhNzvdK4Gnaukj
|
23
|
+
I54MI2EEpm+H97RwI+HBwHgED4sCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUcT+a7MFGTbEpDrZoDQGnrB7T77AwJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAlmUZ1ZLP
|
27
|
+
5DcJRd0qOVo585HY51GcEqR8EH2jWS+07mHUOev5Q1/z3jUXx0BZsxTUvn950AJo
|
28
|
+
iVedjbypskkj3vNy9LxvdxKg0wrTvLZaifabZSNW/AOYuW/kxEX+SXqz9iVrv7L0
|
29
|
+
dObnVQyB5fBF6sqC5Cy40Shhu0XfvP80RA20nXu9Z0/ou+OrKjZP9BnoUbpXfqmK
|
30
|
+
tUg63PoPcUScfVBhUc0o2klkE2EGM3WJVo0m1eWlc9/D6OawDb+8fUntFJkaf0+Z
|
31
|
+
zfHbPJGx3yldVRmxXp8GGIPagWAvf45DNXXjpQB0mqgcuusndaC2We8vbzzjGzQO
|
32
|
+
UbqEI1/DbMhxRA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-
|
34
|
+
date: 2015-12-13 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: line-tree
|
metadata.gz.sig
CHANGED
Binary file
|