lineparser 0.1.13 → 0.1.14

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: 589419361bb5609e8585e94c2954e8eb3f635b43
4
- data.tar.gz: a598bf4c7ef2a846bea45500db713fe6ecbc0bf2
3
+ metadata.gz: 0f1c2733ab35a13dfc842e32afb1225e2f3e1746
4
+ data.tar.gz: 89bcbccd0a4f9c94bcf17ea007d3ddd71770aaa0
5
5
  SHA512:
6
- metadata.gz: 0827407478c4d4595eaf7c0c9492dcdc7267adff9aadc298a035d99a48a21e531314e2cc09918717a324a6de5ab199385460f49375dd3199990187b18579bf37
7
- data.tar.gz: 034c508421fdd25a2e83faf376fc9a2f1ceef5dbaced3a08c80a454499a3fb0f0d811f82da144e63ef5803c1a96c23e0d0662ddf43a0086b9dbd6b6e53cfcf7b
6
+ metadata.gz: dfbaf4214ac8c59f06f1d025de35df5f7fe0d84a828ce57b10846de70927b0991839c46898bf6ef591528761ff6360cb9838f0bf4b3c80f5c23f50676d41214f
7
+ data.tar.gz: 91e51b9563eb1147d0aa10ae6046036d159c59b7f5a938565555e99aff171ff299eb25c206f71fce15dda60d0094f652403067a872274ff87d1ce0722bc9bdae
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1 @@
1
- DX}��!���Qq?��L)Ty�ۃ}�Qb�6��K�9��pq���8V����("�&sP��8Qyӕqk阷��e蘋��3f[ q*;h��)�F�-ys5���* ��������09�#K��,��V
2
- ���5��S'�t5�i2��� ��o�?[$�Y~����$��݋M<��'ŘGR�I{u;
3
- c��� 5Z�}�
1
+ ��C۵Aqݔ?�c;�ْ.�Qe8'Cn�}���O�������q�:f~��#DW���qA-�WI���$��ܢ6dgbL!�Uf���Z�A}Z���c%�A���iQY=��:���3o�ҩ�8��=��� ��v�#RE����*L��6>�>.Šz�8���M��ӟ8�ܸ>���k!"� `�z���J<�{��'�">�B�(;XcH�y�4�~Z�V��.�Ae�
data/lib/lineparser.rb CHANGED
@@ -29,7 +29,8 @@ class LineParser
29
29
  r = s.match(regex)
30
30
 
31
31
  if r then
32
- {captures: r.captures}
32
+ h = {captures: r.captures}
33
+ r.names.inject(h) {|rn,x| rn.merge(x.to_sym => r[x])} if r.names
33
34
  end
34
35
  end
35
36
  }
@@ -185,4 +186,4 @@ r = lp.parse lines
185
186
  [:app_path, {":app_path"=>"/tmp"}, ["app_path: /tmp"], nil],
186
187
  [:app, {":app"=>"blog"}, ["app: blog"], nil],
187
188
  [:resources, {":resources"=>"posts"}, ["resources: posts"], ...
188
- =end
189
+ =end
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- hε�oH�\n��?(f8��Pv�F����B
2
- Z�� �1��v|�ؐh'mO��o��:&�d��#�y1n��7�oO؝P�z8H�l�e�� �{��Ol�
3
- �$�$����d�К����m�� �Y�(����n��0�C������g��33��Be� �a���W�8M��쌼X���V�@CV���+=�bC���}e�C/��{�>�P'�c����]T�\�'(�z��-�F[�W]Ia�0��
1
+ R���V!I&� �F�?�@�)asxد�Y�G��0 >���}������uZ���.ũk}�M�Ga|_L���w(�L_����'˟ ���}�� !�ѫW���(��l��bʙ���l��vb}\�����I�E���]@ l��7��"�M���bB�y;T a �Pɹ�~���^�>����"��HH4) '�
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.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,22 +31,28 @@ cert_chain:
31
31
  91WD0+jYVX++HpUKNCp85+avduv17ztFqGGok26cpRFYNdIIFFu8T4cl2jsqGI2l
32
32
  hT3uS3yIJ12YEQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-03-25 00:00:00.000000000 Z
34
+ date: 2014-09-05 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: line-tree
38
38
  requirement: !ruby/object:Gem::Requirement
39
39
  requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.3'
40
43
  - - ">="
41
44
  - !ruby/object:Gem::Version
42
- version: '0'
45
+ version: 0.3.17
43
46
  type: :runtime
44
47
  prerelease: false
45
48
  version_requirements: !ruby/object:Gem::Requirement
46
49
  requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '0.3'
47
53
  - - ">="
48
54
  - !ruby/object:Gem::Version
49
- version: '0'
55
+ version: 0.3.17
50
56
  description:
51
57
  email: james@r0bertson.co.uk
52
58
  executables: []
@@ -66,7 +72,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
72
  requirements:
67
73
  - - ">="
68
74
  - !ruby/object:Gem::Version
69
- version: '0'
75
+ version: 2.1.2
70
76
  required_rubygems_version: !ruby/object:Gem::Requirement
71
77
  requirements:
72
78
  - - ">="
@@ -74,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
80
  version: '0'
75
81
  requirements: []
76
82
  rubyforge_project:
77
- rubygems_version: 2.0.14
83
+ rubygems_version: 2.2.2
78
84
  signing_key:
79
85
  specification_version: 4
80
86
  summary: Lineparser is suited to parsing configuration files, however it can parse
metadata.gz.sig CHANGED
Binary file