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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -1
- data/lib/rxraw-lineparser.rb +6 -4
- metadata +24 -21
- 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: fde0b7626e61eacdfcab37b3e1f2b76ff86845fc
|
4
|
+
data.tar.gz: ddf1d6effe47747812b949a5297ce03c61226cee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30ef2a196b6221cc9cddc1a1234d7e53b09e34fcf62f1103a6456406ee00cbad844890567e0da4fced9957582439d1ffc7d367b38592ffd4d919c26b69e68e23
|
7
|
+
data.tar.gz: 6b19d00694b8ddf1910d9c26e3b18692c7040064dece84fd7459f18cbf4a21d7056c8f5d36c377c5fc9b6c4debb2f0baa72de9f80c1a73cb946a769e1265b416
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
��=�:t�u�`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
|
data/lib/rxraw-lineparser.rb
CHANGED
@@ -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
|
-
|
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.
|
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
|
-
|
13
|
+
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE0MDcwMzIwNDc1M1oXDTE1MDcwMzIwNDc1M1owSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18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
31
|
+
y45JMqhHAfolGfPEOTYT4AtwQxTDUs67uvebNBxsU8sh31pL8L0zX3jIz1bVhNHQ
|
32
|
+
4p4pAlul6ELCYA==
|
31
33
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
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:
|
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.
|
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
|