lineparser 0.1.15 → 0.1.16
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 +0 -0
- data/lib/lineparser.rb +2 -2
- metadata +23 -24
- 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: 28d3eefa7cd6ef96db0e76506712da6ed70b6e03
|
4
|
+
data.tar.gz: 9afbfc0f86842b714a6f066394efd551e6449ca1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e1c2ebf332cea5a86be5f92824ec6d8385bd7cc64896e812d65d06c7a63bdce6d0ca1682dd30ea352f5ae73ed6807474d5973629854c1677f6e8e01fb4857e7
|
7
|
+
data.tar.gz: e51187dd8b5bbf6cbad06db2f2e3afffabccf80b24e780749f56ceedce8706583f85f77a1a712b0f7c07e1cc204a0efff1453f6e0f1eb136ecfaa4cc5dd0465c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/lineparser.rb
CHANGED
@@ -17,7 +17,7 @@ class LineParser
|
|
17
17
|
labels = []
|
18
18
|
|
19
19
|
pattern.gsub!('+',"\\\\+")
|
20
|
-
r = s.match(/#{pattern.gsub(/:\w+/) {|x| labels << x; '(
|
20
|
+
r = s.match(/#{pattern.gsub(/:\w+/) {|x| labels << x; '([^\\n]*)'}}/)
|
21
21
|
|
22
22
|
if r then
|
23
23
|
params = Hash[*labels.zip(r.captures).flatten(1)]
|
@@ -187,4 +187,4 @@ r = lp.parse lines
|
|
187
187
|
[:app_path, {":app_path"=>"/tmp"}, ["app_path: /tmp"], nil],
|
188
188
|
[:app, {":app"=>"blog"}, ["app: blog"], nil],
|
189
189
|
[:resources, {":resources"=>"posts"}, ["resources: posts"], ...
|
190
|
-
=end
|
190
|
+
=end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lineparser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,27 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
/
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
/
|
31
|
-
|
32
|
-
OvqEV5vPjMgHNQ==
|
13
|
+
MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQUFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwNjE4MTczMTU4WhcN
|
15
|
+
MTkwNjE4MTczMTU4WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDIMaoy
|
17
|
+
ZuLSaIQM2GZFTXH+ijBospHvjExbCi0Gap1jAEakSRMXSyS+MZZTc63E0lSxGmLm
|
18
|
+
qKNocmHQAvff8K6tvKO5Pd7Ph/EWX2+18Icxs+kHvSErDBvJ45Ks05pQ++4tByVN
|
19
|
+
43URJS0dFbXFnz/0V7IFnsJ18oGiYUju/jWS7euxet4pbgew9WGQkX/CLNvaun7W
|
20
|
+
TSbqgXqFRKyfDN0sbfGUKE8okgyEvEkYxaaBhDIB0n8l7aVd4B96R0YlJcY85aCL
|
21
|
+
cbp8GV2E/NmLV5JErTmVHqqywQE0cMMTQdmeTNT8wSS8eAN987YKbMDgx6SACeYc
|
22
|
+
vRR+2ItRBmfl7fEvAgMBAAGjgYowgYcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
23
|
+
HQYDVR0OBBYEFBtVTxKjkkaD2AolTTEI29VnoOr4MCYGA1UdEQQfMB2BG2dlbW1h
|
24
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTAmBgNVHRIEHzAdgRtnZW1tYXN0ZXJAamFt
|
25
|
+
ZXNyb2JlcnRzb24uZXUwDQYJKoZIhvcNAQEFBQADggEBALWXE5uRjPHi1XeGPmD/
|
26
|
+
7aGPjfUxg+hl/zMyVNPWi3ym84j76oynLTM0C7AgDVqXl8H8NPPiawQu8zLc6UWV
|
27
|
+
PoZn4dtN8TBrOg9JT+P1+WHU4QidJ7PDTK4+HXaHxcEpglXQ/2V2wa+TjSq5cPws
|
28
|
+
kxxS5qQrFKvqW3SuhXuO1wYC42OiPYu6KDjbq9ZnGEXKHg2+/XzkGJgnANzu58BR
|
29
|
+
+jtnooTZ6Wn+nPMDihov717g1HIEFpQOyDvLPtnDyaCKkKbHn7FgS7a8wr12OGHj
|
30
|
+
7CkP6/pzsGLnyfCNF6rkXny4G0mjMmALczbazUUCil4IJNYfvW28Nlm2cD1N6Y/t
|
31
|
+
Uck=
|
33
32
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
33
|
+
date: 2018-06-18 00:00:00.000000000 Z
|
35
34
|
dependencies:
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
36
|
name: line-tree
|
@@ -54,7 +53,7 @@ dependencies:
|
|
54
53
|
- !ruby/object:Gem::Version
|
55
54
|
version: 0.3.17
|
56
55
|
description:
|
57
|
-
email: james@
|
56
|
+
email: james@jamesrobertson.eu
|
58
57
|
executables: []
|
59
58
|
extensions: []
|
60
59
|
extra_rdoc_files: []
|
@@ -80,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
79
|
version: '0'
|
81
80
|
requirements: []
|
82
81
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.6.13
|
84
83
|
signing_key:
|
85
84
|
specification_version: 4
|
86
85
|
summary: Lineparser is suited to parsing configuration files, however it can parse
|
metadata.gz.sig
CHANGED
Binary file
|