line-tree 0.3.14 → 0.3.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86e25a2bdfcdd14c7f47b397a8b61d1535d197da
4
- data.tar.gz: 56edf0855af2586b3b02b1e7b2ae92550dd79a6c
3
+ metadata.gz: fdf457c3cd69a25aa9fa1e38a4af79da0cabbb8c
4
+ data.tar.gz: 1aacfb059a985ce039ebe1253c3136c967f0333e
5
5
  SHA512:
6
- metadata.gz: d5bfa3de1ffbc1d0091637901be373b0834fca70671556e94174272c9d960f292bac5047464e4e1e99f29f846e848610b0f73222303e2475aa991c30186197ae
7
- data.tar.gz: e042ccb85d2158fffd7e371bb370c74711b4e1e89495e1cd451c4efe31456aa8a683285ee1381f5814865f5bba8b7ebf8bda9579a04178daf39dc1d3da2d20cc
6
+ metadata.gz: 1cfbde03557a2d813c4cae3c52d6e95ae48deb2877ed9516e292a7ea8de8e3ff1d39d630cfe765c447bdde237087f179177c362355382ecfe9d970ae00c48b65
7
+ data.tar.gz: 06a52859fd4c34cd45d1e6fd94755f4c4b4f118177f2a5b727ebe50d5e1a095a3ec3351f5be8401fe0b78365f759d2ba4d32bbe5e18f15b1357d2ba9f94d5a84
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/line-tree.rb CHANGED
@@ -37,7 +37,8 @@ class LineTree
37
37
 
38
38
  def scan_a(a)
39
39
 
40
- r = a.shift.match(/('[^']+[']|[^\s]+)\s*(\{[^\}]+\})?\s*(.*)/m).captures.values_at(0,-1,1)
40
+ r = a.shift.match(/('[^']+[']|[^\s]+)\s*(\{[^\}]+\})?\s*(.*)/m)
41
+ .captures.values_at(0,-1,1)
41
42
 
42
43
  r[-1] = get_attributes(r.last) if r.last
43
44
  a.map {|x| r << scan_a(x.clone) } if a.is_a? Array
@@ -47,7 +48,8 @@ class LineTree
47
48
  def get_attributes(s)
48
49
 
49
50
  a = s[/{(.*)}/,1].split(',').map do |attr|
50
- attr.match(/\s*([^:=]+)[:=]\s*['"]*([a-zA-Z0-9\(\);\-\/:\.\s]*)/).captures
51
+ name, val = attr.match(/\s*([^:=]+)[:=]\s*['"]*([a-zA-Z0-9\(\);\-\/:\.\s"']*)/).captures
52
+ [name, val.sub(/['"]$/,'')]
51
53
  end
52
54
 
53
55
  Hash[*a.flatten]
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- �� �-���RK^t���ZF��OwY!�@[�>Ip2P��z̊h�S^#qų^���،�`hW@���zJ��̥z���Ҝk�_"7��
2
- CTb]��F��Vj��l��a-@��D)�~ "�/D�`4����o �p���8���[��rjJ�~����Q�:c����+HY�I��j㨠"cj�&}��<���!2��I:�<U�ϓ
1
+ 4��?M2���Mlk��.16n��sI��[DW0 䱴�<���D1a��{��T\�~Og�p�e�z<�Ы�;_J��>9��1���4i��.*Wݼp)��@|�2>f�S�b��#.�H7sC�W�Ǝ/fd�A�$��R��O�_�� ɔ'E������[O�/����*!s���z�LX�=�1!��&���D����$�8L�Rl���TZ�$
2
+ U��a�x��PA 'G�oy�Dk���P
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: line-tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.14
4
+ version: 0.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  Dz+jRefuoazkdPPGcZD+mCU2F42iAyY8omZZjf105rpw/tU49czillRb982Rnja1
30
30
  iAgNdWiPNW8ECExJQhYpRbJN0t+PWcMV
31
31
  -----END CERTIFICATE-----
32
- date: 2013-10-06 00:00:00.000000000 Z
32
+ date: 2013-10-09 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rexle
metadata.gz.sig CHANGED
Binary file