rxraw-lineparser 0.1.13 → 0.1.14

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: 30bce9555131eff34c8651e6cd28855b0ce61ee0
4
- data.tar.gz: 09f9b123616aed5bee829b5004eb8d307747e625
3
+ metadata.gz: fde0b7626e61eacdfcab37b3e1f2b76ff86845fc
4
+ data.tar.gz: ddf1d6effe47747812b949a5297ce03c61226cee
5
5
  SHA512:
6
- metadata.gz: 1971b2476aae40737540e1de91c141198c735c77b162e5dabae94323a093df4d13fb59bbe245dd15ecdba86de988236b267c55b6211923f8fe330dca9423d063
7
- data.tar.gz: dab8cb443bc99e7b0f5442e03aebe80c931178f45691db3aaf895c239e4f3db3ccb2d3e07c681d7ad575b8ab73bb5cd3201d52d5959aaaad9f0c968d0060a57b
6
+ metadata.gz: 30ef2a196b6221cc9cddc1a1234d7e53b09e34fcf62f1103a6456406ee00cbad844890567e0da4fced9957582439d1ffc7d367b38592ffd4d919c26b69e68e23
7
+ data.tar.gz: 6b19d00694b8ddf1910d9c26e3b18692c7040064dece84fd7459f18cbf4a21d7056c8f5d36c377c5fc9b6c4debb2f0baa72de9f80c1a73cb946a769e1265b416
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- ;�&x��@&����0VN����L���
1
+ ��=�:tu�`H��<53�>���D������H��{e!t?��`Ⱥ���Qσ���h+0a���V��� �yKU퉬vg講�O7b�C[�r�'c�)4��8�o����_Ύ�6�U׳ʰ�)��d{G �W����|�)��60(K�A:ܘ���ld�Y�X�� |`{3����r�A�z��)Sܵ�]��� �boЕ��gtH�����nW�22����Ft�o�v)���h#қ��p1gM���z
@@ -40,7 +40,7 @@ class RXRawLineParser
40
40
  and field_names.length > 1 then
41
41
  insert2space_patterns(field_names.length, patterns)
42
42
  end
43
-
43
+
44
44
  #patterns.each{|x| puts x.inspect}
45
45
  pattern = patterns.detect {|x| line.match(/#{x.join}/)}.join
46
46
  end_part = @format_mask[/[^\]]+$/].to_s
@@ -84,9 +84,11 @@ class RXRawLineParser
84
84
  def possible_patterns(format_mask)
85
85
 
86
86
  part1 = format_mask[/^[^\[]+/].to_s
87
-
87
+ pure_regex = format_mask.gsub(/\[!(\w+)\]/,'(?<\1>.*)')
88
88
  tot_fields = format_mask.scan(/\[!\w+\]/).length
89
- return [[part1 + '(.*)']] if tot_fields <= 1
89
+
90
+ return [[pure_regex]] if tot_fields <= 1
91
+
90
92
  main_fields = tot_fields - 1
91
93
  qpattern = %q{(["'][^"']+["'])}
92
94
 
@@ -158,4 +160,4 @@ class RXRawLineParser
158
160
  end
159
161
 
160
162
 
161
- end
163
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rxraw-lineparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -10,26 +10,28 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDRDCCAiygAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTEzMDIwNjIxMDUxM1oXDTE0MDIwNjIxMDUxM1owSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE0MDcwMzIwNDc1M1oXDTE1MDcwMzIwNDc1M1owSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIh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fbeniYuYG6/Q8CHKK
21
+ Ps1fIWTh34bWL0xam7xWHjZWnt5f1mOdkq5nA73rRzosgZ9twi5GcAFyrGQZbwwQ
22
+ +C0M96jRI0NoLH2Ae9SGvOtzr8pxA898GeKOJsGEqYCBSH+ixgjKob6ltys4HcL/
23
+ EIA41cj/pAYsN0KCJYyQPPzWfK0CAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
+ DwQEAwIEsDAdBgNVHQ4EFgQU/bTriAmeQC5JZoKkz1D6Zoh6okQwJgYDVR0RBB8w
25
+ HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAG38fhkTf
27
+ ZH7KqFbmFzq+JInDgW/8PVA0tzvwlYa6aoRuEvWSEzsz2ddRku+x4cWgIa/HG+Im
28
+ +o8KqvRR+UaPxeN2cmfrSHOZX59vmFVCepYncrTVRHFoHZTECOFO6mgWXNc8RXB+
29
+ 3mCB3KCt+T8gJPBl6OfAUZSdtFHeF7kcXgeSKVV2CUu7l97DDvtJDQ2VAh0ro+1Y
30
+ Kpdt/mCRgOjyi4sSpxokJR2+a4NwSg5QWEr9je6y7C2FMtPX52mb5ulUgTjZHqbb
31
+ y45JMqhHAfolGfPEOTYT4AtwQxTDUs67uvebNBxsU8sh31pL8L0zX3jIz1bVhNHQ
32
+ 4p4pAlul6ELCYA==
31
33
  -----END CERTIFICATE-----
32
- date: 2013-07-27 00:00:00.000000000 Z
34
+ date: 2014-07-03 00:00:00.000000000 Z
33
35
  dependencies: []
34
36
  description:
35
37
  email: james@r0bertson.co.uk
@@ -48,18 +50,19 @@ require_paths:
48
50
  - lib
49
51
  required_ruby_version: !ruby/object:Gem::Requirement
50
52
  requirements:
51
- - - '>='
53
+ - - ">="
52
54
  - !ruby/object:Gem::Version
53
- version: '0'
55
+ version: 2.1.2
54
56
  required_rubygems_version: !ruby/object:Gem::Requirement
55
57
  requirements:
56
- - - '>='
58
+ - - ">="
57
59
  - !ruby/object:Gem::Version
58
60
  version: '0'
59
61
  requirements: []
60
62
  rubyforge_project:
61
- rubygems_version: 2.0.0.rc.2
63
+ rubygems_version: 2.2.2
62
64
  signing_key:
63
65
  specification_version: 4
64
66
  summary: rxraw-lineparser
65
67
  test_files: []
68
+ has_rdoc:
metadata.gz.sig CHANGED
Binary file