rowx 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +3 -1
  3. data.tar.gz.sig +0 -0
  4. data/lib/rowx.rb +2 -8
  5. metadata +17 -17
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69d15e7558e393aeb06f8a710bf6ac7fadadf343
4
- data.tar.gz: 4d17a0ce28ecdb5a035799da40e645f8048a05de
3
+ metadata.gz: db79381fe9f8b61dab56089fad6a6cac6824249a
4
+ data.tar.gz: 7152bc15515b7404bf677b6609dd7cb0ccf0435e
5
5
  SHA512:
6
- metadata.gz: 5c49084f7b1beed688c14c54de9a161a57fa0c48518866b272890c66fbbb2ff110526d520f3e462e43ef713a8fe3fb512660b878a66973e3c309915139d6b320
7
- data.tar.gz: 2c4d4fdcb105f3d65948ed05867d88eda29672297575e2dcad033931cb67c7f5c16a8edb19e584f91a6addf01674665963a4f8dbdc945f0f3ad3c769660a84f2
6
+ metadata.gz: 1053567dcd6f150ab58857c515c5f0d49c68fd73ed7101a7f079c4dd026cb6dccb2cecf015de1cf722009ceac1579f493c276b4ab25f20970074d5ffccc14ad7
7
+ data.tar.gz: c9ae686b89f81613db565e2aa931c7eca216ae3a179e17e41f2aabe48182f456bffe515e253dfdef8ad8396d8f3f6e8681f147d40856f0ddfb83de72c2550084
checksums.yaml.gz.sig CHANGED
@@ -1 +1,3 @@
1
- k��b��&���S�}���5�����w�Ux��B�Z����%I~�1ۭ��I�2]�]����b���#�VXi��
1
+ ����f'u
2
+ ���dQt2��>XF�ݿP�xk�ֆ�U .�4�ե�Ϻ
3
+ �aP�� i����t/�� @$�=����W��Ya+�����v�a/����]D+V&�h=�ϡ�,S�d�Iƕ�L�!���`Q��@����k�u��"V��#MQ�[��H?�nK`#��#��N�g��:I �����2s�LjcM\C������x؟��������k2��
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.2
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
- 8ixkARkWAmV1MB4XDTE0MTEwNTIwMDQxN1oXDTE1MTEwNTIwMDQxN1owSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE1MTIxMzE4MDQ1NVoXDTE2MTIxMjE4MDQ1NVowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBALwZDIVN+ekwn9PXFu3zb6smmRyhYasu4n5lWBekFYTS5kDA856Uv53q54ir
19
- k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TJEJGYU5/2/YzFWSki
28
- aQmCM2umB8G9UqpC+Xj5JEWm6a/y4DpDmFKjEr1huU+5/xn3wG96SNzQsTyZLPxy
29
- ZBhfvYonuLCL4h9KzX8msUdQqllj33VPtMf+D6QlF9YRQGhHFDVKduVMcs8MDIM9
30
- ZYvHMzXuZ2Sq9EbLA0EuU1V3bJZsLxhOTWso64XpE1GdkWFzk9TIflMjyUywrC1u
31
- yaP43m5g1gqUfr6ys6w86uiM1Khmw6RXdAZBrQU+jmXYRU0OejB3+MdhPte5gP6n
32
- k3UhzyiVjlkLhQ==
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-09-22 00:00:00.000000000 Z
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