lineparser 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/lineparser.rb +3 -2
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: 4af1e0f316bddea01b7275cc62221c672642bc49
|
|
4
|
+
data.tar.gz: b16925913fcbe8839c44c737f33efe75e66b15c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c112365ce4e13ba16c27bc1230658607486c1bd1e6a8de61b2637f71491d053457a411bc10fb8e32237ffce9ab500f5433144d8ec644e895f8c3040d7d72f77
|
|
7
|
+
data.tar.gz: 9dc88b0b2baca0144b99c36ea3759607ce8851bbc6f61bcd1b8829a0ebee063845bb9e36e45d3b3b91a01ae062176c9280d40b961c5aeca3e61f288d0520b9cc
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/lineparser.rb
CHANGED
|
@@ -41,6 +41,7 @@ class LineParser
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
@tree_patterns = hpatterns[:root].reverse
|
|
44
|
+
|
|
44
45
|
end
|
|
45
46
|
|
|
46
47
|
def parse(s)
|
|
@@ -76,7 +77,7 @@ class LineParser
|
|
|
76
77
|
|
|
77
78
|
if found then
|
|
78
79
|
children = nil
|
|
79
|
-
children = scan(found
|
|
80
|
+
children = scan(found[3..-1], x[1..-1]) if found.last.is_a? Array
|
|
80
81
|
records << [found.first, params, x, children]
|
|
81
82
|
end
|
|
82
83
|
end
|
|
@@ -139,4 +140,4 @@ r = lp.parse lines
|
|
|
139
140
|
]
|
|
140
141
|
]
|
|
141
142
|
|
|
142
|
-
=end
|
|
143
|
+
=end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
91WD0+jYVX++HpUKNCp85+avduv17ztFqGGok26cpRFYNdIIFFu8T4cl2jsqGI2l
|
|
32
32
|
hT3uS3yIJ12YEQ==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2014-03-
|
|
34
|
+
date: 2014-03-10 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: line-tree
|
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
74
74
|
version: '0'
|
|
75
75
|
requirements: []
|
|
76
76
|
rubyforge_project:
|
|
77
|
-
rubygems_version: 2.
|
|
77
|
+
rubygems_version: 2.0.14
|
|
78
78
|
signing_key:
|
|
79
79
|
specification_version: 4
|
|
80
80
|
summary: Lineparser is suited to parsing configuration files, however it can parse
|
metadata.gz.sig
CHANGED
|
Binary file
|