line-tree 0.3.19 → 0.3.20

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: d7c984ae8961ad00a19254cd4ec33088a29d93f5
4
- data.tar.gz: 2f3ad9ac8dc9c01e73ef1114df8822ae8c6ffe77
3
+ metadata.gz: 5f6d4363976249484b4d2fdddcf1f8c92d978d7f
4
+ data.tar.gz: 034eac4fb19446dd9b90fbc559b0b7cf50cf4ba6
5
5
  SHA512:
6
- metadata.gz: fe21e459cfff31adb62578d27201dc5340a0ab6a14530113db26c8f20c4a0c766e7536f0eb916c6dd8ca592fa9874e98a5cc4c892b0387ad0d9e604dbadb0f08
7
- data.tar.gz: 889cf085ce38d1162542c0a23d809967a2f88f735ece472be5778017b86d7dba4b0bfa9e5fc89819fd703b53e471dfd5e03264075f773c2581773c24c5fdc350
6
+ metadata.gz: dea6c1b438feb80df48db8ae157d763d0f47bcf8cdfc0379c608adbbb1caa96ed47a08f91361eeb829b77e5d9fdb097a6e83daab3ccd2e7f20dab69deb528867
7
+ data.tar.gz: 48b6fd50fef030e0b94a41fb6f6df243280387f3198f1c528e8a4719920313f7e468ba26c6b9b7e8cd21dd776e6975127bad199935e3f0058b0c2cfe95656009
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/line-tree.rb CHANGED
@@ -59,9 +59,9 @@ class LineTree
59
59
  end
60
60
 
61
61
  def get_attributes(s)
62
-
63
- a = s[/{(.*)}/,1].split(',').map do |attr|
64
- name, val = attr.match(/\s*([^:=]+)[:=]\s*['"]*([a-zA-Z0-9\(\);\-\/:\.\s"'_]*)/).captures
62
+
63
+ a = s.scan(/\w+: ["'][^"']+["']/).map do |attr|
64
+ name, val = attr.match(/\s*([^:=]+)[:=]\s*['"]*([a-zA-Z0-9\(\);\-\/:\.,\s"'_]*)/).captures
65
65
  [name, val.sub(/['"]$/,'')]
66
66
  end
67
67
 
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.19
4
+ version: 0.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  ErtlSTAImlBCK8q5BS4jBBt8VAEpNdkWpWbtDtLPA639pW2QWIcPx13ObWJh7Ejk
32
32
  THoVqqsHTfeg3g==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-10-15 00:00:00.000000000 Z
34
+ date: 2014-10-25 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexle
metadata.gz.sig CHANGED
Binary file