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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 427c2283c5e90e522e5a8c2a198300f37557901d
4
- data.tar.gz: 85e6d7959ea2bbd9823461c762ab679f8c996efe
3
+ metadata.gz: 4af1e0f316bddea01b7275cc62221c672642bc49
4
+ data.tar.gz: b16925913fcbe8839c44c737f33efe75e66b15c8
5
5
  SHA512:
6
- metadata.gz: 877272b35e42867559b252eddb1db7f414fdbbbb067851f178dbb28359bb0aee9e0e5bf67631f200ed7f70123999b88986a2ae811972cedeacb0b25964deca52
7
- data.tar.gz: e501ae78cc83ff03bef5532907935b9085ec73bf6f16b385c9abc65988362598cc948ae5ff13f6223ad601ee00b0a4bc416a23e97a33c8c796329c8c730e9aa7
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.last, x[1..-1]) if found.last.is_a? Array
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.0
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-09 00:00:00.000000000 Z
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.1.11
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